Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Four "warnings" when trying to access admin


Guest

Recommended Posts

Hey everyone,

 

I have some problem. when I try to access the admin section I get four errors. They are as follows:

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 554 is not allowed to access owned by uid 0 in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php on line 116

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php:116) in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php on line 73

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php:116) in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php on line 73

 

Warning: Cannot modify header information - headers already sent by (output started at /home/lanxtr00/domains/customtradingcomputers.com/public_html/store/admin/includes/functions/sessions.php:116) in /home/lanxtr00/domains/customtradingcomputers.com/public_html/store/admin/includes/functions/general.php on line 128

 

If anyone can helpout it would be greatly appreciated. Here are the lines it is asking for:

sessions.php:

line 116: return session_save_path($path);

line 73: return session_start();

 

general:php:

line 128: header('Location: ' . $url);

 

Thanks.

Link to comment
Share on other sites

 

I did this and now when I try to go to my admin section of my store I get similar errors:

 

Warning: session_start(): open(tmp/sess_dcfd4a9cf441398d43d1c7ab5948904b, O_RDWR) failed: No such file or directory (2) in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php on line 73

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php:73) in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php on line 73

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php:73) in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php on line 73

 

Warning: Cannot modify header information - headers already sent by (output started at /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/sessions.php:73) in /home/151887/domains/<mydomain>.com/public_html/store/admin/includes/functions/general.php on line 128

 

Warning: Unknown(): open(tmp/sess_dcfd4a9cf441398d43d1c7ab5948904b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (tmp) in Unknown on line 0

 

Also when I push refresh the "sess_<bunchoflattersandnumbers>" changes.

 

Is there anyway that I can disable sessions or make it so that I don't use them? I don't believe I need them.

Link to comment
Share on other sites

I did this and now when I try to go to my admin section of my store I get similar errors:

Also when I push refresh the "sess_<bunchoflattersandnumbers>" changes.

 

Is there anyway that I can disable sessions or make it so that I don't use them? I don't believe I need them.

 

I also got my host to disable SAFE MODE for php for my domain and the same error occurs EXCEPT FOR:

 

Warning: Unknown(): open(tmp/sess_dcfd4a9cf441398d43d1c7ab5948904b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (tmp) in Unknown on line 0

 

It is also interesting to know that at the top of the page of the index (not admin) of the store, I get some session_start warnings and it also says in red:

 

Warning: I am not able to write to the sessions directory: tmp. Sessions will not work until the right user permissions are set.

Link to comment
Share on other sites

1) create a sessions directory within your web space, ie: /catalog/sessions

 

2) go into admin, (you can get in there now) and in admin -> Configuration -> Sessions

put your new directory as the path. It's the long file system path, like your DIR_FS_CATALOG, ie: /bla/blablah/htdocs/yourid/catalog/sessions

 

3) Make sure you're saving sessions in the database. This is the last line in /includes/configure.php

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

=======

 

And no, your store will not work without session support, not at all. It is possible to stop it from trying to access the directory used to save session data provided that your sessions are saved in mysql but I'd save that as the last thing to try.

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)

Link to comment
Share on other sites

1) create a sessions directory within your web space, ie: /catalog/sessions

 

2) go into admin, (you can get in there now) and in admin -> Configuration -> Sessions

put your new directory as the path. It's the long file system path, like your DIR_FS_CATALOG, ie: /bla/blablah/htdocs/yourid/catalog/sessions

 

3) Make sure you're saving sessions in the database. This is the last line in /includes/configure.php

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

=======

 

And no, your store will not work without session support, not at all. It is possible to stop it from trying to access the directory used to save session data provided that your sessions are saved in mysql but I'd save that as the last thing to try.

 

Thanks a lot, I got it working!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...