SOLVED: Session Error after Migration

Need help upgrading your Joomla! website or converting to Joomla! 3.x? Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

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.
User avatar
numinousmedia
Joomla! Ace
Joomla! Ace
Posts: 1559
Joined: Fri Dec 16, 2011 6:13 pm
Location: Millersburg, OH
Contact:

SOLVED: Session Error after Migration

Postby numinousmedia » Tue Jun 12, 2018 3:42 pm

We had a bit of run around while migrating a Joomla 3.x site from one server to another. We had migrated all of the files over, and when hitting the frontend of the site, we started getting errors in the Apache log like below:

Code: Select all

[Tue Jun 12 09:49:49.210159 2018] [:error] [pid 25679] [client 148.59.137.138:44162] PHP Warning:  session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in /var/www/ourdomain/libraries/joomla/session/handler/native.php on line 195


We went around in circles this morning, before figuring out that we had two problems that were interacting with each other.

Firstly, we hadn't migrated our database yet (or installed it even).

Secondly, our configuration.php file was set to save user session to the database.

When we changed the session parameter in the configuration.php file to "none", it defaulted back to using the normal php session handler, and the session bug went away.
Ryan
Frontend Developer and Joomla Professional
Ethode Website Development: http://www.ethode.com
Personal Site: http://www.numinousmedia.com

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 18794
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: SOLVED: Session Error after Migration

Postby leolam » Thu Jun 14, 2018 3:38 pm

The error shows exactly what was (or still is) wrong. On your server the /tmp folder is not assigned to 'session.save_path'. This should be addressed.

Session saving to 'database' is normal and should work properly. If not the server is not configured properly

So you might have taken away symptoms but not the cause

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
Member Joomla Bug Squad & Joomla CMS Release Team


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

Who is online

Users browsing this forum: No registered users and 6 guests