Warning: session_start(): Failed to read session data

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
antonios
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri Jun 20, 2008 2:22 pm

Warning: session_start(): Failed to read session data

Post by antonios » Mon Jul 11, 2022 11:37 am

Hi,
I have just migrated my webpage from a live host to localhost, using Akeeba backup->kickstart.php->angie.php
When arrived at the last step, after the site had been supposedly restored and pushing the Clean-up button
When I try to visit both the site front-end or the back-end I get the following message:
Warning: session_start(): Failed to read session data: user (path: D:\XAMPP php-7-4-29\tmp) in D:\XAMPP php-7-4-29\htdocs\joomla\libraries\joomla\session\handler\native.php on line 260
Error: Failed to start application: Failed to start the session
And cannot understand why.
I looked at several cases posted here, but could not find proposed solution that helps so far.
Also I tried to run the FPA script after copying it in my website root folder but I get the same error
So it seems that there is some other issue not related to the website itself that doesn't allow for scripts to run
into the website folder.
The version of php I am using is 7.4.29 (the version that I had on the live site si 7.4.30)
The joomla version is 3.10.10 (in both sites)
Last edited by antonios on Mon Jul 11, 2022 11:43 am, edited 1 time in total.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30892
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Warning: session_start(): Failed to read session data

Post by Per Yngve Berg » Mon Jul 11, 2022 11:42 am

save.session_path is not set to a valid writable folder in php.ini

D:\XAMPP php-7-4-29\tmp does not look correct to me.

antonios
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri Jun 20, 2008 2:22 pm

Re: Warning: session_start(): Failed to read session data

Post by antonios » Mon Jul 11, 2022 11:49 am

Hi Per
I see that the folder in question seems to be writable since I can see several files there
The last one written at 13:36 today
You do not have the required permissions to view the files attached to this post.

antonios
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri Jun 20, 2008 2:22 pm

Re: Warning: session_start(): Failed to read session data

Post by antonios » Mon Jul 11, 2022 12:01 pm

Also I just modified the following line in php.ini and reloaded everything

Code: Select all

session.save_path="777;D:\XAMPP php-7-4-29\tmp"
but the issue persists!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30892
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Warning: session_start(): Failed to read session data

Post by Per Yngve Berg » Mon Jul 11, 2022 1:22 pm

session.save_path="D:\XAMPP php-7-4-29\tmp"

Unless you create 777 folders in tmp.

antonios
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri Jun 20, 2008 2:22 pm

Re: Warning: session_start(): Failed to read session data

Post by antonios » Mon Jul 11, 2022 2:02 pm

ok but as I showed the tmp directory has already being written

antonios
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri Jun 20, 2008 2:22 pm

Re: Warning: session_start(): Failed to read session data

Post by antonios » Mon Jul 11, 2022 5:27 pm

Am just realizing that although in php.ini

Code: Select all

session.save_path="D:\XAMPP php-7-4-29\tmp"
but in my configuration.php file

Code: Select all

public $tmp_path = 'D:/XAMPP php-7-4-29/htdocs/joomla/tmp';
so I wonder if the first value shouldn't also be as the second, that is:

Code: Select all

session.save_path="D:/XAMPP php-7-4-29/htdocs/joomla/tmp"
since the session is being saved outside of the joomla installation .... just wondering


Locked

Return to “Migrating and Upgrading to Joomla! 3.x”