Failed to write session data (user)
Posted by: kost36 (---.static.otenet.gr)
Date: May 16, 2017 08:49AM

HI there,
There are two hosts in server: interopt and gmdb
The first works perfect
but when trying to run the second it responses with

Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (f:/wamp64/tmp) in F:\wamp64\www\gmdb\libraries\joomla\session\handler\native.php on line 194

session_save_path looks correct (it's really on f:/wamp64/tmp)

On native.php runs a function like

public function save()
{
	// Verify if the session is active
	if ((version_compare(PHP_VERSION, '5.4', 'ge') && PHP_SESSION_ACTIVE === session_status())
        || (version_compare(PHP_VERSION, '5.4', 'lt') && $this->started && isset($_SESSION) && $this->getId()))
	{
		$session = JFactory::getSession();
		$data    = $session->getData();

		// Before storing it, let's serialize and encode the Registry object
		$_SESSION['joomla'] = base64_encode(serialize($data));

		session_write_close();

		$this->closed  = true;
		$this->started = false;
	}
}


wamp server 3.0.6 64bit
php version 7.010 (the probelm appears when turns on 5.6.25 too)
virtual hosts seems work perfect and host file too


windows 10pro 64



Any idea?

Many thank's
/kostas



Edited 2 time(s). Last edit at 05/16/2017 10:08AM by RiggsFolly.

Options: ReplyQuote
Re: Failed to write session data (user)
Posted by: RiggsFolly (Moderator)
Date: May 16, 2017 12:24PM

Hi,

I dont see this as a WAMPServer issue I am afriad. Maybe you would be better reporting this to Joomla.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.