While searching for product and if product not exist then no issue but when product found then css not loading and giving error

Uncaught ReferenceError: require is not defined at ?q=Dummy:117 site is not on local its on liveenter image description here And this is only happening to this page, other all pages are working fine

  • Bit of a guess but this looks like an issue with list.phtml seems to stop rendering around the price. Maybe check there. – harri Nov 1 '17 at 12:24
  • app/design/Vendor/Theme/Magento_Catalog/templates/product/list.phtml maybe temporarily rename that file see it it works. If it does then there is an issue with something on there when used in search. – harri Nov 1 '17 at 12:26
  • yes,by renaming list.phtml page is displaying but default css is applying not my custom css. for that what should I do ? – Rajnesh Rathor Nov 1 '17 at 12:39
  • that is to be expected as we just reverted it to normal to see that problem lies there. I would rename it back make a backup of it and remove bits of code that are custom until you find the problem – harri Nov 1 '17 at 12:43
  • It may be showing in logs however either on server apache / nginx or within var/log of magento which may give you more information – harri Nov 1 '17 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.