Jump to content

Symfony symfony again and again Prestashop 9.Admin down


ptityop

Recommended Posts

Hello, so I just upgraded to prestashop 9, backend was working fine but now whatever i click in the admin I get the following error

 

Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php81) failed: Permission denied (13)
Show exception properties
in vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php (line 87)
in vendor/symfony/http-foundation/Session/Storage/Proxy/SessionHandlerProxy.php -> gc (line 64)
SessionHandlerProxy->gc(1440)
in vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php session_start (line 172)
in vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php -> start (line 311)
in vendor/symfony/http-foundation/Session/Session.php -> getBag (line 222)
in vendor/symfony/http-foundation/Session/Session.php -> getBag (line 242)
in vendor/symfony/http-foundation/Session/Session.php -> getAttributeBag (line 69)
Session->get('_security_main')
in src/PrestaShopBundle/Security/Admin/SessionEmployeeProvider.php (line 68)
SessionEmployeeProvider->getEmployeeFromSession(object(Request))
in src/PrestaShopBundle/EventListener/Admin/UserLocaleSubscriber.php (line 70)
in vendor/symfony/event-dispatcher/EventDispatcher.php -> onKernelRequest (line 260)
in vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 220)
in vendor/symfony/event-dispatcher/EventDispatcher.php -> callListeners (line 56)
in vendor/symfony/http-kernel/HttpKernel.php -> dispatch (line 157)
in vendor/symfony/http-kernel/HttpKernel.php -> handleRaw (line 76)
in vendor/symfony/http-kernel/Kernel.php -> handle (line 197)
Kernel->handle(object(Request), 1, true)
in admin1345ys8qgjf638lu4f8/index.php (line 83)

 

Link to comment
Share on other sites

maybe this will help:

 

The fix (put sessions in your own writable folder)

Create the folder and set safe perms:

  • cPanel File Manager → create /home/USERNAME/tmp
  • Permissions: 1733 (or 0700 if you’re the only user on the account)

In cPanel → PHP INI Editor (or MultiPHP INI Editor) for your domain:

  • Set session.save_path = "/home/USERNAME/tmp"

 

Clear PrestaShop caches: /var/cache/* (via BO or delete prod/dev caches).

Reload the BO and test.

Link to comment
Share on other sites

Hello, thanks a lot for trying to help, the thing is I am getting different debug messages everytime , after clearing all cache i could, sessions etc, debug message has changed to :

 

PrestaShop\PrestaShop\Core\Context\CurrencyContext::__construct(): Argument #10 ($pattern) must be of type string, null given, called in /home1/qrnqpzte/9.suissetechnique.co/src/Core/Context/CurrencyContextBuilder.php on line 62

 

Is there a way to just reinstall preestashop without losing data? Would that help ? again thanks for your help

Link to comment
Share on other sites

19 minutes ago, ptityop said:

Hello, thanks a lot for trying to help, the thing is I am getting different debug messages everytime , after clearing all cache i could, sessions etc, debug message has changed to :

 

PrestaShop\PrestaShop\Core\Context\CurrencyContext::__construct(): Argument #10 ($pattern) must be of type string, null given, called in /home1/qrnqpzte/9.suissetechnique.co/src/Core/Context/CurrencyContextBuilder.php on line 62

 

Is there a way to just reinstall preestashop without losing data? Would that help ? again thanks for your help

which version of ps?  9.0.0 or 9.0.1?  

if you cannot fallback to original ps version (restore) then one can only go forward, if on 9.0.0 then you can create a fresh 9.0.1 installation and use from addons migration pro, which can export 'most' of your shop data's, just noticed a 9.0.0 to 9.0.1 did not carry over groups, for most that is not issue unless you added groups.

I'm still proving 9.0.1, but 9.0.0 is a NO GO!  remember to always post exact ps and php version, it matters.  

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