Prestafan1234 Posted April 16, 2010 Share Posted April 16, 2010 HiI activated Block advertising v0.1 in my testshop, modified some css to make the text black and some text in the Danish language files. I thought it was working okay and installed in my live shop. However, now when I try to add a product to my cart - be it an advertising block product or just a regular product, I now get error messages saying it cannot add to cart. If I hit my esc key, the products are still added to the cart - but it is not right. My cart is also collapsed when i erase all temp files and cookies - so it looks like my cart module has crashed even though this is a standard module in the Prestashop download?!I have removed the Block advertising v0.1, cleared all browser files, tried in Firefox instead of IE etc, and the error is still there. What has this module possibly messed up in my files??? As it is my liveshop, this does not look good:-(Prestashop Version 1.2.5.0 - 0.289s Link to comment Share on other sites More sharing options...
tomerg3 Posted April 16, 2010 Share Posted April 16, 2010 It is highly unlikely that a module (especially one that come with prestashop would do this).It is more likely that you did something else to mess things up.If you provide a URL, we'll be able to check it out... Link to comment Share on other sites More sharing options...
Prestafan1234 Posted April 16, 2010 Author Share Posted April 16, 2010 thanks for your prompt reply. My shop was working perfectly until today and the installation - so I don't know what else could have caused this? My testshop is here - same error: http://prestashop.jojoba.dk/ Link to comment Share on other sites More sharing options...
tomerg3 Posted April 16, 2010 Share Posted April 16, 2010 Looks like something is wrong with /classes/Cart.php (or maybe one of the other classes in there).First see if they were changed recently (you can see the dates using an ftp client), if they were, you should try to go back to the original files.If non of them was changed, nor /cart.php (in the homedir), then I would have to think about it a bit more... Link to comment Share on other sites More sharing options...
Prestafan1234 Posted April 16, 2010 Author Share Posted April 16, 2010 I looked through all my files, and the only ones changed recently where my global.css and admin.phpI am currently uploading my testshop backup - unfortunately I don't have a full similar version of my live shop. However I do have all the files seperately that I've changed stored, and a DB-backup from a few days ago. My backup is now done and I have the same error, which tells me that my database is messed up? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 16, 2010 Share Posted April 16, 2010 Its really hard to tell without taking a closer look, however, the database would be the last place I would look.You could try to do a database check with phpMyAdmin, but if it is the database, most likely other parts would not work either.I would rename the /classes directory on the server, and upload a fresh copy (from the installation files) and see if that helps. Link to comment Share on other sites More sharing options...
Prestafan1234 Posted April 17, 2010 Author Share Posted April 17, 2010 I uploaded my backup, which didn't help. I then tried to upload a fresh copy of classes as you suggested, and the result is still the same Link to comment Share on other sites More sharing options...
Prestafan1234 Posted April 17, 2010 Author Share Posted April 17, 2010 I've put solved in the headline, although that is not really the case. I have now disabled Ajax in my cart and can now add products. Something has been destroyed in my cart when I activated that module - I don't see any other reason why my shop went from working to giving me error messages when trying to add things to the cart. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 17, 2010 Share Posted April 17, 2010 Installing a module will very rarely have an affect like that, especially a built in module.I'm sure that with some proper debugging, one can get the to bottom of this issue. Link to comment Share on other sites More sharing options...
Prestafan1234 Posted April 17, 2010 Author Share Posted April 17, 2010 Can give me some ideas to debugging?The reason why I concluded that the module is to blame is the fact that both my testshop and my liveshop worked fine, before I added this module. In my testshop I had the module activated with the Ajax cart and got the pop up message with errors, I switched the module off, turned off Ajax and activated the module again, and that works fine. However, switching on Ajax again provokes the same error again. I've had the thought that perhaps Ajax needs to be de-activated before installing the module and then switched on again afterwards? But I haven't had the chance to test this in a fresh installation yet. Also I thought that it might be something to do with the fact that I have removed the Add to cart on my products, ie. the customer has to view the product before adding it to his cart (this is due to the fact that adding a product with attributes to the cart, selects the default product without asking).PrestaShop is brilliant and easy to use, but it does have flaws too. 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