Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Messages are Driving me crazy - Any Help , Please


Guest

Recommended Posts

Any help will really be appreciated. I am a knucklehead when it comes to PhP. Ok with html.

 

Can't find it on the forum, this one seems unique!

I get the following errors:-

 

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.

File(/usr/local/apache/htdocs/osc/images/) is not within the allowed path(s):

(/home:/usr/lib/php:/usr/local/lib/php:/tmp) in

/home/a9498221/public_html/osc/admin/categories.php on line 326

 

Error: Catalog images directory does not exist: /usr/local/apache/htdocs/osc/images/

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.

File(/usr/local/apache/htdocs/osc/images/category_hardware.gif) is not within

the allowed path(s): (/home:/usr/lib/php:/usr/local/lib/php:/tmp) in

/home/a9498221/public_html/osc/admin/includes/functions/general.php on line 234

 

Something has to be changed, but what???? :blush:

Sometimes I am the dog and sometimes the Lampost!

Thank You in Advance.

Frik van der Schyff

Link to comment
Share on other sites

No, it's not unique.

 

Your hosts are running PHP in Safe Mode and this is causing all of the problems. Try this fix (below) and see if that helps.

 

Session Save Path and Safe Mode

-------------------------------

The error is a by-product of using PHP in Safe Mode.

To get around the problem go to your osCommerce Admin Panel -->

Configuration --> Sessions and set Session Save Path to just tmp

with no forward slash before or after tmp. You get this error even if you

have elected to store sessions in the database.

 

If the error prevents you from accessing your admin panel then

access the database via phpMyAdmin, go to the 'configuration' table,

find the Session Save Directory entry (there are several pages of

entries for this table), open it for editing and change /tmp to

just tmp with no slash before (or after) it.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...