zeus1921 Posted April 6, 2023 Share Posted April 6, 2023 Hey there. After an new theme instalation i got a error. and i'v done a lot of things and i cannot get rid of this bug. (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 256 at Session->getBag('attributes')in Session.php line 278 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 111 at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))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 88 Link to comment Share on other sites More sharing options...
Eutanasio Posted April 29, 2023 Share Posted April 29, 2023 This error occurs when the session handler tries to clean up the session files in the '/var/cpanel/php/sessions/ea-php72' directory but doesn't have the required permissions to do so. To fix this issue, you can try the following steps: 1. Change the permissions of the '/var/cpanel/php/sessions/ea-php72' directory to 0770 2. Change the ownership of the '/var/cpanel/php/sessions/ea-php72' directory to the user and group running the PHP script, for example, 'www-data' (replace 'www-data' with the appropriate user and group for your setup): sudo chown www-data:www-data /var/cpanel/php/sessions/ea-php72 3. Restart the web server to apply the changes. After performing these steps, the permission issue should be resolved, and the error should no longer occur. if you can't do this yourself, contact your hosting provider to run this for you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now