larscpedersen Posted November 21, 2014 Share Posted November 21, 2014 Hi guys, Can someone help me with these mistake I get from different products when I try to add products to the cart? ________ Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data'responseText:Strict Standards: Non-static method ProductPreorder::getAvailablePreorderQty() should not be called statically, assuming $this from incompatible context in /home/sayskydk/public_html/override/classes/Cart.php on line 128 ----- Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data'responseText:Strict Standards: Non-static method ProductPreorder::getAvailablePreorderQty() should not be called statically, assuming $this from incompatible context in /home/sayskydk/public_html/override/classes/Cart.php on line 172______ Your help is much appriciated since it is christmas and time to sell products !! Cheers Lars Cart.php Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted November 21, 2014 Share Posted November 21, 2014 do you have same issue with prestashop debug mode turned off? when enabled and php messages, this can cause unpredeicatable results to shop, i.e. add to cart. also there is a module that you have installed that created override/classes/Cart if turning off php debug does not resolve, then determine what module creates the Cart.php in override/classes folder and either disable or uninstall it. 1 Link to comment Share on other sites More sharing options...
bellini13 Posted November 21, 2014 Share Posted November 21, 2014 Appears this override is from the module 'belvg_preorderproducts'. You should contact them for support 1 Link to comment Share on other sites More sharing options...
larscpedersen Posted November 21, 2014 Author Share Posted November 21, 2014 Hi El Patrone and Bellini13Thanks for your input. I did as El Patrone told me to. I put the site in disable mode by disabling the non-prestashop modules and also disables all overrides. Then I took of the php message (change it config/defines.inc.php back to "false") That got the site back on track . I am not yet sure it it gave me any side-effects but I dont dare to do anything as I can see people buying stuff again ! I will look into Bellinis13 note as we speek - but I never really used that module but maybe I have it turned on even after updating to 1.6. Well now it is turned off since I am not sure my version is updated to 1.6.Thanks guys, Lars 2 Link to comment Share on other sites More sharing options...
ps3z Posted February 27, 2015 Share Posted February 27, 2015 Hi El Patrone and Bellini13 Thanks for your input. I did as El Patrone told me to. I put the site in disable mode by disabling the non-prestashop modules and also disables all overrides. Then I took of the php message (change it config/defines.inc.php back to "false") That got the site back on track . I am not yet sure it it gave me any side-effects but I dont dare to do anything as I can see people buying stuff again ! I will look into Bellinis13 note as we speek - but I never really used that module but maybe I have it turned on even after updating to 1.6. Well now it is turned off since I am not sure my version is updated to 1.6. Thanks guys, Lars Their preorder and related products modules are gives error. they have to tweak some files after every prestashop updates.its borring to open tickets for make solve it.they should make it compatible with prestashop or they need to deal with prestashop developers. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now