View Full Version : Cannot find tmp folder
grungee
05-08-2005, 00:41/12:41AM
I have a problem with oscommerce when I try and run it, I get an error message
Warning: session_start() [function.session-start]: open(/tmp\sess_006e5dea52af8d822981a9b9acf574b0, O_RDWR) failed: No such file or directory (2) in C:\sokkit\site\Shop\includes\functions\sessions.php on line 67
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\sokkit\site\Shop\includes\functions\sessions.php:67) in C:\sokkit\site\Shop\includes\functions\sessions.php on line 67
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\sokkit\site\Shop\includes\functions\sessions.php:67) in C:\sokkit\site\Shop\includes\functions\sessions.php on line 67
Warning Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.
I am running Sokkit Control Panel v4.0 using Apache/2.0.53 (Win32) PHP/5.0.3 with MySQL 3.23.52
In php.ini I have tried
session.save_path = c:/sokkit/site/tmp
session.save_path = "c:/sokkit/site/tmp"
session.save_path = /tmp
session.save_path = \tmp
session.save_path = c:\sokkit\site\tmp
session.save_path = "c:\sokkit\site\tmp"
I have tmp folders in just about every folder you could imagine
Can someone help??
Cheers Tony
grungee
05-08-2005, 00:56/12:56AM
Not sure how I fixed it I went and put a tmp folder in just about every folder on my system ahhahahaha
Cheers
grungee
05-08-2005, 01:15/01:15AM
For some reason it need two tmp folders, one in c:\sokkit\tmp and the other in c:\tmp I have no idea why but it seems to work.
ihelpyou
05-08-2005, 08:47/08:47AM
bumping this.
Anyone know about this shopping cart? I've heard it's not a good one anyway.
a12c4magic
05-08-2005, 11:19/11:19AM
Originally posted by grungee
I have a problem with oscommerce when I try and run it, I get an error message
Warning: session_start() [function.session-start]: open(/tmp\sess_006e5dea52af8d822981a9b9acf574b0, O_RDWR) failed: No such file or directory (2) in C:\sokkit\site\Shop\includes\functions\sessions.php on line 67
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\sokkit\site\Shop\includes\functions\sessions.php:67) in C:\sokkit\site\Shop\includes\functions\sessions.php on line 67
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\sokkit\site\Shop\includes\functions\sessions.php:67) in C:\sokkit\site\Shop\includes\functions\sessions.php on line 67
Warning Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.
I am running Sokkit Control Panel v4.0 using Apache/2.0.53 (Win32) PHP/5.0.3 with MySQL 3.23.52
In php.ini I have tried
session.save_path = c:/sokkit/site/tmp
session.save_path = "c:/sokkit/site/tmp"
session.save_path = /tmp
session.save_path = \tmp
session.save_path = c:\sokkit\site\tmp
session.save_path = "c:\sokkit\site\tmp"
I have tmp folders in just about every folder you could imagine
Can someone help??
Cheers Tony
The problem occurs when content has been sent to the client and PHP has been instructed to set header parameters via the header() function, or when starting the session via the session_start() function.
Solution
The problem can be solved by walking through the code logic flow in the files involved, which are mentioned in the warning message, to make sure no headers are being set after content has been sent to the client.
A common cause to the problem is spaces ("whitespace") existing before the first <?php tag and/or after the last ?> tag with the files involved. By removing all spaces so that <?php is at the very start of the file and that ?> is at the very end of the file, no content would have been sent to the client and headers can be set safely.
Open the file in a text editor -> place your mouse cursor after the very last ?> tag at the very end of the file and press the 'delete' key on your computer keyboard. Make sure that whitespace does not exist before the opening <?php tag at the very beginning of the file - delete whitespace if present. Save and upload the file to your installation.
As for tmp folders you should only have 3 in total.
1 in the root
1 in includes
1 in includes/functions
hooter
05-08-2005, 11:23/11:23AM
:o: my bad I would do well to read the entire post more carefully. Didn't see the reference to oscommerce.
Now back to our regularly scheduled programming.
Originally posted by ihelpyou
bumping this.
Anyone know about this shopping cart? I've heard it's not a good one anyway.
g1smd
05-08-2005, 15:55/03:55PM
And what exactly is wrong with osCommerce as a shopping cart?
As I have recently told several people to look into that and ZenCart I would like to know....
ihelpyou
05-08-2005, 16:09/04:09PM
I have no idea. :) I just see many problems around and about. It could be that it's free, so there is no support. I just don't know.
I've heard it's not very se friendly either.
Connie
05-08-2005, 16:49/04:49PM
It can be a pretty good cart and can be made SE friendly. It wasn't user friendly (for me). I never could get it completely set up. I wasn't very motivated either.
It is open source so a good programmer can do about anything with the cart he wants to.
There is no direct support, but I believe they have a fairly active support forum.
Doug I expect what your seeing is stores set up by people with possibly a little more knowledge than I have. I doubt you would ever know a site that was built with OScommerce by a good programmer.
a12c4magic
05-08-2005, 18:57/06:57PM
It is true that there is no direct support, however there is a very active support forum and a in-depth knowledge base which users can refer to.
A for se friendly I’m not too sure what you mean, however having said that I have no trouble being indexed and I rank very well in google, msn and yahoo for the majority of my keywords two of which are:
magic the gathering singles
mtg singles
WebSavvy
07-08-2005, 15:22/03:22PM
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\sokkit\site\Shop\includes\functions\sessions.php:67) in
session_start() function was initiated in C:\sokkit\site\Shop\includes\functions\sessions.php therefore it cannot initiate again
(e.g., \tmp ) ... this is why the error message.
Remove one instance of the session_start() function call in either the \tmp folder file or in C:\sokkit\site\Shop\includes\functions\sessions.php
That's like putting the key in your car engine while it's still in your garage and starting it. Then back it out of the garage into the driveway, and attempting to start it again with another key.
If the car could spit out an error message it would be:
Cannot restart engine -- (session began in garage).
Maybe that analogy (though not very good) might help you understand it a bit more? :)
I've never used oscommerce shopping cart, but have seen it about on other sites.
g1smd
07-08-2005, 15:47/03:47PM
Heh Debbie! Even I understood that one.
grungee
09-08-2005, 10:23/10:23AM
Thanks guys the tips worked again. I am the kind of person who loves to tinker so I find all sorts of scripts and play around till I get them going, osCommerce is free so I just kept playing till I got it working, I am not sure if its any good or not but it was fun (for me) to see if I could get it working. I think down the track I will even try to get a forum working not for any other reason than to say I can do it I spose hehehe I have managed to do most of my site and other little bits and peices with no training but with the help of people on this forum and I managed to make it faster and higher ranking. So I guess I will keep tinkering.
Cheers
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.