Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Admin Image display issue fix...


wynneth

Recommended Posts

After searching every board I could find I finally made a fix for this myself. I am using a shared SSL server, and I set my admin panel as well as my shopping cart functions to SSL. After copying the entire catalog folder over to the SSL folder, changing settings back and forth for hours, I finally found the fix for this issue.

 

Issue: When viewing Admin panel in SSL mode, folder icons display, but category and subcategory and product images do not.

 

Temporary Fix: In the catalog/admin/includes/configure.php line 13:

 

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

remove DIR_WS_CATALOG . (including the spaces!) and change 'images/' to reflect the entire address to your images folder (ssl version or plain), i.e. 'https://www.yourdomain.com/catalog/images/'

So the line should now read:

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'http://www.yourdomain.com/catalog/images/');

 

I'm sure there is a much more thorough fix for this but my brain power is draining... Apparently the folder icons are called from the catalog/includes/configure.php file but the other images are from the admin configure file. From what I can see this is the only folder that is affected, the button images (INSERT, EDIT, etc) are called from the includes/languages/LANGUAGE/images/buttons/ directory.

 

So in short!

If you're admin is SSL and you can see folder icons, and buttons, but not category images - fix that line - until someone better posts a true fix.

 

Wyn

 

PS to the mods and admins, I'm cross posting this for now as I'm not sure who will be looking where. Please don't be offended.

Link to comment
Share on other sites

  • 1 month later...

I had a similar issue. Site was hosted with Netfirms with a shared SSL cert, and error messages in IE7 forced us to change the secure server path definition in the config files from https://www.ourdomain.com.secured.sslpowered.com to https://secured.sslpowered.com/ourdomain.com. In admin/include/configure.php, the path to the catalog is defined as a relative URL reference, and with this format of root domain, the relative reference doesn't point to the correct location. This resulted in incorrect url definitions for image files in the catalog section.

 

I got around this by usinng a complete reference to the catalog files with the following mod to /catalog/admin/include/configure.php

 

Change:

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

to:

define('DIR_WS_CATALOG', HTTP_SERVER . '/shop/catalog/');

 

This fixed our problem. Hope this helps someone.

 

Graeme

Link to comment
Share on other sites

  • 7 months later...

Thanks, I was having the same problem with images not showing up in the Admin area of my Netfirms hosted website. They have a wildcard SSL: *.sslpowered.com (where the astrick is the members domain name). This tip also did the trick for me, as it now refers to the secure URL I orginally setup the shopping cart with.

 

/catalog/admin/include/configure.php

 

Change:

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

to:

define('DIR_WS_CATALOG', HTTP_SERVER . '/shop/catalog/');

Link to comment
Share on other sites

  • 2 months later...

I had the same issue, but it's because I installed my store on the root of the public directory (mafgiftshop.org) using BlueHost (which has an installer for OSCommerce). Because of this post I was able to narrow down that the issue was in the admin/includes/configure.php file. Mine had defined the path "/home/mafgifts/public_html/" as the directory for a few of the items. I changed that path to just "/"

 

That seems to have fixed the issue for me. Maybe it'll help you :)

 

Thanks to you guys who posted these fixes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...