SOLVED: Session Error after Migration

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

SOLVED: Session Error after Migration

Post by 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] 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.
Frontend Developer and Joomla Professional
Ethode Website Development:
Personal Site:

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

Re: SOLVED: Session Error after Migration

Post by 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: -
-> Joomla Specialized Hosting Solutions: -
Member Joomla Bug Squad & Joomla CMS Release Team

Post Reply

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