Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pictures in Admin area not showing in SSL mode


hemmi

Recommended Posts

Posted

I?ve set SSL on tha admin area and the pics are not showing, for example when I put a pic for a product, only a box with an "x" comes up but no pic. It comes up in the store itself, though, but not visible in the admin area in SSL mode.

 

I have been posting this for some days now but with no luck :(

 

I need help........

 

rgds,

 

Hemmi

Posted

At this point, I couldn't even begin to guess what the problem is. You need to specify more information. If you search for *SSL*image*, you will come up with a number of threads with similar problems. Even if they don't have a solution that works for you, they should at least give you a better idea of what information you might need to post.

 

Hth,

Matt

Posted

The catalog images come broken in SSL mode in the admin area. (The product pics and also the flag)

 

When I rightclick on the broken image I get this:

 

htps://paysecure.co.nz/22cvs//images/tilbod1.bmp

and nothing comes up.

 

But when I change the url. to this:

 

https://paysecure.co.nz/~hemmi/22cvs/images...ges/tilbod1.bmp

 

the pic. comes up fine.

 

So it seems that the problem is that the url to the pic is wrong.

 

How do I fix it?

 

P.s. I saw this problem several times in posting the last months but all stopped corresponding before they finished fixing it, or if they fixed it the directions were not good.

Posted

And when I go to configure.php in admin and change

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG

as some have suggested the broken link comes up like this. So I have to get between the .....co.nz/ and 22cvs/ and put ~hemmi there.

 

https://paysecure.co.nz/22cvs/~hemmi/22cvs/...ges/tilbod1.bmp

 

when I change

 

define('DIR_WS_CATALOG', '/22cvs/'); // absolute path required to

define('DIR_WS_CATALOG', '~hemmi/22cvs/'); // absolute path required

 

The broken image has this url :?

https://paysecure.co.nz/~hemmi/22cvs/admin/...ges/tilbod1.bmp

 

hmmmmmmmm :?:

Posted

Could you post the rest of your DIR defines from admin/includes/configure.php?

 

Thanks,

Matt

Posted

Have you set your admin/includes/configure.php defines as follows

 

  define('HTTPS_CATALOG_SERVER', 'https://paysecure.co.nz/~hemmi/22cvs');

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

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

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

I have changed back and forth. I changed it back to as it was in the beginning. Any ideas?

 

<?php

/*

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 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', 'https://paysecure.co.nz/~hemmi'); // eg, http://localhost or - https://localhost should not be empty for productive servers

 define('HTTP_CATALOG_SERVER', 'http://netverslanir.net');

 define('HTTPS_CATALOG_SERVER', 'https://paysecure.co.nz/~hemmi'); 

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

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

 define('DIR_WS_ADMIN', '/22cvs/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/home/hemmi/public_html/22cvs/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/22cvs/'); // absolute path required

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



// define our database connection

 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

 define('DB_SERVER_USERNAME', 'username');

 define('DB_SERVER_PASSWORD', 'userpass');

 define('DB_DATABASE', 'userdb');

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

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

?>

Posted

I sent you a private message. One other idea before you respond to that. Are the http and https servers on the same physical machine sharing the same files?

 

Good luck,

Matt

Posted

I would try

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

This is the best guess I've found. If that's it, then the problem is that the web server thinks that the base web page is https://secureserver.com, while OSC sees it as https://secureserver.com/~hemmi. Thus, relative paths (like those that images use), lose the ~hemmi, because they are calculated from HTTP_SERVER.

 

Hth,

Matt

Posted

The pictures of the products come up now! All exept the pic. of the flag.

 

I just replaced the line you posted. If you know how to change it for the flag too, it would be great, but this is 90% success and it?s great to have the pics again.

 

Tks a lot Matt :!:

Posted

The flag would be in the languages DIR_WSs. Just change those the same way (add '~hemmi' . to the beginning).

 

Good luck,

Matt

Posted

I tried to set it in but received an error on the page.

 

Can you tell me how to do it like you did with the previous one, please.

 

tks again :lol:

 

hemmi

Archived

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

×
×
  • Create New...