dorje 13 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
joseantgv 1,064 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
dorje 13 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
Neil Trinh 16 Posted February 9, 2018 Do you find the solution? I have the same problem. Share this post Link to post Share on other sites
Neil Trinh 16 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
JoseGut 11 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
Louccu 0 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
SMALLJIM 0 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
Sickboards 8 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
Fabrizzio 1 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
espacious 6 Posted January 22, 2019 Works perfectly for me too!! Thanks you very much!! Share this post Link to post Share on other sites
joseantgv 1,064 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
msoa 1 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
Martin-F 0 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
Marcella*M* 2 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
SavageDoro 0 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
FFNepto 0 Posted November 14, 2019 Thanks, working for me aswell Share this post Link to post Share on other sites
MyDesignAr 0 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
Pierre Antoine 0 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
immergente 2 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
goldies 6 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