Jump to content

debugs error


somchay

Recommended Posts

Hi

 

when i enable debug mod occur Notice on line 429 in file /public_html/app/cache/dev/classes.php

[8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php70) failed: Permission denied (13)

 

and i don't have /php/sessions/ea-php70  files in cpanel

 

 

prestashop 1.7.2

 

post-1415459-0-64805800-1502973174_thumb.jpg

post-1415459-0-99860300-1502973175_thumb.jpg

post-1415459-0-66309000-1502973176_thumb.jpg

Link to comment
Share on other sites

From the first screenshot it seems that one of the carts in your store is looking for an address with id 9 that it cannot find.

What you could do is to go to your database (using phpmyadmin or anything else) in table ps_cart and look after columns id_address_delivery and id_address_invoice where you can find the id 9 and replace it with 0. Or you could go to table ps_address and create a new address that will have the id 9.

If after you do one of the above you still get the error, pay attention to the first line where it says Invalid address #, there might be other addresses missing as well with other ids and you should do the same for those too.

 

As for the Session error, it sounds like a bad server configuration.

  • Sad 1
Link to comment
Share on other sites

  • 4 months later...

i activate debug mode and got this notice also :

Notice à la ligne 93 du fichier /home2/migarose/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php
[8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php70) failed: Permission denied (13)
 

i also get this error please can i have a help here please !!!

NB: the site is working normally and i am using a CDN cloudflare

Link to comment
Share on other sites

  • 3 months later...

In front \classes\controller\FrontController.php
change this:
 

 private function initDebugguer()
    {
        if (true === _PS_MODE_DEV_) {
            Debug::enable();
        }
    }

To

    private function initDebugguer()
    {
        if (true === _PS_MODE_DEV_) {
            Debug::enable(error_reporting());
        }
    }


Now in \config\defines.inc.php you can set php errors level http://php.net/manual/pl/function.error-reporting.php
For example you can set:
 

if (_PS_MODE_DEV_ === true) {
    @ini_set('display_errors', 'on');
    //@error_reporting(E_ALL | E_STRICT);
    @error_reporting(E_ALL ^ E_NOTICE);
    define('_PS_DEBUG_SQL_', true);
} else {
    @ini_set('display_errors', 'off');
    define('_PS_DEBUG_SQL_', false);
}


 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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...