Jump to content

Error on Admin Page


snatchie

Recommended Posts

Hello everyone!

I recently moved the website to a new server and I get some errors.

If the debug mode is Off i get error on Admin Page -- http 500 error

If I turn the debug mode to on I get : the /home/conaculbaciului/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php
[8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php72) failed: Permission denied (13)

I tried to change the session path to /tmp, but with no result.

Another errors appearing when I want to select the Modules tab.

--

(1/1) ContextErrorException

Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php72) failed: Permission denied (13)

in StrictSessionHandler.php line 101

at StrictSessionHandler->gc(1440)in SessionHandlerProxy.php line 83

at SessionHandlerProxy->gc(1440)

at session_start()in NativeSessionStorage.php line 145

at NativeSessionStorage->start()in NativeSessionStorage.php line 295

at NativeSessionStorage->getBag('attributes')in Session.php line 258

at Session->getBag('attributes')in Session.php line 280

at Session->getAttributeBag()in Session.php line 73

at Session->get('_security_main')in ContextListener.php line 89

at ContextListener->handle(object(GetResponseEvent))in WrappedListener.php line 46

at WrappedListener->handle(object(GetResponseEvent))in TraceableFirewallListener.php line 35

at TraceableFirewallListener->handleRequest(object(GetResponseEvent), object(Generator))in Firewall.php line 84

at Firewall->onKernelRequest(object(GetResponseEvent))in FirewallListener.php line 48

at FirewallListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in WrappedListener.php line 115

at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in EventDispatcher.php line 212

at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))in EventDispatcher.php line 44

at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in TraceableEventDispatcher.php line 143

at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127

at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68

at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200

at Kernel->handle(object(Request), 1, false)in index.php line 86

--

Where is the problem? Can somebody help me?

Thanks!

Link to comment
Share on other sites

Hi,

you can set the session path to /tmp, and create the /tmp folder or create a tmp folder in your site's root folder (public_html usually) and set the session path from php.ini or .htaccess) if server allows this to be set from htaccess) , or ask your hosting to fix the permission of the folder /var/cpanel/php/sessions/ea-php72 on your server.

Kind regards, Leo.

Link to comment
Share on other sites

  • 3 weeks later...

For the screenshot shared from your side related to the admin login page please enable the debug mode from the directory

config/defines.inc

Change:
define('_PS_MODE_DEV_', false);

To:
define('_PS_MODE_DEV_', true);

After that if there is any error message showing on the page for that please let us know also you can check the error log directory and share the same for the error details.

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