Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BIG problem after instalation!!! look


codex

Recommended Posts

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 7208 is not allowed to access owned by uid 0 in /home/codexshop/public_html/shop/includes/functions/sessions.php on line 148

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/codexshop/public_html/shop/includes/functions/sessions.php:148) in /home/codexshop/public_html/shop/includes/functions/sessions.php on line 97

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/codexshop/public_html/shop/includes/functions/sessions.php:148) in /home/codexshop/public_html/shop/includes/functions/sessions.php on line 97

problem after instalation. what should i do to resolve it ? thank you in advance for all help.

Link to comment
Share on other sites

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 7208 is not allowed to access owned by uid 0 in /home/codexshop/public_html/shop/includes/functions/sessions.php on line 148

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/codexshop/public_html/shop/includes/functions/sessions.php:148) in /home/codexshop/public_html/shop/includes/functions/sessions.php on line 97

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/codexshop/public_html/shop/includes/functions/sessions.php:148) in /home/codexshop/public_html/shop/includes/functions/sessions.php on line 97

problem after instalation. what should i do to resolve it ? thank you in advance for all help.

 

Try Going to osC admin --> Configuration --> Sessions and change tmp/ to just tmp

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Try Going to osC admin --> Configuration --> Sessions and change tmp/ to just tmp

it was not helped to resolve this problem. maybe you could offer something more ? i'm getting same errors after this change.

Link to comment
Share on other sites

it was not helped to resolve this problem. maybe you could offer something more ? i'm getting same errors after this change.

Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 7208 is not allowed to access /tmp owned by uid 0 in /home/codexshop/public_html/catalog/admin/includes/functions/sessions.php on line 110

i think what this is the main problem. how to do what oscommers could work with safe mode normaly? i'm using shared hosting and i cant turnoff safe mode.

Link to comment
Share on other sites

yes SAFE MODE was the main problem. script was not allowed to write in /tmp directory so SAFE MODE made thees restrictions.

 

my hosting directory is /home/codexshop/public_html

 

so i made thees changes: admin --> configuration --> sessions --> changed session directory to /home/codexshop/catalog/tmp

 

i would like to ask is it safe to make such changes ? maybe it could make problems with shoping cart security or something like that ? thank you for help in advance.

Link to comment
Share on other sites

yes you have to specify the full path. Another thing you could do in the catalog\includes\configure.php is

 

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

 

so it will store sessions in the database.

Link to comment
Share on other sites

yes you have to specify the full path. Another thing you could do in the catalog\includes\configure.php is

 

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

 

so it will store sessions in the database.

the problem was not with this... the problem was with safe mode restrictions for using files and directorys.

 

i got more problems with oscommers it seems what its not working properly i will post problem soon.

Link to comment
Share on other sites

Storing sessions in the database is a good idea, but it doesn't resolve the Safe Mode problem, because Safe Mode still looks for a valid file pathway to a 'tmp' folder to store sessions in files - but you've resolved that problem correctly.

 

Vger

Link to comment
Share on other sites

thank you for all answers. here is another problem:

 

banners system do not work correctly.

 

admin > Tools > Banner Manager

 

and i see error - Error: Graphs directory is not writeable.

Graphs: shop/admin/images/Graphs i changed CHMOD 777, BUT

 

now i'm getting error from php when i coming back into banners menu:

 

Warning: imagepng(): Unable to access images/graphs/banner_infobox-2.png in /home/codexshop/public_html/shop/admin/includes/classes/phplot.php on line 482

Warning: imagepng(): Invalid filename 'images/graphs/banner_infobox-2.png' in /home/codexshop/public_html/shop/admin/includes/classes/phplot.php on line 482

 

there are only two files in Graphs: dummy and .cvsignore

 

.cvsignore content:

banner_infobox-*.png
banner_daily-*.png
banner_monthly-*.png
banner_yearly-*.png
banner_infobox-*.jpg
banner_daily-*.jpg
banner_monthly-*.jpg
banner_yearly-*.jpg
banner_infobox-*.gif
banner_daily-*.gif
banner_monthly-*.gif
banner_yearly-*.gif

 

banners do not work correctly. working only one banner. The default banner who was added thru oscommerce instalation. the strange thing is with banner group the default group 456x50 working normaly but then i try to create other group and add it to banner banner do not show normaly. do not offer to check file paths it all correct. i hope what people understand this problem :] thank you in advance for all answers and help.

Link to comment
Share on other sites

thank you for all answers. here is another problem:

 

banners system do not work correctly.

 

admin > Tools > Banner Manager

 

and i see error - Error: Graphs directory is not writeable.

Graphs: shop/admin/images/Graphs i changed CHMOD 777, BUT

 

now i'm getting error from php when i coming back into banners menu:

 

Warning: imagepng(): Unable to access images/graphs/banner_infobox-2.png in /home/codexshop/public_html/shop/admin/includes/classes/phplot.php on line 482

Warning: imagepng(): Invalid filename 'images/graphs/banner_infobox-2.png' in /home/codexshop/public_html/shop/admin/includes/classes/phplot.php on line 482

 

there are only two files in Graphs: dummy and .cvsignore

 

.cvsignore content:

banner_infobox-*.png
banner_daily-*.png
banner_monthly-*.png
banner_yearly-*.png
banner_infobox-*.jpg
banner_daily-*.jpg
banner_monthly-*.jpg
banner_yearly-*.jpg
banner_infobox-*.gif
banner_daily-*.gif
banner_monthly-*.gif
banner_yearly-*.gif

 

banners do not work correctly. working only one banner. The default banner who was added thru oscommerce instalation. the strange thing is with banner group the default group 456x50 working normaly but then i try to create other group and add it to banner banner do not show normaly. do not offer to check file paths it all correct. i hope what people understand this problem :] thank you in advance for all answers and help.

 

You will need to add write permissions to those two files.

 

 

The banner code in the footer only calls the one group, you can see it in the footer code if you look at the file. If you want to use different groups then what you need to do is duplicate the banner code then change the group name on the duplicated code.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

You will need to add write permissions to those two files.

The banner code in the footer only calls the one group, you can see it in the footer code if you look at the file. If you want to use different groups then what you need to do is duplicate the banner code then change the group name on the duplicated code.

i changed CHMOD 777 for thees two files but problem was not fixed. still getting same errors:

 

Warning: imagepng(): Unable to access images/graphs/banner_infobox-2.png in /home/codexshop/public_html/shop/admin/includes/classes/phplot.php on line 482

Warning: imagepng(): Invalid filename 'images/graphs/banner_infobox-2.png' in /home/codexshop/public_html/shop/admin/includes/classes/phplot.php on line 482

what is this file ? banner_infobox-2.png. this file is listed in the file from that directory. maybe filed are missing ? Maybe someone could offer the way how to fix this problem ?

Link to comment
Share on other sites

  • 4 months later...
the problem was not with this... the problem was with safe mode restrictions for using files and directorys.

 

i got more problems with oscommers it seems what its not working properly i will post problem soon.

 

I did say to specify the full path for your safe mode.

yes you have to specify the full path.

and set it before the domain root.

 

I'm getting this error too...

Any clues?

Check your DIR_FS_ADMIN in catalog\admin\includes\configure.php Make sure it points to a valid path.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...