Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can't upload products photos


Guest

Recommended Posts

every time i try to upload product photos in Categories give me this error

 

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/furnitureinredsea/www/images/) is not within the allowed path(s): (/home/furnitur:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/furnitur/public_html/admin/categories.php on line 326

 

Error: Catalog images directory does not exist: /home/furnitureinredsea/www/images/

 

and this is the categories.php lines from 325 to 329

 

// check if the catalog image directory exists

if (is_dir(DIR_FS_CATALOG_IMAGES)) {

if (!is_writeable(DIR_FS_CATALOG_IMAGES)) $messageStack->add (ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error');

} else {

$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error');

 

can anybody help

Link to comment
Share on other sites

I would guess that your DIR_FS_CATALOG define (admin/includes/configure.php) is bad. It looks like it says

define('DIR_FS_CATALOG', '/home/furnitureinredsea/www/');

but should say something like

define('DIR_FS_CATALOG', '/home/furnitur/public_html/');

Note: it may be that the problem is in DIR_FS_CATALOG_IMAGES, but the default is to build that using DIR_FS_CATALOG.

Always back up before making changes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...