Failed to write session data (files) [Solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Failed to write session data (files) [Solved]

Postby robah91 » 02. March 2013 20:09

Downloaded XAMPP for class, all default settings still. Ran a program that came with my book and got this error before changing anything:


[Sat Mar 02 13:09:05.397438 2013] [:error] [pid 2436:tid 1692] [client ::1:53433] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:C:\\xampp\\tmp) in Unknown on line 0, referer: http://localhost/chapter04/


Can't figure out how to change it, went through much of the settings/logs but couldn't find anything that would help me fix this.
robah91
 
Posts: 3
Joined: 02. March 2013 20:06
XAMPP Version: 1.8.0
Operating System: Windows 7 64bit

Re: Failed to write session data (files)

Postby Altrea » 02. March 2013 20:31

robah91 wrote:
[Sat Mar 02 13:09:05.397438 2013] [:error] [pid 2436:tid 1692] [client ::1:53433] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:C:\\xampp\\tmp) in Unknown on line 0, referer: http://localhost/chapter04/

Your paths are screwed up.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4523
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.0
Operating System: W7Ux64

Re: Failed to write session data (files)

Postby robah91 » 02. March 2013 20:35

Altrea wrote:
robah91 wrote:
[Sat Mar 02 13:09:05.397438 2013] [:error] [pid 2436:tid 1692] [client ::1:53433] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:C:\\xampp\\tmp) in Unknown on line 0, referer: http://localhost/chapter04/

Your paths are screwed up.


I'm new to this, where might I fix the path?
robah91
 
Posts: 3
Joined: 02. March 2013 20:06
XAMPP Version: 1.8.0
Operating System: Windows 7 64bit

Re: Failed to write session data (files)

Postby Altrea » 02. March 2013 20:39

robah91 wrote:I'm new to this, where might I fix the path?

There are several configuration files where the paths are setted. The question is WHY your paths are screwed up.
XAMPP comes with a batch file \xampp\setup_xampp.bat which normally is setting the paths correct.
So maybe it is enough to stop all your xampp components and run this batch script again.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4523
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.0
Operating System: W7Ux64

Re: Failed to write session data (files)

Postby robah91 » 02. March 2013 20:40

Nevermind! I found the php.ini file and was able to replace all C:C:'s with just C: and it works! Thanks for the help!
robah91
 
Posts: 3
Joined: 02. March 2013 20:06
XAMPP Version: 1.8.0
Operating System: Windows 7 64bit

Re: Failed to write session data (files)

Postby Altrea » 02. March 2013 20:49

It is not only the php.ini file where paths are setted, also Apache, MySQL, ... configuration files.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4523
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.0
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: Qorx and 10 guests