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 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.