Jump to content

[SOLVED] After upgrade of PHP version I get SessionHandler::read() error for symfony


Thbor83

Recommended Posts

Hi,

Upgraded server today with latest patches and upgraded to PHP v 8.1 from 8.0

Before upgrade both admin and frontend worked fine, but after upgrade it are complaining about 

Warning: SessionHandler::read(): Session data file is not created by your uid in /var/www/html/prestashop/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 59

Warning: session_start(): Failed to read session data: user (path: /var/lib/php/session) in /var/www/html/prestashop/classes/controller/FrontController.php on line 788

 

Have followed this guide when installing and redone most steps, since upgrade did overwrite several files.

https://www.howtoforge.com/how-to-install-prestashop-on-rocky-linux-9/

Do any of you know why this happens?

All feedback appreciated.

 

 

EDIT!

After researching more I figured out that in /var/lib/php/session folder it was created two sess files, they where created after all upgrades, but it seems they have been made before all changes was ready. Deleting them helped and then all worked again.

Edited by Thbor83
Figured out what problem was and how to solve it. (see edit history)
Link to comment
Share on other sites

  • Thbor83 changed the title to [SOLVED] After upgrade of PHP version I get SessionHandler::read() error for symfony

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