Magento 2 Unexpected token u in JSON at position 0 on Product page

by Howliee   Last Updated July 11, 2018 09:09 AM

When viewing the product page I getthe Unexpected token u in JSON at position 0 error.

I have added the following code suggested in other answers: <referenceBlock name=""> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="components" xsi:type="array"> <item name="review-form" xsi:type="array"> <item name="component" xsi:type="string">Magento_Review/js/view/review</item> </item> </item> </argument> </arguments> </referenceBlock>

Into my catalogo_product_view.xml file in my custom theme, not sure I'm adding it properly but I'm still getting the error.

Related Questions

Ajax delete cart items

Updated April 30, 2018 07:09 AM

AJAX Request with Json

Updated August 19, 2017 13:09 PM

Compare data in database with jquery and json

Updated August 23, 2017 18:09 PM