Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problems with Admin setting


super3210

Recommended Posts

I just installed oscommerce into my website successful. now I want to login the Admin panel to edit my webiste. but some problems occurs as follows:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 40684 is not allowed to access owned by uid 0 in /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/sessions.php on line 161

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/sessions.php:161) in /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/sessions.php:161) in /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/sessions.php on line 97

 

Warning: Cannot modify header information - headers already sent by (output started at /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/sessions.php:161) in /www/5gbfree.com/s/u/p/super3210/htdocs/catalog/admin/includes/functions/general.php on line 22

 

 

my website is http://super3210.5gbfree.com/catalog/admin/

 

anyone who knows plx help me to fix it..Thank you very much.

Link to comment
Share on other sites

I am getting the exact same problem too when I go to http://www.******.co.uk/catalog/admin/.

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid/gid is 10177/10001 is not allowed to access owned by uid/gid 0/0 in /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php on line 161

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php:161) in /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php:161) in /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php on line 97

 

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php:161) in /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/general.php on line

 

 

 

Mark.

Link to comment
Share on other sites

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

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.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

why i still get the same problems after I deleted the whitespace in session.php and general.php files?

 

i dont know how to fix it,,i reinstalled the system for 3 times but still got the same problem....

 

is something wrong with the host ?? or just the problems with those files??

Link to comment
Share on other sites

I think you're being led down the garden path here. The 'headers already sent' message is being caused by the output created by the original problem:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid/gid is 10177/10001 is not allowed to access owned by uid/gid 0/0 in /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php on line 161

 

Your service provider is running php in safe mode, which is stopping access to some directory. You should find the answer at http://www.oscommerce.com/forums/index.php?sho...mp;#entry754745

Link to comment
Share on other sites

I think you're being led down the garden path here. The 'headers already sent' message is being caused by the output created by the original problem:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid/gid is 10177/10001 is not allowed to access owned by uid/gid 0/0 in /usr/local/psa/home/vhosts/coolcartridges.co.uk/httpdocs/catalog/admin/includes/functions/sessions.php on line 161

 

Your service provider is running php in safe mode, which is stopping access to some directory. You should find the answer at http://www.oscommerce.com/forums/index.php?sho...mp;#entry754745

 

 

thank you very much,,i fixed it when i use a kind man's advice as follows:

 

Ok, calmed down now, and after trawlng what seemed like half the internet i've found a fix.

 

Cause : Previous bug in PHP fixed in latest version (Chances are your ISP has updated to the new version)

 

 

Fix: Goto Admin / Configuration / Sessions and change the "Sessions Directory" to tmp (no slashes)

 

If you can't get into Admin, goto your Database Admin page (usually PhPAdmin app.)

Click on any table on the left hand side.

Click on SQL at the top of the screen

Overtype whatever appears in the SQL window with ...

 

 

QUOTE

UPDATE configuration SET configuration_value = 'tmp' WHERE configuration_key='SESSION_WRITE_DIRECTORY'

 

 

Click GO

 

Et Voila !

Ian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...