dorje Posted November 23, 2017 Posted November 23, 2017 (edited) Hi recently my site went down because of some hosting problem. so i rolled back to a backup of few days ago. everything is working fine except one thing. The store is in debug mode and now whenever i disable the debug mode it gives me http 500 internal server. Anyone knows the solution ti fix it??? Edited November 23, 2017 by dorje (see edit history) 1 Share this post Link to post Share on other sites More sharing options...
joseantgv Posted November 23, 2017 Posted November 23, 2017 (edited) So when debug is enabled there isn't any error and when you disable it appears a error 500? EDIT: Try to enable debug by file, not in backoffice, as in PS 1.6. Edited November 23, 2017 by joseantgv (see edit history) 1 Share this post Link to post Share on other sites More sharing options...
dorje Posted November 28, 2017 Posted November 28, 2017 yes i enabled the debug mode from ftp and the site is working but whenever i disable the debug mode from backend the site goes down. i dont wont to keep it enabled for all time as it used mainly for devloping mode. so any solutions to make site working without enabling the debug mode Share this post Link to post Share on other sites More sharing options...
Neil Trinh Posted February 9, 2018 Posted February 9, 2018 Do you find the solution? I have the same problem. Share this post Link to post Share on other sites More sharing options...
Neil Trinh Posted February 9, 2018 Posted February 9, 2018 (edited) I think the problem's the Prestashop cache because I found something in "/config/defines.inc.php" http://prntscr.com/ic72b5 So I tried to delete two folders below and my site works normally now. -"/app/cache/dev" -"/app/cache/prod" Hope it could help. Thanks! Edited February 9, 2018 by Neil Trinh (see edit history) 3 6 Share this post Link to post Share on other sites More sharing options...
JoseGut Posted September 3, 2018 Posted September 3, 2018 Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); 6 2 Share this post Link to post Share on other sites More sharing options...
Louccu Posted September 27, 2018 Posted September 27, 2018 On 3.9.2018 at 11:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Thanks a lot! This works for my shop. Now I can log backend without debug mode Share this post Link to post Share on other sites More sharing options...
SMALLJIM Posted January 12, 2019 Posted January 12, 2019 On 9/3/2018 at 3:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Works for me too !! Thanks a lot PS 1.7.5.0 Share this post Link to post Share on other sites More sharing options...
Sickboards Posted January 19, 2019 Posted January 19, 2019 I had the same problem, for me the solution / error was that this folder was missing: var/cache/prod (you can copy it from the dev) Share this post Link to post Share on other sites More sharing options...
Fabrizzio Posted January 20, 2019 Posted January 20, 2019 On 1/12/2019 at 8:34 PM, SMALLJIM said: Works for me too !! Thanks a lot PS 1.7.5.0 On 9/3/2018 at 10:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Works perfectly for me too!! Thanks you very much!! Share this post Link to post Share on other sites More sharing options...
espacious Posted January 22, 2019 Posted January 22, 2019 Works perfectly for me too!! Thanks you very much!! Share this post Link to post Share on other sites More sharing options...
joseantgv Posted January 23, 2019 Posted January 23, 2019 Actually I think that clearing cache should fix the problem. 1 Share this post Link to post Share on other sites More sharing options...
msoa Posted April 6, 2019 Posted April 6, 2019 On 2/9/2018 at 8:20 AM, Neil Trinh said: I think the problem's the Prestashop cache because I found something in "/config/defines.inc.php" http://prntscr.com/ic72b5 So I tried to delete two folders below and my site works normally now. -"/app/cache/dev" -"/app/cache/prod" Hope it could help. Thanks! Saved me... In prestashop 1.7.5 i delete these folders: -"/var/cache/dev" -"/var/cache/prod" Share this post Link to post Share on other sites More sharing options...
Martin-F Posted April 15, 2019 Posted April 15, 2019 On 9/3/2018 at 5:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Perfect, thanks!!😎👍 PS 1.7.5.0 Share this post Link to post Share on other sites More sharing options...
Impe-M Posted May 21, 2019 Posted May 21, 2019 (edited) On 3/9/2018 at 10:36 AM, JoseGut dice: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Thanks a lot, you saved me! 1.7.5.2 Bye Edited May 21, 2019 by Marcella*M* Versione prestashop (see edit history) Share this post Link to post Share on other sites More sharing options...
SavageDoro Posted November 14, 2019 Posted November 14, 2019 On 9/3/2018 at 10:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); thanks so much!!! it saved my life!!! and a lot of other bugs, which I had with prestashop. Everywhere you just read, to clear the smarty folder inside the cache folder and not more - and I was afraid to delete the whole dev and prod folder. So thanks a lot for this idea! Share this post Link to post Share on other sites More sharing options...
FFNepto Posted November 14, 2019 Posted November 14, 2019 Thanks, working for me aswell Share this post Link to post Share on other sites More sharing options...
MyDesignAr Posted January 6, 2020 Posted January 6, 2020 (edited) On 2/9/2018 at 1:50 AM, Neil Trinh said: I think the problem's the Prestashop cache because I found something in "/config/defines.inc.php" http://prntscr.com/ic72b5 So I tried to delete two folders below and my site works normally now. -"/app/cache/dev" -"/app/cache/prod" Hope it could help. Thanks! it works for me too, thanks! Edited January 6, 2020 by MyDesignAr (see edit history) Share this post Link to post Share on other sites More sharing options...
Pierre Antoine Posted January 27, 2020 Posted January 27, 2020 On 9/3/2018 at 10:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Worked for me too! Thanks Share this post Link to post Share on other sites More sharing options...
immergente Posted February 18, 2020 Posted February 18, 2020 On 9/3/2018 at 10:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Thanks @JoseGut, works fine for me on PS 1.7.6.1. Share this post Link to post Share on other sites More sharing options...
goldies Posted December 19, 2020 Posted December 19, 2020 On 2/9/2018 at 5:50 AM, Neil Trinh said: I think the problem's the Prestashop cache because I found something in "/config/defines.inc.php" http://prntscr.com/ic72b5 So I tried to delete two folders below and my site works normally now. -"/app/cache/dev" -"/app/cache/prod" Hope it could help. Thanks! Thanks, this was a solution for me 🙂 Share this post Link to post Share on other sites More sharing options...
Epices Posted August 10, 2021 Posted August 10, 2021 On 9/3/2018 at 10:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Thank you very much, you just saved my life :-p Two hours that I was stuck with this problem !!! Share this post Link to post Share on other sites More sharing options...
Billd11 Posted October 5, 2021 Posted October 5, 2021 I am using version 1.7.7.1. I have the same problem. I can't get out of the debug mode. When I go into the BO and click on the Advanced Parimeters where the debug switch is supposed to be, it get a page of debug errors. I need to get this fixed. My site is down. Thanks, Bill Share this post Link to post Share on other sites More sharing options...
Billd11 Posted October 6, 2021 Posted October 6, 2021 Hi, Never mind. I fixed it. I was able to upgrade to version 1.7.7.8 and everything is working again. I cancelled the debug mode. Thanks, Bill 1 Share this post Link to post Share on other sites More sharing options...
BMCS Posted November 24, 2021 Posted November 24, 2021 On 9/3/2018 at 9:36 AM, JoseGut said: Hi, I had the same problem with BO and quitting DEBUG MODE. I deleted the folders dev and prod that are in root inside the folder "var". Now everything goes softly I can quit DEBUG MODE, I have no problems updating products, etc. To see where your shop is recording the cache files, take a look at around line 69 in config/defines.inc.php, where it says: if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); Using ver 1.7.6.3 same problem, I could not update any modules without getting 500 Server Error. So deleting these folders solved my error. Now it works. Thx ! Share this post Link to post Share on other sites More sharing options...
wiros Posted September 8, 2022 Posted September 8, 2022 I got the same issue in PS 1.7.7.1. The solution above did not work for me. any suggestions? Share this post Link to post 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