archVille Posted March 9, 2006 Posted March 9, 2006 I have the below warning : Warning: session_start(): open(/tmp\sess_ea04e98e8658f5d09b8ab5e393b4db8d, O_RDWR) failed: No such file or directory (2) in C:\avs\php\os\2ms2\catalog\admin\includes\functions\sessions.php on line 67 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\avs\php\os\2ms2\catalog\admin\includes\functions\sessions.php:67) in C:\avs\php\os\2ms2\catalog\admin\includes\functions\sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\avs\php\os\2ms2\catalog\admin\includes\functions\sessions.php:67) in C:\avs\php\os\2ms2\catalog\admin\includes\functions\sessions.php on line 67 Is there a read/write or session error ???
AlanR Posted March 9, 2006 Posted March 9, 2006 Try this: Fix: Warning: session_save_path() Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
archVille Posted March 9, 2006 Author Posted March 9, 2006 Try this: Fix: Warning: session_save_path() The same problem occurs !
archVille Posted March 9, 2006 Author Posted March 9, 2006 It tells me : Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.. Where do i have to create the tmp directory ????
custodian Posted March 9, 2006 Posted March 9, 2006 It tells me : Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.. Where do i have to create the tmp directory ???? Well two things. First anything proceed with a / such as /tmp means root directory (top level). This could mean the top level of your directory or the top level of you machine. If it is YOUR server then most likely top level of the machine. If it is a shared server then it's probably top level of your directory. Try placing the entire path to your directory (eg. /usr/home/yourusername/tmp ALSO.. it appears that you are on a windows server. I'm a UNIX person but should all the /'s be the same... and in your case shouldn't that be \tmp ? My Contributions Henry Smith
spax Posted March 9, 2006 Posted March 9, 2006 I think this error is because you have set OSC to store sessions in a file rather than the database, so it is looking for the tmp folder where it would store the files. You need to change the last line of both configure.php files, so you will see: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Note where it says 'mysql' in 'STORE_SESSIONS' - that is what you need to enter.
♥Vger Posted March 9, 2006 Posted March 9, 2006 Unfortunately this has nothing to do with storing sessions in the database or in files. It is a by-product of a server using a certain version of PHP when Safe Mode has been enabled. A valid pathway to a 'tmp' folder is required - even if you store sessions in the database, and even if no 'tmp' folder exists. Warning: The sessions directory does not exist: /tmp As advised previously in this thread you need to go to osCommerce admin --> Configuration --> Sessions and change /tmp to just tmp. The problem should then disappear. If it doesn't then change /tmp to something like the following (find the root path by looking at the DIR_FS pathway in includes/configure.php): /var/www/html/tmp (example only) You do not actually need to create a 'tmp' folder, just provide a valid path to where it would be. Vger
archVille Posted March 9, 2006 Author Posted March 9, 2006 Unfortunately this has nothing to do with storing sessions in the database or in files. It is a by-product of a server using a certain version of PHP when Safe Mode has been enabled. A valid pathway to a 'tmp' folder is required - even if you store sessions in the database, and even if no 'tmp' folder exists.As advised previously in this thread you need to go to osCommerce admin --> Configuration --> Sessions and change /tmp to just tmp. The problem should then disappear. If it doesn't then change /tmp to something like the following (find the root path by looking at the DIR_FS pathway in includes/configure.php): /var/www/html/tmp (example only) You do not actually need to create a 'tmp' folder, just provide a valid path to where it would be. Vger Some times the solution is too simple i am ... confused with much more complicated stuff. I just checked Database Session Storage from the installation and this problem dissapered. I might have problem with the locatrion of file in File Session Storage... Anyway , thanx for the recomendations...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.