Page 1 of 1

Failed to write session data (files) [Solved]

PostPosted: 02. March 2013 20:09
by robah91
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.

Re: Failed to write session data (files)

PostPosted: 02. March 2013 20:31
by Altrea
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.

Re: Failed to write session data (files)

PostPosted: 02. March 2013 20:35
by robah91
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?

Re: Failed to write session data (files)

PostPosted: 02. March 2013 20:39
by Altrea
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.

Re: Failed to write session data (files)

PostPosted: 02. March 2013 20:40
by robah91
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!

Re: Failed to write session data (files)

PostPosted: 02. March 2013 20:49
by Altrea
It is not only the php.ini file where paths are setted, also Apache, MySQL, ... configuration files.