Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog images broken in Admin


mjbeck

Recommended Posts

Posted

Hi Everyone,

 

I have been struggling with this for the past two days and I need help. I want the Admin section to have SSL protection and made the following change to admin/includes/configure.php:

 

define('HTTP_SERVER', 'https://secure24.vosn.net/~aztecrug'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 

I am in SSL mode but I get the following error message on the top of the screen when viewing the catalog pages:

 

Error: Catalog images directory does not exist: /home/venture/public_html/catalog/images/

 

Then I made the following change:

 

define 'DIR_FS_DOCUMENT_ROOT', '/home/aztecrug/public_html'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

 

This got rid of the error, but I still can't see the images when viewing the products. When I view the properties of the broken image, here is where it is trying to pull the image from:

 

https://secure24.vosn.net/catalog/images/98-85.jpg

 

Here is most of the code from admin/includes/configure.php. Please advise on what I need to do to have the images appear as they did before I made the change to view through the secure server:

 

// define our webserver variables 

// FS = Filesystem (physical) 

// WS = Webserver (virtual) 

 define('HTTP_SERVER', 'https://secure24.vosn.net/~aztecrug'); // eg, http://localhost or - https://localhost should not be NULL for productive servers 

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

 define('HTTPS_CATALOG_SERVER', 'https://secure24.vosn.net/~aztecrug'); 

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

 define('DIR_FS_DOCUMENT_ROOT', '/home/aztecrug/public_html'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) 

 define('DIR_WS_ADMIN', '/admin/'); 

 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); 

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

 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 

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

 

Thank you in advance,

Mark

Posted

are these the default images that are supplied with osc? clicking on ur link leaves to believe that the directory and/or image does not exist on the server.

Posted

I have solved my problem.

 

I changed this line in admin/includes/configure.php to:

 

define('DIR_WS_CATALOG_IMAGES', '/~aztecrug/catalog/' . 'images/');

 

This correctly completes the URL so all catalog images are found.

 

Thanks,

Mark

  • 6 months later...
Posted

If you have a shared SSL server and have a problem with broken image links, you can also turn the following line in your catalog/admin/configure.php file:

 

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

into:

 

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

 

which correctly assigns the 'DIR_WS_CATALOG_IMAGES' variable the correct catalog path.

 

Same difference, but without replacing code.

 

Just remember to also change

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

to

 

define('HTTP_SERVER', 'https://shared.ssl.server/~yoursite'); // eg, http://localhost - should not be empty for productive servers

  • 1 year later...
Posted
I have solved my problem.

I changed this line in admin/includes/configure.php to:

define('DIR_WS_CATALOG_IMAGES', '/~aztecrug/catalog/' . 'images/');

This correctly completes the URL so all catalog images are found.

Thanks,

Mark

 

OMG...this and several thousand other posts SAVED me. After hours upon hours of trying to configure my shared SSL - I finall y got EVERYTHING working. I am going to write up exactly what I used and share in hopes of it saving others the hours I (and countless others) put into getting this right. So simple but so NOT.

 

Thank you!!!

Lauren

Posted

I have a strange one!

 

I've installed my shared ssl cert everything is running fine eventually and then I noticed a small hitch - In Admin using ssl some images aren't showing up - being the images in the Info box on the left when browsing the categories and the language flags.

 

I've also figured out what is wrong - those images not showing up have the wrong url path, but I can't figure out where to change that url path as 80% of the images are showing up fine(In admin ssl)

 

Any ideas? :'(

  • 1 year later...
Posted

I have just uploaded all my products through the excel upload doc I found on the contributions. Everything uploaded exactly the way I wanted it to.

 

The only problem is the images. I can’t see the images at all. I only get red X's

 

Here is my online catalog: http://resourcesonline.us/osCommerce3/catalog/

 

If you click on the image and then go to properties I get the following extension: http://resourcesonline.us/osCommerce3/cata...04-XX.jpg:2::2:

 

But when I upload the images one by one through the OSC admin I get this extension :http://resourcesonline.us/osCommerce3/catalog/images/FUL1_AV22104-XX.jpg:2::2:

 

The part that says store// should not be there.

 

What I’m trying to do is get my images to work so that my customers can view them. How can I do this without having to do it one by one?

 

I uploaded all the images in the images directory and still the same problem. What do I need to do to correct this?

 

Thanks

 

[email protected]

Posted
If you have a shared SSL server and have a problem with broken image links, you can also turn the following line in your catalog/admin/configure.php file:

 

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

into:

 

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

 

which correctly assigns the 'DIR_WS_CATALOG_IMAGES' variable the correct catalog path.

 

Same difference, but without replacing code.

 

Just remember to also change

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

to

 

define('HTTP_SERVER', 'https://shared.ssl.server/~yoursite'); // eg, http://localhost - should not be empty for productive servers

 

 

When I go to catalog/admin/configure.php file I dont see anything inside. is there supposed to be something there? what Am I doing wrong?

 

Yuo mention lines and codes such as: define('DIR_WS_CATALOG', '/~yoursite/catalog/'); // absolute path required, but I dont even understand what all this means. Please frogive my ingorance Im very new at this.

 

Can yuo help me understand this a little more so I can get the concept donw and implement this?

 

I wold greatly appreciate it.

Posted
When I go to catalog/admin/configure.php file I dont see anything inside. is there supposed to be something there? what Am I doing wrong?

 

Yuo mention lines and codes such as: define('DIR_WS_CATALOG', '/~yoursite/catalog/'); // absolute path required, but I dont even understand what all this means. Please frogive my ingorance Im very new at this.

 

Can yuo help me understand this a little more so I can get the concept donw and implement this?

 

I wold greatly appreciate it.

 

Okay I got it I have ot look inside the html, Im using start logic. anyone fimiliar with that?

 

Also here is a link that im trying to get pics to be seen and with no success. Ive uploaded teh pics inside the images folder and the path I get when I right click on the image goes to store then images (http://resourcesonline.us/osCommerce3/catalog/images/store/Audio%20Cables/FUL1_BE112234-10.jpg) Im very cluelesss as t how t get these pictures to view.

 

Here is the link to my ecommerce page: http://resourcesonline.us/osCommerce3/catalog/

 

I have even went as far as creating a folder named store in the images folder to see if the path would fall into place. But for some reson no luck.

 

I have a huge project that is coming up that will require about 5000 products and I do not want to take that on without knowing how to get thee picture viewable.

 

PLEASE HELP ANYONE!

 

I would certainly appreciate it.

Posted

mark,

 

Also here is a link that im trying to get pics to be seen and with no success. Ive uploaded teh pics inside the images folder and the path I get when I right click on the image goes to store then images (http://resourcesonline.us/osCommerce3/catalog/images/store/Audio%20Cables/FUL1_BE112234-10.jpg) Im very cluelesss as t how t get these pictures to view.

 

Here is the link to my ecommerce page: http://resourcesonline.us/osCommerce3/catalog/

 

I have even went as far as creating a folder named store in the images folder to see if the path would fall into place. But for some reson no luck.

 

I have a huge project that is coming up that will require about 5000 products and I do not want to take that on without knowing how to get thee picture viewable.

 

PLEASE HELP ANYONE!

 

I would certainly appreciate it.

Archived

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

×
×
  • Create New...