Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP newb need help with an error


Guest

Recommended Posts

Posted

So I haven't touched my store in several weeks and today I went to update my products and I can't get to my admin page and this is all I get:

 

 

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

 

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

 

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

 

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

 

 

My home page pretty much has the same error codes on it except the last one of course: My sessions are stored to mysql in the configure.php files so I'm not sure what's going on or how to fix it. Can some one please help me and put it in layman's terms for a php idiot lol!

Posted

Go to your admin.

 

Change your tmp directory from /tmp to tmp and all will be fine.

 

Probably find that your host changed something in the config which is why you didn't get the error before.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Posted
Go to your admin.

 

Change your tmp directory from /tmp to tmp and all will be fine.

 

Probably find that your host changed something in the config which is why you didn't get the error before.

 

Rob

 

 

I know this sounds like a completely idiotic thing to ask but I've very new to php and just basically follow directions but I went to the admin folder on the site and have no idea where to find the /tmp Are you talking about changing it on my server and if so how do I do that? My server did do something last weekend where the server was down for three hours so I'm assuming that's when it happened. Thank you so much for answering me before and I really hope you can help me further :)

 

Thanks,

samantha

Posted

Hi

IF you can log into your Admin section, go to

admin > configuration > sessions at the top you will see the session directory in put as /tmp all you have to do is to change it to tmp

if you can get into your admin run the below in phpmyadmin

 

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

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
Hi

IF you can log into your Admin section, go to

admin > configuration > sessions at the top you will see the session directory in put as /tmp all you have to do is to change it to tmp

if you can get into your admin run the below in phpmyadmin

 

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

 

Nic

 

and if I can't login to my admin section?

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

 

run this in phpmyadmin

 

thank you so much, I got the one site to work now I only have to do it for the 3 other sites that are messed up on the same server :( lol

Posted
thank you so much, I got the one site to work now I only have to do it for the 3 other sites that are messed up on the same server :( lol

 

 

Another way you an supress warning [for future reference] is to find the line mentioned in the first warning line

i.e.

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

 

 

Line 165 of file admin/includes/functions/sessions.php on line 165

and add a @ sign at the begining of this line.

then try again if you have more then do the same for each individual line then try again.

 

The @ symbol will stop the warning from showing up. This is only a warning and not a fatal error so not a show stopper.

 

I would imagine that you will get this warning also when attempting to back up

 

Nic

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Archived

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

×
×
  • Create New...