osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Warning messages and no admin access

This is a discussion on Warning messages and no admin access within the osCMax v1.7 Installation forums, part of the osCMax v1.7 Forums category; Hi, I installed oscmax v1.7 on my PC a while ago and I'm now trying to do the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Installation

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-01-2007, 12:25 PM
Lurker
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
s123 is on a distinguished road
Default Warning messages and no admin access

Hi,

I installed oscmax v1.7 on my PC a while ago and I'm now trying to do the same install for my website.

I ftp'd the catalog directory (fresh copy of oscmax) to my webspace and the install seemed to go Ok however I get the following warnings when I go to the catalog www.******.com/catalog.

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in
effect. File(/tmp) is not within the allowed path(s): (/home/******/public_html in /home/******/public_html/catalog/includes/functions/sessions.php on line 118

Warning: session_start() [function.session-start]: Cannot send session cookie - headers
already sent by (output started at
/home/******/public_html/catalog/includes/functions/sessions.php:11 in
/home/******/public_html/catalog/includes/functions/sessions.php on line 67

Warning: session_start() [function.session-start]: Cannot send session cache limiter -
headers already sent (output started at
/home/******/public_html/catalog/includes/functions/sessions.php:11 in
/home/******/public_html/catalog/includes/functions/sessions.php on line 67


When I try to access the admin www.******.com/catalog/admin I get the following warnings and I don't even see the admin console!

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in
effect. File(/tmp) is not within the allowed path(s): (/home/******/public_html) in
/home/******/public_html/catalog/admin/includes/functions/sessions.php on line 110

Warning: session_start() [function.session-start]: Cannot send session cookie - headers
already sent by (output started at
/home/******/public_html/catalog/admin/includes/functions/sessions.php:110) in
/home/******/public_html/catalog/admin/includes/functions/sessions.php on line 67

Warning: session_start() [function.session-start]: Cannot send session cache limiter -
headers already sent (output started at
/home/******/public_html/catalog/admin/includes/functions/sessions.php:110) in
/home/******/public_html/catalog/admin/includes/functions/sessions.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at
/home/******/public_html/catalog/admin/includes/functions/sessions.php:110) in
/home/******/public_html/catalog/admin/includes/functions/general.php on line 86

I've found quite a few threads relating to similar warning messages but I still can't sort things out.. guess I'm just being stupid as usual!!

Anyway the things I've tried so far are..

tried install with file session storage and also with database session storage
adding a tmp directory to the root of my webspace.
changed line in catalog/includes/configure.php and catalog/admin/includes/configure.php "define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'"
also followed the advice at osCommerce Knowledge Base: Post-Installation
changed permissions of ALL the files and sub directories in the catalog directory to 777

I know it could ake me a very, very long time to get rid of these warnings without any help so I'd really appreciate some advice.

Thanks
Stuart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-01-2007, 02:45 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,246
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Warning messages and no admin access

You need to change the session save path to something other than /tmp (it has to be in your account path, and /tmp is not in that path).

Set the sessions to be stored in mysql to get around this issue.

define('STORE_SESSIONS', 'mysql');

Do this in both the catalog configure.php and the admin configure.php file.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-01-2007, 10:52 PM
Lurker
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
s123 is on a distinguished road
Default Re: Warning messages and no admin access

Thanks for the help but I'm still getting the same warning messages..

I had already tried changing the session storage to mysql but I did so again this morning as a further test.

The session storage line now reads as shown below in both catalog/includes/configure.php and catalog/admin/includes/configure.php.

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

I'm obviously doing something wrong as the first warning message...

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/mysnackcom/public_html) in /home/mysnackcom/public_html/catalog/includes/functions/sessions.php on line 118

.... when I go to the catalog still suggests that /tmp is still being used for session sorage.

Please can you help some more.

Thanks
Stuart



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-02-2007, 01:05 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,246
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Warning messages and no admin access

The problem is pretty simple. Your server doesn't allow you to save files outside of this path: /home/mysnackcom/public_html

you have sessions set up to save to /tmp which is outside that path. You need to set your sessions to save into your database to work around this. If you do it correctly there is no issue, since it will not save outside your allowed path. Or you could create a directory like /home/mysnackcom/public_html/tmp and chmod it 777. Then set osCMax to save sessions to that path.

If you have the cache turned on, you will also need to set the cache path to your allowed path.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-04-2007, 10:39 AM
Lurker
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
s123 is on a distinguished road
Default Re: Warning messages and no admin access

Thanks for your help.. it's now working although I had to change the session path in the sql install file.

I was already aware that the tmp path was outside of my web space I just didn't know how to change it.. anyway it took a while but it now seems fine.

Stuart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Cannot access admin wstinnett osCMax v2 Installation issues 5 12-09-2006 10:37 AM
Warning messages on clean install innovations osCMax v1.7 Installation 1 10-25-2004 11:58 PM
Lost admin access pluggin osCommerce 2.2 Modification Help 5 04-25-2004 02:54 PM
cant access admin Christy osCMax v1.7 Discussion 1 01-05-2004 08:50 AM
can access admin panel but cannot access catalog Anonymous osCMax v1.7 Discussion 1 10-14-2003 05:28 PM


All times are GMT -8. The time now is 09:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax