Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can no longer upload images via admin add/edit Product


magicmycote

Recommended Posts

Posted

Strange situation, I'm kind of stumped after reading thread after thread without finding the solution.

 

A few days ago I successfully installed OSc and had it up and working fine, added several categories and several items (with images attached using Browse button). I left for a few days, came back...having changed nothing relating to OSc on my server...and now when I try to upload an image, it just doesn't do it.

 

I get no error message other than "Image not uploaded"...and when I try to edit an existing product's image, again nothing happens except "Image not uploaded". The images are NOT showing up on my ftp...however they DO seem to be uploading, as I can see the LEDs on my NIC active.

 

When I click Preview, it shows the RedX placeholder for the image, however when you look at the properties for it, it doesn't list the entire URL to the image I tried to upload, it stops at

 

http://www.myhost.com/catalog/images/

 

Just doesn't seem to be able to successfully store the image in the folder and write the image name to the database.

 

I checked the permission on my catalog/images/ folder and it's 777. I checked the permissions on my db user and it's dba, I'm kinda stumped since it was working...now it's not. I read through a bug report about some users suddenly losing the ability to upload,but it was not resolved.

 

Can someone please help me, I'm coming up on an non-profit auction and I would like to be able to add new items w\ images without having to upload the image manually and then go into phpmyadmin and adding the image.jpg manually :P (which works btw).

 

Thank you for your time.

 

 

my catalog/includes/configure.php

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.******.com/catalog'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://******.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'http://******.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://******.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/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', 'catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'myusername');
 define('DB_SERVER_PASSWORD', 'mypassword');
 define('DB_DATABASE', 'mydbname
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
 // STS: ADD: Define Simple Template System files
 define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');
 define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); 
 define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');
 define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');
 define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); 
 define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');
 define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');
 define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');
  // STS: EOADD
?>

Posted

I have the exact same problem but get the error message

 

Warning: No file uploaded.

 

 

I too can upload manually and was able to insert a banner in header.php, but after a while this too vanishes which makes me believe it's a server side problem. So maybe you should contact your hosting company ? I await an answer from mine.

 

have you checked that uploads are on ? (in admininistration > tools > server info). Just a thought

 

file_uploads On On

 

Mine is but still no joy.

 

"go into phpmyadmin and adding the image.jpg manually"

Can you tell me how to do this ?

 

D

 

 

Please, if someone can help in any way, this auction is for St. Jude. tia
  • 4 weeks later...
Posted
I have the exact same problem but get the error message

 

I wish there was a response to this. I have the same problem. Aaaargh!

 

Kym

  • 1 month later...
Posted

If your host has updated his php, that would cause that problem, you need to check it out, Ralph

Archived

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

×
×
  • Create New...