Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pics not loading through admin


Guest

Recommended Posts

Posted

Hello,

 

I can't find this problem in any of the forums, so I'm hoping someone can help. I just installed a new osC site, and have only one major contribution, so far - Ultimate SEO URL's. I have started uploading products, but none of my product photos are loading. After I list a new product, set options including chooseing photo, and select 'preview', it says photo doesn't exist. I know it does exist, so I'm wondering why it's not loading. Any ideas would be great. My configure.php in admin/includes folder has image directory listed correctly.

 

Many Thanks,

 

NS

Posted

After you upload see if there is a small warning message at the top of the page saying something like "Warning - images directory is not writable, no file uploaded" If there is then the images directory has to be 777 for the permissions.

 

Product images are stored in catalog/images, not the admin directory.

Posted

Java Roasters,

 

Thanks for trying to help. I know where images are stored, that's not the problem. I am not getting any error messages after uploading picture, just the notification that the picture doesn't exist. After waiting a couple of hours, I came back and the picture I uploaded was there. When I continued to add products, the photos were again listed as not existing, although the original one was still there.

 

Wierd, huh?

 

NS

Posted

Go to your osC admin panel --> Tools --> Server Info and look for an entry called 'file upload' and make sure that it is enabled. If it's not then you are in trouble because you need this feature to be enabled. If it is enabled then post your includes/configure.php file here, minus the database user name and password.

 

Vger

Posted

Thanks Vger for taking a look. My server does have file upload enabled. My includes/configure.php is:

 

<?php

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.mishoes.net'); // 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', '.mishoes.net');

//define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

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', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'mishoes');

define('USE_PCONNECT', 'false'); // use persistent connections?

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

?>

 

Again, thanks,

 

NS

Posted

That file looks fine - and when I go to your site there are only four products and all their images display fine.

 

Vger

Posted

Thanks for the help. I changed the way I uploaded pics and now things work fine. Before, I was creating pics and saving in a file on my desktop. When I loaded pics, I went to this file and chose the one I wanted. This didn't work. Now I export the pic to my local site image file, and check that file into remote host before adding product and choosing that pic from site image file. This works fine.

 

Again, many thanks Vger!

 

NS

Posted

Hi, I have the same problem as you had. Can you tell me how to choose "that pic from site image file" as my browser will only take me to local files. I can upload through ftp (fetch or dreamweaver) so this might solve the problem as you clearly have.

 

cheers

DL

 

 

Thanks for the help. I changed the way I uploaded pics and now things work fine. Before, I was creating pics and saving in a file on my desktop. When I loaded pics, I went to this file and chose the one I wanted. This didn't work. Now I export the pic to my local site image file, and check that file into remote host before adding product and choosing that pic from site image file. This works fine.

 

Again, many thanks Vger!

 

NS

Archived

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

×
×
  • Create New...