Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SAFE MODE Restriction in effect


dkweb

Recommended Posts

Posted

*H*E*L*P*

I get this error on the top of the screen - (take a look on: http://www.netshop4all.dk and select the free area on over the website):

 

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 131606/131606 is not allowed to access owned by uid/gid 0/0 in /hsphere/local/home/netshp/netshop4all.dk/includes/functions/sessions.php on line 118

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/netshp/netshop4all.dk/includes/functions/sessions.php:118) in /hsphere/local/home/netshp/netshop4all.dk/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/netshp/netshop4all.dk/includes/functions/sessions.php:118) in /hsphere/local/home/netshp/netshop4all.dk/includes/functions/sessions.php on line 67

 

What do i have to do???

 

Another thing is, what is the reason to this error in matter of i haven?t change anything since i reinstall my shop????

 

Thank you

Best regards

Mogens,DK

Posted

set the sessions to mysql in both configure.php files

 

define('STORE_SESSIONS', 'mysql');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
set the sessions to mysql in both configure.php files

 

define('STORE_SESSIONS', 'mysql');

 

It is allready set: define('STORE_SESSIONS', 'mysql');

Posted

Yes, Safe Mode ignores the fact that sessions are being stored in the database and looks for the full pathway to a 'tmp' folder, so:

 

1. Set up a folder in the root of your web e.g. temp

2. In your osCommerce admin panel, under Configuration --> Sessions set the full pathway to the new 'temp' folder. You'll be able to see it in your configure.php files, and with look something like '/var/www/html/'

 

Vger

Posted

Something with OsCommerce must be vrong!I have just install a new OsCommerce on a new domain seperate from my netshop4all.dk and in matter of i have not configurate or change anything i get the same error when i write http://www.e-shop-4-all.net/admin:

 

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 131606/131606 is not allowed to access owned by uid/gid 0/0 in /hsphere/local/home/netshp/e-shop-4-all.net/admin/includes/functions/sessions.php on line 110

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/netshp/e-shop-4-all.net/admin/includes/functions/sessions.php:110) in /hsphere/local/home/netshp/e-shop-4-all.net/admin/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/netshp/e-shop-4-all.net/admin/includes/functions/sessions.php:110) in /hsphere/local/home/netshp/e-shop-4-all.net/admin/includes/functions/sessions.php on line 67

 

Why?? what is vrong ?

Posted
Yes, Safe Mode ignores the fact that sessions are being stored in the database and looks for the full pathway to a 'tmp' folder, so:

 

1. Set up a folder in the root of your web e.g. temp

2. In your osCommerce admin panel, under Configuration --> Sessions set the full pathway to the new 'temp' folder. You'll be able to see it in your configure.php files, and with look something like '/var/www/html/'

 

Vger

 

Hi vger

 

I have done what you suggest but all what happend was a new error:

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 131606/131606 is not allowed to access owned by uid/gid 0/0 in /hsphere/local/home/netshp/netshop4all.dk/admin/includes/functions/sessions.php on line 110

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/netshp/netshop4all.dk/admin/includes/functions/sessions.php:110) in /hsphere/local/home/netshp/netshop4all.dk/admin/includes/functions/sessions.php on line 67

 

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/netshp/netshop4all.dk/admin/includes/functions/sessions.php:110) in /hsphere/local/home/netshp/netshop4all.dk/admin/includes/functions/general.php on line 18

 

 

and here is my configure.php - i can?t find something like '/var/www/html/'

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.netshop4all.dk'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.netshop4all.dk');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/netshp/netshop4all.dk/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/hsphere/local/home/netshp/netshop4all.dk/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/hsphere/local/home/netshp/netshop4all.dk/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'mydb2.surftown.dk'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'netshp_e-shop4');

define('DB_SERVER_PASSWORD', 'xxxxxxxx');

define('DB_DATABASE', 'netshp_e-shop4');

define('USE_PCONNECT', 'false'); // use persisstent connections?

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

?>

 

I am not a programmer so i hope you or somone else can help to get my netshop back to online.

 

Thank you

Regards

Mogens,DK

Posted

Dkweb kan se du har en ADVANCED Shop hvor can man downloade den?

 

were can i download a ADVANCED shop som link will be nice

Posted

I'm also having about the same problem. I'm using mySQL, and both configuration.php files say

define('STORE_SESSIONS', 'mysql');

I tried what Vger suggested, but that didn't fix it. I even tried editing php.ini to state the session.save_path, but that didn't fix anything.

 

What else should I check?

 

Thanks.

Posted

It is not allowed to advertise commercial websites on these forums.

 

1. Set up a folder in the root of your web e.g. temp

2. In your osCommerce admin panel, under Configuration --> Sessions set the full pathway to the new 'temp' folder:

/hsphere/local/home/netshp/netshop4all.dk/temp/

Posted
1. Set up a folder in the root of your web e.g. temp

2. In your osCommerce admin panel, under Configuration --> Sessions set the full pathway to the new 'temp' folder:

/hsphere/local/home/netshp/netshop4all.dk/temp/

But I'm using mysql.

Posted

Safe Mode ignores the fact that you are using MySQL to store sessions and still expects you to have a valid 'temp' folder - even if you don't use it.

 

Vger

Posted
It is not allowed to advertise commercial websites on these forums.

 

1. Set up a folder in the root of your web e.g. temp

2. In your osCommerce admin panel, under Configuration --> Sessions set the full pathway to the new 'temp' folder:

/hsphere/local/home/netshp/netshop4all.dk/temp/

 

 

It works now.[/b]

Thank you for your help.

Mogens

 

But I'm using mysql.

 

 

I am also using mysql and the advice from Vger solve the problem!!

Posted
Safe Mode ignores the fact that you are using MySQL to store sessions and still expects you to have a valid 'temp' folder - even if you don't use it.

 

Vger

 

That makes sense. I changed the value in the Admin console to the full path to my tmp folder, and it seems to be working now. Thanks for your help.

Posted

Hi!

I'm having a similar problem it seems. Concerning the safe mode. Here's what I have on my index page:

 

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/ethnicbo/www/htdocs/includes/functions/database.php:41) in /www/ethnicbo/www/htdocs/includes/functions/sessions.php on line 68

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/ethnicbo/www/htdocs/includes/functions/database.php:41) in /www/ethnicbo/www/htdocs/includes/functions/sessions.php on line 68

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: main(includes/languages/russian/index.php): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/index.php on line 33

Fatal error: main(): Failed opening required 'includes/languages/russian/index.php' (include_path='.:') in /www/ethnicbo/www/htdocs/index.php on line 33

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 41

Warning: error_log(): SAFE MODE Restriction in effect. The script whose uid is 1548 is not allowed to access /var/log owned by uid 0 in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /www/ethnicbo/www/htdocs/includes/functions/database.php on line 48

 

Any ideas how can I make osCommerce work?

Archived

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

×
×
  • Create New...