Dimaer Posted July 5, 2012 Share Posted July 5, 2012 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? Link to comment Share on other sites More sharing options...
bellini13 Posted July 5, 2012 Share Posted July 5, 2012 first explain why you think that the following file does not exist? I assume you replaced your account name with "SHOPNAME", right? /home/SHOPNAME/public_html/controllers/CartController.php Link to comment Share on other sites More sharing options...
Dimaer Posted July 5, 2012 Author Share Posted July 5, 2012 (edited) 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 July 5, 2012 by Dimaer (see edit history) 1 Link to comment Share on other sites More sharing options...
bellini13 Posted July 5, 2012 Share Posted July 5, 2012 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. 1 Link to comment Share on other sites More sharing options...
tomerg3 Posted July 5, 2012 Share Posted July 5, 2012 Can you post the URL for your site, or use Firebug console to look at the response from the ajax file (cart.php) Link to comment Share on other sites More sharing options...
bellini13 Posted July 5, 2012 Share Posted July 5, 2012 hey Tomer, the issue was that the ajax file on the server could not be found. the user has resolved that issue. Link to comment Share on other sites More sharing options...
spiderspy Posted August 18, 2012 Share Posted August 18, 2012 Dimaer Thanks a lot, it realy help. I just fogot that I use blockart2 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