Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images not showing in Admin


Guest

Recommended Posts

OK!! I am frustrated. I fixed this one other time but can't remember what I did to get it right. Everything looks fine to me but I can't get my category pics to show up in the admin area. I need a fresh pair of eyes. Here is my admin config code.

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'https://secure55.websitewelcome.com/~molli/'); // eg, http://localhost - should not be empty for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://secure55.websitewelcome.com/~molli/');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/molli/public_html/cart/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/molli/public_html/cart/catalog/fty3k/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/molli/public_html/'); // 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/');

Link to comment
Share on other sites

define('DIR_FS_ADMIN', '/home/molli/public_html/cart/catalog/fty3k/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/molli/public_html/'); // absolute path required

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

OK, think your FS_CATALOG should read '/home/molli/public_html/cart/catalog'; ? Thats taking the logic from the admin address. Hope that helps.

Link to comment
Share on other sites

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

define('HTTPS_CATALOG_SERVER', 'https://secure55.websitewelcome.com/~molli');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/molli/public_html/cart/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/molli/public_html/cart/catalog/fty3k/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/molli/public_html/cart/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/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Ok. For some reason it is adding DIR_WS_ADMIN to DIR_WS_CATALOG and then adding the image directory so that it screws up the whole path! Maybe config isn't the problem. Does anyone have any ideas???

Link to comment
Share on other sites

New situation with the "same old" problem. I got the path right now but for some reason in the picture name the program is adding a %20 where there is a space. Therefore it can't find a picture. The deal is that I deleted a bunch of files on my original install and lost my old config. Everything was working perfectly. Now however with the new copy of the config.php the category pics won't show. All other pics do. And they used to show up. I don't know why it is now putting a %20 in the name of the pic when it should be 4 035.jpg for instance it shows up 4%20035.jpg. WHY?????

Link to comment
Share on other sites

New situation with the "same old" problem. I got the path right now but for some reason in the picture name the program is adding a %20 where there is a space. Therefore it can't find a picture. The deal is that I deleted a bunch of files on my original install and lost my old config. Everything was working perfectly. Now however with the new copy of the config.php the category pics won't show. All other pics do. And they used to show up. I don't know why it is now putting a %20 in the name of the pic when it should be 4 035.jpg for instance it shows up 4%20035.jpg. WHY?????

You should never use spaces in file names. The %20 is the server substituting the space character's code for the space character. Spaces in file names cause all kinds of problems for Linux/Unix systems. Your local PC uses work arounds to make spaces appear friendly but internally there are no spaces in the real file names. That's why all osC files are named like account_edit.php, using the underscore to indicate a spce.

 

Have you ever seen a professional site with spaces in the url? How many files do you have on the server with spaces in the names?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

You know I was thinking that that was the problem. I never upload pics with spaces but the "wonderful" person working for this store did. The only problem is that I looked at a pic that was wooly.jpg and it still won't show up in the admin. Any ideas on that?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...