Jump to content

Impossible to add the product to the cart textStatus: 'parserror'


Recommended Posts

We currently have the following error when trying to add any product to the cart..  Thanks in advance for your advise.

PrestaShop 1.6.1.4, Default Theme

History: We had a corrupt SQL DB. We have restored a SQL backup today. We were getting the error below before the DB restore. We expected the DB restore would also fix this, but it did not.

We have not made any changes to our PrestaShop settings, no new modules were installed, that we can roll back. We are unsure what started this error if not the DB.

We have tried disabling all non-PrestaShop modules (debug mode), problem persists.

 

ERROR:  --------------------------------------------------------------

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 1336 of the JSON data'
 

Array
(
    [type] => 2
    [message] => filemtime(): stat failed for /home/upshift/public_html/cache/smarty/compile/00/09/3d/00093d6c215fc9c7dbcb3e53ce16fdb7c283515d.file.crossselling.tpl.php
    [file] => /home/upshift/public_html/tools/smarty/sysplugins/smarty_resource.php
    [line] => 772
)

------------------------------------------------------

Impossible to add the product to the cart.
textStatus: 'parsererror'
errorThrown: 'SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 1909 of the JSON data'
responseText:
{"products":[{"id":959,"link":"https:\/\/www.braapmoto.com\/en

-------------------------------------------------------

DEV MODE ENABLED

263 /cache/smarty/compile/3f/0f/47/3f0f47f8b60f947dd4d27d0ffb0676729314fa22.file.nav.tpl.php
264 /cache/smarty/compile/cf/0b/a0/cf0ba09536b8f0b172f479119700d80ba88e9aef.file.homeslider.tpl.php
265 /cache/smarty/compile/77/eb/7d/77eb7db5212e2de4bc64e83260e92c34fa9e60fc.file.footer.tpl.php
266 /cache/smarty/compile/e7/ce/35/e7ce35032d7fb6d957c9347f34719258c049ceac.file.global.tpl.php
267 /cache/smarty/compile/b4/0a/fa/b40afac8d3d9970f42f20c8d74120709b283be8b.file.javascript.tpl.php
268 /tools/smarty/plugins/shared.mb_str_replace.php
Array
(
    [type] => 2
    [message] => filemtime(): stat failed for /home/upshift/public_html/themes/default-bootstrap/cache/v_63_e571e58f20c27dade85e32adc57af238.js
    [file] => /home/upshift/public_html/classes/Media.php
    [line] => 658
)

 

Edited by [email protected] (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...