Alika Posted August 29, 2015 Share Posted August 29, 2015 When I try to add items to my cart I get: Impossible to add the product to the cart. textStatus: 'error'errorThrown: 'Internal Server Error'responseText: I use multistore - default domain (http://lightworkers.cz/) works well, the problem is only on the multistore one (http://pohanskeknihkupectvi.cz/) Thanks for any help. Link to comment Share on other sites More sharing options...
prestamax Posted August 29, 2015 Share Posted August 29, 2015 Try if the error is gone if you disable ajax in your cart block module. Link to comment Share on other sites More sharing options...
Alika Posted August 30, 2015 Author Share Posted August 30, 2015 Try if the error is gone if you disable ajax in your cart block module. Than I get a blank page instead. Link to comment Share on other sites More sharing options...
gabdara Posted August 30, 2015 Share Posted August 30, 2015 Enable development mode to see if you get any PHP errors when you disable ajax instead of a blank page. Link to comment Share on other sites More sharing options...
prestamax Posted August 30, 2015 Share Posted August 30, 2015 This error could also be related to the paypal module. Do you have the most recent version? Link to comment Share on other sites More sharing options...
Pavel_cz Posted September 29, 2015 Share Posted September 29, 2015 Měl jsem stejný problém. Způsobuje to aktualizace modulu Google Analytics v2.3.0. Zakažte tento modul. Link to comment Share on other sites More sharing options...
SahinSOLMAZ Posted September 29, 2015 Share Posted September 29, 2015 When I try to add items to my cart I get: I use multistore - default domain (http://lightworkers.cz/) works well, the problem is only on the multistore one (http://pohanskeknihkupectvi.cz/) Thanks for any help. Hi, Did you look here? And did you try to replace all original files with your same version.? Link to comment Share on other sites More sharing options...
skovbakke Posted November 27, 2015 Share Posted November 27, 2015 Hi, I have the same problem. Happened after upgrading to 1.6.1.2 but it persists after I rolled back to my previous version (1.6.0.1). I've tried disabling ajax cart, disabling friendly url, disabling google analytics, even deleting and reinstalling the cart module. Nothing helps or makes a difference even. I have a test site on the same server where I run an exact copy of the main site. There everything runs fine both with and without the update. I'm pretty much out of ideas of what to do and where to look now...???.. Link to comment Share on other sites More sharing options...
kamaaina Posted November 30, 2015 Share Posted November 30, 2015 Anyone have a fix for this issue, as I just starting doing test purchase and get same error? help would be appreciated... Impossible to add the product to the cart. textStatus: 'error' errorThrown: 'Internal Server Error' responseText: Link to comment Share on other sites More sharing options...
gabdara Posted December 9, 2015 Share Posted December 9, 2015 @skovbakke in your case it sounds like a permission issue. Just to test give to all your files permission 777. Link to comment Share on other sites More sharing options...
cosmeticsmall Posted December 22, 2015 Share Posted December 22, 2015 Any solution ? Same problem here. Link to comment Share on other sites More sharing options...
SahinSOLMAZ Posted December 24, 2015 Share Posted December 24, 2015 Any solution ? Same problem here. Hello, If the problem persists, you can send to me your B.O and FTP informations. I will check for you in my free time. Good luck! Link to comment Share on other sites More sharing options...
Pedro R. Posted January 26, 2016 Share Posted January 26, 2016 I am getting the same error. I am on 1.6.1 Any solution for it? Link to comment Share on other sites More sharing options...
SahinSOLMAZ Posted January 27, 2016 Share Posted January 27, 2016 I am getting the same error. I am on 1.6.1 Any solution for it? Hello, If the problem persists, you can send to me your B.O and FTP informations. I will check for you in my free time. Good luck! Link to comment Share on other sites More sharing options...
goeggmen Posted February 3, 2016 Share Posted February 3, 2016 I have a similar problem: --> no paypal module and getting this error: Impossible to add the product to the cart.textStatus: 'parsererror'errorThrown: 'SyntaxError: Unexpected token <'responseText:{"products":[{"id":11,"link":"http:\/\/... any help is realy appreciated. --> www.boomfactory.ch Link to comment Share on other sites More sharing options...
wdcurry Posted April 17, 2016 Share Posted April 17, 2016 Any movement on this? I am setting up a test store, liking the product thus far but am seeing seeming random errors of this nature while on the path to checkout. Link to comment Share on other sites More sharing options...
Samsung Outlet Posted September 5, 2016 Share Posted September 5, 2016 i wanted to change order reference to numeric value in prestashop, i followed these steps by someone Copy the file /classes/PaymentModule.php to /override/classes/PaymentModule.php. Edit the file /override/classes/PaymentModule.php as follows. At lines 337-341 is a code block that should read like this: if (!result) { PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true); throw new PrestaShopException('Can\'t save Order'); } Immediately after that code block, insert the following two lines of code: $order->reference = str_pad($order->id, 9, '0', STR_PAD_LEFT); $order->update(); Delete the file /cache/class_index.php so that Prestashop automatically re-creates this file taking into account the new override file. after these steps, when i try to add product to cart, this error comes "Impossible to add the product to the cart. textStatus: 'error' errorThrown: '' responseText:?]" i tried disabling ajax cart, then i cant delete product from cart, also cant change quantity of ordered product in cart. Link to comment Share on other sites More sharing options...
Sathyaseelan133 Posted September 6, 2016 Share Posted September 6, 2016 Hi goeggmen, If you are using third party modules pls disable it. And also please turn off the developer mode and try add the product to cart Suppose if you have any warnings and notices in your store means while adding the product to cart(AJAX functionality) will not successful response. So try clear all warnings and notices and turn off the developer mode. Link to comment Share on other sites More sharing options...
gabdara Posted September 6, 2016 Share Posted September 6, 2016 @Samsung Outlet your way of making an override is incorrect. Don't copy the entire file from classes into override, create the file into override as an extend of the original class and copy only the function that you need to modify. Read the documentation to override code manually. For your PaymentModule class, create file /override/classes/PaymentModule.php and inside: class PaymentModule extends PaymentModuleCore { // your override custom function here } Assuming that the code to have order reference as numeric value is correct, look into the original class to find what function you should override. In this case it's function validateOrder(). Copy the entire function into the override class and add your custom code there. Link to comment Share on other sites More sharing options...
snuE Posted November 7, 2016 Share Posted November 7, 2016 (edited) I have same problem Impossible to add the product to the cart.textStatus: 'error'errorThrown: ''responseText:But It appers only when I turn Friendly SOE on Edited November 7, 2016 by snuE (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts