Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No Images or Icons!


Taj Jackson

Recommended Posts

Posted

I have finally achieved a successful install and am ready to get to work, but the latest obstacle is that none of the images or icons are appearing in either catalog or admin. I keep thinking I must be overlooking something simple, but just can't spot it.

 

Here's my includes/configure.php

 

<?php
 define('HTTP_SERVER', 'http://www.pocketpieces.com');
 define('HTTPS_SERVER', 'https://secure.pocketpieces.com');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'www.pocketpieces.com');
 define('HTTPS_COOKIE_DOMAIN', 'secure.pocketpieces.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', '/data/17/2/90/82/2090082/user/2291947/htdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

The image files are all there. My lines for the image and icon directories are set the same in my admin/includes/configure. There is no htaccess file in my images directory. I've played around with file/dir permissions to no avail. Permissions on the images folder are currently 2775 (-w- rwx rwx r-x ). Permissions on the image files themselves are set to 644 (rw- r-- r--). The image files were uploaded ascii, although I tried replacing them via binary upload once before with no results. The path in the file appears be correct, dagnabbit!

 

Can anyone see what I'm missing here?

Posted

I have finally achieved a successful install and am ready to get to work, but the latest obstacle is that none of the images or icons are appearing in either catalog or admin. I keep thinking I must be overlooking something simple, but just can't spot it.

 

Have you uploaded your images to: http://www.pocketpie...catalog/images/ ?

Posted

Yep. They're all there. My domain name points to www.pocketpieces.com/catalog/, so the WS entry for the directory is www.pocketpieces/images. Typing in that address gets me an "Access Forbidden" message.

 

I dont think you have your images in:

/data/17/2/90/82/2090082/user/2291947/htdocs/catalog/images/

If you have, they should be shown..

Posted

define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

All of these lines should be...

 

define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');

 

Your server is already pointed to root so when a user goes to www.pocketpieces.com the server is serving files in catalog transparently, so you do not need to include catalog in your ws paths. Only in the fs paths.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

All of these lines should be...

 

define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');

 

Your server is already pointed to root so when a user goes to www.pocketpieces.com the server is serving files in catalog transparently, so you do not need to include catalog in your ws paths. Only in the fs paths.

 

 

So THAT'S it! Bingo! Thanks so much mdtaylorlrim! But why are the images distorted? Should they have been uploaded via binary? Regardless of which browser I use, the images (and the majority of the icons) are so distorted as to be unreadable.

Posted

They are probably distorted because you have defined BOTH the height and width for small and large images. Only define one and the aspect ratio will remain the same when they are sized.

 

Consider using a thumbnail add-on to manage images.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

:thumbsup: Again, thanks a million! I'm beginning to get my head wrapped around this now. Hope to be able to start paying it forward shortly!

Posted

:thumbsup: Again, thanks a million! I'm beginning to get my head wrapped around this now. Hope to be able to start paying it forward shortly!

And yes, images should be uploaded in binary. Everything else osC should be uploaded in ascii. Your FTP program should be smart enough to do that on its own.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Archived

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

×
×
  • Create New...