Jump to content
dorje

disabling debug mode gives error <1.7.2.2>

Recommended Posts

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 by dorje (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

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 by joseantgv (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

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

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 by Neil Trinh (see edit history)
  • Thanks 5

Share this post


Link to post
Share on other sites

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);

 

 

 

  • Like 1
  • Thanks 2

Share this post


Link to post
Share on other sites
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
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

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
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
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
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
Posted (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 by Marcella*M*
Versione prestashop (see edit history)

Share this post


Link to post
Share on other sites
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More