|
mjmco3
|
 |
« on: May 16, 2007, 12:40:50 PM » |
|
I am having problems with OScommerce and the Lunarpages help doesn't. I have read the documentation ending with more confusion about permissions. The documentation talks about permission settings using numerical values, but Lunarpages Plesk doesn't have numerical values to be set. Here is the error that I am getting when I visit my shopping cart:
Warning: session_start() [function.session-start]: open(D:\\inetpub\\vhosts\\mjm-consulting.com\\httpdocs\\osCommerce/tmp\sess_b1f7dde3e897cb7f16174f45c1812586, O_RDWR) failed: No such file or directory (2) in D:\inetpub\vhosts\mjm-consulting.com\httpdocs\oscommerce\includes\functions\sessions.php on line 67
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\inetpub\vhosts\mjm-consulting.com\httpdocs\oscommerce\includes\functions\sessions.php:67) in D:\inetpub\vhosts\mjm-consulting.com\httpdocs\oscommerce\includes\functions\sessions.php on line 67
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\inetpub\vhosts\mjm-consulting.com\httpdocs\oscommerce\includes\functions\sessions.php:67) in D:\inetpub\vhosts\mjm-consulting.com\httpdocs\oscommerce\includes\functions\sessions.php on line 67 Warning: The sessions directory does not exist: D:\\inetpub\\vhosts\\mjm-consulting.com\\httpdocs\\osCommerce/tmp. Sessions will not work until this directory is created.
|
|
|
|
|
Logged
|
|
|
|
|
jailaxmi
Guest
|
 |
« Reply #1 on: May 16, 2007, 12:56:50 PM » |
|
I'd recommend you look for an answer on the OSCommerce Forums. Do a search for your issue first in the installation and configuration folder and if you can't find the answer, post a question. People there are super helpful and some will go out of their way to guide you through things.
I wish I could be of more help, but you'll find all answers related to OsCommerce at the forums.
jailaxmi
|
|
|
|
|
Logged
|
|
|
|
|
mjmco3
|
 |
« Reply #2 on: May 16, 2007, 01:06:14 PM » |
|
Lunarpages suggested I post on this forum because they couldn't help, even though it is a permission issue on their servers.
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #3 on: May 16, 2007, 01:08:10 PM » |
|
I have no idea how permissions are handled on Plesk/Windows, but I can translate the Unix/Linux-style numeric permissions for you... read write execute = 0 = no access X = 1 = execute only X = 2 = write only X X = 3 = write and execute only X = 4 = read only X X = 5 = read and execute X X = 6 = read and write X X X = 7 = read, write, and execute
Permissions come in groups of three: user (owner), other group members, and others (rest of world). You probably don't have to worry about "group" under Windows. The most common permissions you'll see are: - 755 = for directories (folders) and executable scripts and programs: owner can do anything to file or directory, while anyone else can only read files and run them (or list directory contents)
- 644 = for all other files, owner can read and write (also erase) file, everyone else can just read the file
- 444 = read-only for everyone, including the owner
There are many other combinations available, but those are by far the most common. If you have a specific permission number set you can't figure out, post it here and I'll translate it.
|
|
|
|
|
Logged
|
|
|
|
|
mjmco3
|
 |
« Reply #4 on: May 16, 2007, 01:46:11 PM » |
|
I posted here after Lunarpages support directed me to. It is also an issue with the permissions on their servers. I used to be on the Linux servers and switched to the Windows. Plesk is the control panel for the Windows hosting. Here is a screen cap of the permissions interface: 
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #5 on: May 16, 2007, 02:06:45 PM » |
|
Ah, it sounded from your first posting that you had no idea how to translate Unix-style numeric permissions to plain English. Your first error message says that it can't create a file. I note that the path includes all backslashes except for osCommerce/tmp, which could well be giving Windows indigestion. If some sort of error message was output to the screen, all the other error messages would follow from that (they can't put out headers because output has already been started).
Under httpdocs\\, I would see if there is a folder osCommerce/tmp. If it's actually osCommerce\\tmp, I would look at your code osCommerce\\includes\\functions\\sessions.php line 67 and see if it's coded for osCommerce/tmp or osCommerce\\tmp. If it's the former (/) try changing it to (\\). If that does the trick, look around for incorrect folder path separators elsewhere. The actual path string may be lurking in some PHP definitions file somewhere under osCommerce. Do a 'find' or 'search' for osCommerce/tmp.
|
|
|
|
|
Logged
|
|
|
|
|
mjmco3
|
 |
« Reply #6 on: May 21, 2007, 09:39:13 AM » |
|
I have already checked that file and the line reads:
return session_start();
I cannot trace where the "/temp" is called out.
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #7 on: May 21, 2007, 06:14:49 PM » |
|
I looked through my copy of osCommerce and didn't see any directories named 'tmp' referenced. In your original posting you showed a directory named "osCommerce/tmp", which I suspect is not valid in Windows. It looks like maybe someone overlooked something when converting from Linux to Windows (should have been changed to osCommerce\\tmp)? Unfortunately, the Linux version doesn't mention any directory by that name, so I don't know where to tell you to look. If this is how it was when you installed osCommerce, then I would think that lots of other people would be reporting trouble too. Did anyone modify (edit) your copy at some point? Have you looked in the osCommerce discussion groups (forums) to see if anything like this has shown up? I don't have anything else to suggest at this point.
|
|
|
|
|
Logged
|
|
|
|
seriousbusiness
Serious wholesale store from China
Newbie
Offline
Posts: 5
|
 |
« Reply #8 on: June 01, 2007, 07:15:13 AM » |
|
Header sent problem is very common. Usually caused by the blank before last ?> of each file. If it's difficult for you to solve. you can go to www.getafreelancer.com to post a project for help. I guess only $30 is enough for you to hire a professional to solve it. Good luck!
|
|
|
|
|
Logged
|
|
|
|
|
mjmco3
|
 |
« Reply #9 on: June 01, 2007, 09:37:38 AM » |
|
After much frustration, I decided to uninstall and reinstall. Problem gone. Now just to deal with the permissions issue listed above.
|
|
|
|
|
Logged
|
|
|
|
|