I have installed porto theme on Magento 2.3.5p1 version.

After installing theme it shows error like:

ReferenceError: mageplazaSearchProducts is not defined

I have checked that one file default_0.js created in


but found that there is missing values for mageplazaSearchProducts.

var mageplazaSearchProducts = 

can anyone suggest me how to solve this error ??


Check data in $productList variable in app/code/Mageplaza/Search/Helper/Data.php. In my case, was the product description that was causing a encoding problem when trying to encode as json. Ended up wrapping the description in the htmlentities function

  • Thanks for answering. but its not working for me. – vijay rami Jul 28 '20 at 7:21
  • i have same issue facing any idea for that? – Rakesh Donga Oct 4 '20 at 6:56

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.