Igbarah Posted July 21, 2021 Share Posted July 21, 2021 Hi, I have migrated a Prestashop 1.7.5.2 store from one server to another and when a new user registers it gives an error, the same thing happens when buying a product, it makes a kind of infinite loop and does not allow to buy anything. I have tried changing the PHP version from 7.3 to 7.0, 5.4 without success. I have tried changing the template for the default one and the same problem. I think it is something of a module, but I have deactivated many of them and it continues with the same error, the truth is I am desperate, I have tried to "crush" the whole store for a new one of the same version but I get an installer and in the database breaks saying table already exists. I have disabled the cache, I have also set debug mode, and Disable PrestaShop non-native modules to YES, and Disable all overrides methods. Yes, now it gives me an error when clicking "Add to cart". bottom-ee235d172.js: 39 POST https://osakasolutions.com/carrito 500 I attach an example product: https://osakasolutions.com/frio-industrial/433-f000544.html Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 21, 2021 Share Posted July 21, 2021 @Igbarah You can delete cache for cache folder via ftp. Inside car/cache 1. Disable no seo url from seo area and enable seo mode. 2. Force compile in backend 3. Clear server cache 4. Test non seo url mode. 5. Test with default PrestaShop theme I think with the above trips you are able to solve Thank you Link to comment Share on other sites More sharing options...
Igbarah Posted July 21, 2021 Author Share Posted July 21, 2021 thanks for your fast help SmartDataSoft, I have tried what you tell me but the problem persists. Comment that I have the cache in the var / cache folder Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 21, 2021 Share Posted July 21, 2021 Also try with reset cart module. Clear cache after. Link to comment Share on other sites More sharing options...
Igbarah Posted July 21, 2021 Author Share Posted July 21, 2021 Thanks very much ComGrafPL, I try to reset the ps_shoppingcart module but don't show the buttons reset or disable, I rename it and re-upload but the same problem. Link to comment Share on other sites More sharing options...
musicmaster Posted July 21, 2021 Share Posted July 21, 2021 First of all: did you clear the cache after each change of PHP version? The error appears on line 481 of CartPresenter.php. Have a look at that line and try to find out with debug code what the problem could be. Link to comment Share on other sites More sharing options...
Igbarah Posted July 22, 2021 Author Share Posted July 22, 2021 Hi musicmaster, yes I clear the caches after the changes. I can't find the file CartPresenter.php, but I try to replace the module ps_shoppingcart inside the theme warehouse and crash all the web whit error 500, when restore the ps_shoppingcart the shop work again. Link to comment Share on other sites More sharing options...
musicmaster Posted July 22, 2021 Share Posted July 22, 2021 5 hours ago, Igbarah said: I can't find the file CartPresenter.php, Really? Link to comment Share on other sites More sharing options...
Igbarah Posted July 22, 2021 Author Share Posted July 22, 2021 (edited) Thanks very much musicmaster!!, I remove the line 481 os the file /src/Adapter/ Presenter/Car/CartPresenter.php and now show this message when add a product to the cart: "There are not enough products in stock", but the infinite loop it solved!!. Edited July 22, 2021 by Igbarah (see edit history) Link to comment Share on other sites More sharing options...
Igbarah Posted July 24, 2021 Author Share Posted July 24, 2021 Hi, finally I solve it when I replace all the database, I think the backup of send us the other hosting its damaged, thanks very much for your help. 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