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="product.review.form"> <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