Jump to content

disabling debug mode gives error <1.7.2.2>


dorje

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
Link to comment
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

Link to comment
Share on other sites

  • 2 months later...
  • 6 months later...

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 6
  • Thanks 2
Link to comment
Share on other sites

  • 4 weeks later...
  On 9/3/2018 at 8: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);

Expand  

 

Thanks a lot! This works for my shop. Now I can log backend without debug mode

 

 

Link to comment
Share on other sites

  • 3 months later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

Works for me too !!

Thanks a lot

PS 1.7.5.0

Link to comment
Share on other sites

  On 1/12/2019 at 7:34 PM, SMALLJIM said:

Works for me too !!

Thanks a lot

PS 1.7.5.0

Expand  
 

 

  On 9/3/2018 at 8: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);

 

 

 

Expand  

Works perfectly for me too!! 

Thanks you very much!!
 

Link to comment
Share on other sites

  • 2 months later...
  On 2/9/2018 at 4: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!

Expand  

Saved me... In prestashop 1.7.5 i delete these folders:

-"/var/cache/dev"

-"/var/cache/prod"

Link to comment
Share on other sites

  • 2 weeks later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

Perfect, thanks!!

😎👍

PS 1.7.5.0

Link to comment
Share on other sites

  • 1 month later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

Thanks a lot, you saved me! 1.7.5.2

Bye

Edited by Marcella*M*
Versione prestashop (see edit history)
Link to comment
Share on other sites

  • 5 months later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

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! 

Link to comment
Share on other sites

  • 1 month later...
  On 2/9/2018 at 4: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!

Expand  

it works for me too, thanks!

Edited by MyDesignAr (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

Worked for me too! Thanks

Link to comment
Share on other sites

  • 3 weeks later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

Thanks @JoseGut, works fine for me on PS 1.7.6.1.

Link to comment
Share on other sites

  • 10 months later...
  On 2/9/2018 at 4: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!

Expand  

Thanks, this was a solution for me 🙂

Link to comment
Share on other sites

  • 7 months later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

Thank you very much, you just saved my life :-p Two hours that I was stuck with this problem !!!

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

  • 1 month later...
  On 9/3/2018 at 8: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);

 

 

 

Expand  

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 ! 

Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...

It didnt work for me.
I cant exit from debug mode

i have in defines.inc.php

define('_PS_MODE_DEV_', true);
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);

I have change define('_PS_MODE_DEV_', false);

but the problem persists

An exception has been thrown during the rendering of a template ("You have requested a non-existent service "mbo.ps_accounts.installer".").
[Twig\Error\RuntimeError 0]

Link to comment
Share on other sites

  On 2/1/2024 at 9:38 AM, dloghis said:

It didnt work for me.
I cant exit from debug mode

i have in defines.inc.php

define('_PS_MODE_DEV_', true);
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);

I have change define('_PS_MODE_DEV_', false);

but the problem persists

An exception has been thrown during the rendering of a template ("You have requested a non-existent service "mbo.ps_accounts.installer".").
[Twig\Error\RuntimeError 0]

Expand  

check if you have enabled prestashop account module. Try to reinstall it and see if it helps. 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...