Daniel Patilea Posted December 4, 2016 Share Posted December 4, 2016 (edited) The debug mode is widely used to see the errors on your shop and when: you get blank pages; you get 500 Internal Server Error; you have strage issues with your shop and don't know where to start; Edit: Debug mode on PrestaShop 8.0 PrestaShop Dashboard > Advanced Parameters > Performance > DEBUG MODE PANEL > Set it to YES Debug mode on PrestaShop 1.7 PrestaShop Dashboard > Advanced Parameters > Performance > DEBUG MODE PANEL > Set it to YES To turn on the Debug mode on PrestaShop 1.7 is more simple comparing it to the previous versions of Prestashop. You can do this from your PrestaShop Dashboard > Advanced Parameters > Performance > DEBUG MODE PANEL > Set it to YES If you can't acces you dashboard you can also enable it through FTP by accessing config/defines.inc.php and usually @line 29 you will find: define('_PS_MODE_DEV_', false); change it to: define('_PS_MODE_DEV_', true); Turning on the Debug Mode on other versions of Prestashop Debug mode on PrestaShop 1.5.3 to 1.6 For PrestaShop 1.5.3 to 1.6 the procedure is the same: Open config/defines.inc.php and usually @line 29 you will find : define('_PS_MODE_DEV_', false); change it to: define('_PS_MODE_DEV_', true); For PrestaShop below 1.5.3 you have to edit the config/defines.inc.php file and make the following changes: Change this line: @ini_set('display_errors', 'off'); to this: @ini_set('display_errors', 'on'); !!! Be careful, turn the Debug Mode off when finished debugging, hackers may get advatage of it and may harm your website and besides of that any visible error is not good for visitors. Debug mode for Admin or specific IPs Because Debug mode should not be visible for your customers here's a smart solution that allows you to enable it only for admins or for some provided IPs. This way your shop will not be vulnerable while you debug. Edited May 2, 2023 by Daniel Patilea New version of PrestaShop (8.0) (see edit history) 8 4 Link to comment Share on other sites More sharing options...
silviu_25 Posted June 12, 2019 Share Posted June 12, 2019 Thanks for the info, but where is saved the debug file? Link to comment Share on other sites More sharing options...
Daniel Patilea Posted June 12, 2019 Author Share Posted June 12, 2019 Usually the debug is displayed on your browser tab when there's an error. You can also view errors in error_log file from the root folder of your site. 1 Link to comment Share on other sites More sharing options...
Mourad20 Posted November 1, 2019 Share Posted November 1, 2019 ca reste le meme probleme le site est inaccessible du backoffice après l'installation Link to comment Share on other sites More sharing options...
Mexa Shop Posted November 19, 2019 Share Posted November 19, 2019 On 6/12/2019 at 1:59 PM, Daniel Patilea said: Usually the debug is displayed on your browser tab when there's an error. You can also view errors in error_log file from the root folder of your site. On 6/12/2019 at 1:59 PM, Daniel Patilea said: Usually the debug is displayed on your browser tab when there's an error. You can also view errors in error_log file from the root folder of your site. Hi Daniel, I've changed config/defines.inc.php from false to true, however, I do not see any difference when I try to access my backoffice or web page. the only message that i receive is : 500 Server Error Oops, something went wrong. Try to refresh this page or feel free to contact us if the problem persists. I´ve searched for the error_log inside the folder logs in filezilla, but there isn´t one any idea on how can I have more info about this Error 500 ? ----------------------------------------------------------- /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', true); } Link to comment Share on other sites More sharing options...
Daniel Patilea Posted November 21, 2019 Author Share Posted November 21, 2019 On 11/19/2019 at 7:46 PM, Mexa Shop said: Hi Daniel, I've changed config/defines.inc.php from false to true, however, I do not see any difference when I try to access my backoffice or web page. the only message that i receive is : 500 Server Error Oops, something went wrong. Try to refresh this page or feel free to contact us if the problem persists. I´ve searched for the error_log inside the folder logs in filezilla, but there isn´t one any idea on how can I have more info about this Error 500 ? ----------------------------------------------------------- /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', true); } Check your files&folder permissions and also the .htaccess file. Link to comment Share on other sites More sharing options...
Vinosaveurs Posted November 25, 2019 Share Posted November 25, 2019 J'ai enclenché le mode débug car mon backoffice est extrêmement lent voir inutilisable parfois. En mode débug, le backoffice est devenu inutilisable avec des message d'erreurs dans la plupart des catégories. N'ayant pas accès au FTP ni au code, je suis dans l'impossibilité de désactiver le mode débug. Y a t'il une méthode pour revenir en arrière de puis le backoffice? Merci! Link to comment Share on other sites More sharing options...
amontre Posted May 12, 2020 Share Posted May 12, 2020 J'ai mal fait ce que j'ai dit, que faire s'il vous plaît Link to comment Share on other sites More sharing options...
El Patron Posted May 13, 2020 Share Posted May 13, 2020 (edited) PS debug mode is really useless....if error then one must turn it on and then recreate to get issue, and while on you expose errors to everyone. we stopped counting on ps debug mode, we need to know errors before reporting from the field/customer. we released our in-house module which we use on all dev/prod client shops requires account with rollbar.com PrestaShop Rollbar.com Integration Module Edited May 13, 2020 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
chschinken Posted December 11, 2020 Share Posted December 11, 2020 Author of the module shod change this line: 'price' => number_format($product['price'], '2') To this: 'price' => number_format(floatval($product['price']), '2') Link to comment Share on other sites More sharing options...
mudol Posted September 5, 2022 Share Posted September 5, 2022 On 5/13/2020 at 5:02 PM, El Patron said: we released our in-house module which we use on all dev/prod client shops requires account with rollbar.com PrestaShop Rollbar.com Integration Module How to use it? Link to comment Share on other sites More sharing options...
El Patron Posted September 5, 2022 Share Posted September 5, 2022 9 hours ago, mudol said: How to use it? Hi, sorry that link was in error. We no longer make this module public. You can write us via our website and we can check your compatibility, rollbar is very useful but nobody ever showed interested before. 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