Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't upload Product Images ????


TheBatFreak

Recommended Posts

Hey all,

 

I am running into a similar problem as many others from what I've read concerning getting Product Images to upload. The following is what all I have done:

 

1. Checked php.ini to make sure uploads is on and /tmp directory is enabled.

2. Confirmed CHMOD settings for image directory.(currently it is 777)

3. Followed information in Wiki guide.

4. I have tried some changes to my configure.php file but that didn't work either.

 

My browser DOES let me know at the top in a pink bar that "Warning: No file uploaded."

 

My configure.php file exists of the following EXCEPT myhost.com is obviously my domain.

 

 

define('HTTP_SERVER', 'http://www.myhost.com); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

  define('ENABLE_SSL', false); // secure webserver for checkout procedure?

  define('HTTP_COOKIE_DOMAIN', 'http://www.myhost.com');

  define('HTTPS_COOKIE_DOMAIN', '');

  define('HTTP_COOKIE_PATH', '/catalog');

  define('HTTPS_COOKIE_PATH', '');

  define('DIR_WS_HTTP_CATALOG', 'catalog/');

  define('DIR_WS_HTTPS_CATALOG', '');

  define('DIR_WS_IMAGES', 'images/');

  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

  define('DIR_WS_INCLUDES', 'includes/');

  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

  define('DIR_FS_CATALOG', '/home/myhost/www/catalog/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Everything else is working great! I love this stuff!

 

Any help that can be provided would rock!

Link to comment
Share on other sites

Check the chmod settings of /tmp (and make sure that it exists). Check the upload file size. Check httpd.conf and .htaccess to make sure that the upload values aren't getting overwritten: admin > Tools > Server Info will show the actual values in effect. The configure.php you posted is from the catalog side. The one that matters is the one on the admin side.

 

Hth,

Matt

Link to comment
Share on other sites

oops, thanks for the info on the config file... here's my one for admin:

 

define('HTTP_SERVER', 'http://www.mhost.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTP_CATALOG_SERVER', 'http://www.myhost.com');

  define('HTTPS_CATALOG_SERVER', '');

  define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT', '/home/myhost/www/catalog/'); // where the pages are located on the server

  define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

  define('DIR_FS_ADMIN', '/home/myhost/www/catalog/admin/'); // absolute pate required

  define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

  define('DIR_FS_CATALOG', '/home/myhost/www/catalog/'); // absolute path required

  define('DIR_WS_IMAGES', 'images/');

  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

  define('DIR_WS_INCLUDES', 'includes/');

  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

I checked for the TMP dir and it wasn't in the folder PHP is running from so I created it, CHMODed, etc.

 

After looking at my Server Info under PHP Variables I did notice some incorrect info that you may be able to help on. Basically, where most hosts do /www/hostname/etc... my server does /hostname/www/etc... SO, in the PHP Variables there are a number of references to direct pathes that are incorrect. What is that coming from?

 

Thanks for your help!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...