Jump to content

Error when adding items to cart


Recommended Posts

Hi there,

 

I have encountered a problem I haven't had before with Prestashop. I am using the new default theme available here: http://addons.prestashop.com/en/neutral/3337-prestashop-template-15.html with some changes to the CSS and a minor change to make it 2-column.

 

I am working on getting a client's online store up and running, but I have found that when I try to add something to the cart, the following error occurs in a dialogue box:

 

--

 

TECHNICAL ERROR: unable to add the product.

 

Details:

Error thrown: [object XMLHttpRequest]

Text status: error

 

--

 

But then I find when I click onto a new page or refresh, that the item has been added anyway.

 

A similar thing occurs when trying to remove items from the dropdown cart in the header.

 

I have already looked on this forum and tried various fixes that have been suggested, but nothing has worked so far. I contacted the guy who looks after our server, and he says he doesn't know what could be wrong. I have created a couple of other Prestashop sites on the same server but have not come across this issue before.

 

Here is the URL for the site I am working on : http://preston.utopia.co.nz/~accent4f/

Link to comment
Share on other sites

Hello clayton29657,

 

I contacted my webhost who just pointed me to the error log. This is the error that is repeated over and over again:

 

--

 

[23-Aug-2012 16:01:09] PHP Warning: require_once(/home/accent4f/public_html/modules//blockcart/blockcart-ajax.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/accent4f/public_html/controllers/CartController.php on line 81

[23-Aug-2012 16:01:09] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/accent4f/public_html/modules//blockcart/blockcart-ajax.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accent4f/public_html/controllers/CartController.php on line 81

 

--

 

Does that help at all?

Link to comment
Share on other sites

Take a look at your blockcart module and see if there is a blockcart-ajax.php file within.

If not look to the theme you downloaded unzip to your computer and upload the file from the blockcart2 folder.

 

This is the line in question: require_once(_PS_MODULE_DIR_.'/blockcart/blockcart-ajax.php');

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...