Jump to content

Adding to cart (ajax cart problem) Error thrown: [object XMLHttpRequest]


Recommended Posts

Hi guys,

 

I have fresh installation of 1.4.8.2 and when I am trying to use Ajax Cart from 1.5 styled theme

http://addons.presta...emplate-15.html

It gives me the following error:

 

TECHNICAL ERROR: unable to add the product.

 

Details:

Error thrown: [object XMLHttpRequest]

Text status: error

 

 

 

in the error_log

 

[05-Jul-2012 09:40:50 UTC]

PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]:

Failed opening required '/home/SHOPNAME/public_html/modules//blockcart/blockcart-ajax.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/SHOPNAME/public_html/controllers/CartController.php on line 81

 

 

From this error:

1. Does not seem to be right url

 

/public_html/modules//blockcart/blockcart-ajax.php

 

2. No such file in PS 1.4.82 installation

/home/SHOPNAME/public_html/controllers/CartController.php

 

Any idea how to fix it guys?

Share this post


Link to post
Share on other sites

bellini13, yeah my bad it does exist was looking into wrong one

 

Fixed now anyway,

 

Appears to be in controller it is referred as

 

(_PS_MODULE_DIR_.'/blockcart/blockcart-ajax.php');

 

While new theme runs module blockcart2

 

So needed to change to

(_PS_MODULE_DIR_.'/blockcart2/blockcart-ajax.php');
Edited by Dimaer (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

just fyi, i assume you updated the CartController.php directly? if so, you should undo that and create a controller override instead. that will protect you in the future when you try to upgrade the shop.

  • Like 1

Share this post


Link to post
Share on other sites

  • 1 month later...

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More