Jump to content

Session_start(): Failed


9254686f

Recommended Posts

Hello guys
I got this error  Warning: session_start(): Failed to read session data: user (path: C:\app\php7.1\tmp) in C:\app\Apache2.4.29\htdocs\PhpMyAdmin\www\konference\libraries\joomla\session\handler\native.php on line 260 Error displaying the error page: Application Instantiation Error: Failed to start the session. 
Here is native.php https://pastebin.com/HjYGPvjr

Can someone help me ? 
 

Link to comment
Share on other sites

if your joomla installation is setup to use a database for the session data storage, it appears there is a change/side-effect in php7.1, where no data being returned causes this error. see this link - https://bugs.php.net/bug.php?id=73616

 

this either could be due to a change in the string type casting or in the php side of the session handling, though if the session handler is changed to a custom one, php shouldn't be puking out its file handling session save path value in an error message about not being able to read session data.

 

the fix is for the custom session read handler to return an empty string upon no matching data. this change would be made in the joomla database.php code. see this link - https://github.com/joomla-framework/session/blob/master/Storage/Database.php

 

or more simply, switch the session data storage to use php's file handling, rather than a database.

Link to comment
Share on other sites

Um, just a guess,

 

Is this a fresh install for Joomla?

Have there been updates or changes to the web hosts?

Has your database user been set up and granted all the privileges?

Has configuration.php been configured with the database details?

 

I'd be looking at these things... then maybe checking the php.ini file is setup correctly, if you have access.

 

I am just guessing, this is where id be starting, you have not made any changes to the code for Joomla right?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.