MarlboroMan Posted October 15, 2016 Share Posted October 15, 2016 Hi Please help? I urgently need to get debug mode to work in Prestashop 1.6.1.5. I did change the below files in config\defines.inc.php define('_PS_MODE_DEV_', true); @ini_set('display_errors', 'on'); Do I need to change anything else? Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 Changing the value of _PS_MODE_DEV_ from false to true is all you need to do to enable debug mode. Error messages should begin appearing instead of blank pages after doing that. Link to comment Share on other sites More sharing options...
bellini13 Posted October 15, 2016 Share Posted October 15, 2016 on a separate note, PS v1.6.1.5 was a faulty version of Prestashop, quickly replaced by PS v1.6.1.6, I would suggest upgrading Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 15, 2016 Author Share Posted October 15, 2016 Hi Guys By changing the value of _PS_MODE_DEV_ from false to true I get no screen with errors. How can I see why my product changes will not save or save and stay? Are there a way to upgrade my site without loosing the changes I have done? Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 Sounds like your AJAX calls are failing, in which case you'll need to find the red AJAX call in the Firebug console and then check the Response tab to see the error message. It's possible it is a file permissions issue or a programming issue. If you've made all your changes to PrestaShop as overrides, then it's safe to upgrade without loses your changes. You'll lose all non-override changes in the upgrade and need to re-apply them, so keep a log of your changes and make a backup of your site before upgrading so you can refer back to it if needed. Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 15, 2016 Author Share Posted October 15, 2016 When I first started with Prestashop I did not know about the overrides so I made the changes directly. I guess my options are to try and fix my current version or start over with a new version. For now I will try to trouble shoot. Sounds like your AJAX calls are failing, in which case you'll need to find the red AJAX call in the Firebug console and then check the Response tab to see the error message. It's possible it is a file permissions issue or a programming issue. Please explain how to do the above mentioned? 1 Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 You'll need to install Firefox with the Firebug extension if you haven't already and then press F12 to open Firebug. Then edit a product and you should see something like the following: As you can see, there are no errors on my PrestaShop v1.6.1.7 test site. In your case, there will be some AJAX calls that are red instead of black. Click the + icon on the left to view the error message in the Response tab. If you have enabled _PS_MODE_DEV_, there should be an error message there that can be used to debug. Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 15, 2016 Author Share Posted October 15, 2016 I've added some extra text to one of my product description and clicked on save and stay. The page then refreshes without saving the new added text but all the lines in firebug are black. I've also tried adding to cart then receive a "Your shopping cart is empty." message but the firebug screen was blank. Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 Weird. Sounds like something is preventing data being written to the database. It's possible your MySQL user doesn't have permission to write to the database. I'm not sure what else would cause that level problem, except maybe an override that is causing it. Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 15, 2016 Author Share Posted October 15, 2016 Why only in google? If I use another browser the save function works perfectly also the add to cart work. Link to comment Share on other sites More sharing options...
rocky Posted October 16, 2016 Share Posted October 16, 2016 I have no idea. Doesn't make any sense. Have you tried on another computer? Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 16, 2016 Author Share Posted October 16, 2016 Hi Rocky I've decided to build a new shop from scratch with Prestashop ver1.6.1.7 as upgrading will have to many complications. Will I be able to copy all existing customers,orders,products,categories and images into the new site? Link to comment Share on other sites More sharing options...
rocky Posted October 17, 2016 Share Posted October 17, 2016 PrestaShop doesn't come with an option to transfer data from one database to another. You should be able to use the 1-Click Upgrade module to upgrade to PrestaShop v1.6.1.7 and preserve your data. 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