This is a discussion on Losing images in admin with https within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello, Using Snapshot MS1. My shop set up is catalog/admin It all seems okay, except when I get to the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello, Using Snapshot MS1. My shop set up is catalog/admin It all seems okay, except when I get to the checkout login via https, I lose my images. I also do not have any images on the admin panel or in admin. Here is the code I have.. Oz In /CATALOG/CONFIGURE.PHP // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.leagueandlegends.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://host27.the-web-host.com/leagueandlegends'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); --------------------------------------------------------- In /CATALOG/ADMIN/CONFIGURE.PHP define('HTTP_SERVER', 'http://www.leagueandlegends.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.leagueandlegends.com'); define('HTTPS_CATALOG_SERVER', 'https://host27.the-web-host.com/leagueandlegends'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/league/leagueandlegends-www/catalog/'); // 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', '/catalog/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/'); |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Yep me too, still searching for the solution though... |
|
#3
| |||
| |||
| I ran into this problem, when I set up my first store, and I have not seen it since. If memory serves me correctly it is a problem with your virtual host settings. check your conf file to see if the: <Directory "/path/to/your/directory"> Options MultiViews FollowSymLinks SymLinksIfOwnerMatch SSLRequireSSL AllowOverride None Order allow,deny Allow from all </Directory> I believe mine used to be Order deny, allow and once I switched it to allow, deny that fixed the problem. I am no server expert, so check with your hosting company. Again, I believe that was what the problem was, and once I looked into it and talked with my hosting company, I forget the exact details but I remember them mentioning it was a config error and from looking at the conf file, that was the only thing I saw that was changed. This should give you a starting point, so check with your network administrator and explain the problem.
__________________ There\'s something about fireman, day and night they are always fireman! |
|
#4
| |||
| |||
| Hi, You know for the life of me I can't find that area of the configure file you mention. Which file was it? I am using version MS1 so it may be a little differnet as well. e Thanks for the help. |
|
#5
| ||||
| ||||
| This is not in oscommerce, but in the apache httpd.conf file. You will need to contact your host for assistance if you do not have root access...
__________________ Michael Sasek osCMax Developer
|
|
#6
| |||
| |||
| Yes sorry, Should have mentioned i was referring to the apache httpd.conf file
__________________ There\'s something about fireman, day and night they are always fireman! |
|
#7
| |||
| |||
| Header images not showing in https...? Well, I did get an answer, but not from where I thought it would be or I was looking. Of course First I checked my paths in admin/configure.php first with the help of the forum gurus. When it stumped 'em all I kept looking..looking.. It just proves one must be so very careful adding or changing code in the php files. To add logo etc images to my header file I went to Dreamweaver and added them there as I normally do. Somehow some of the php code was deleted, and this was the cause of my problem. Not until I compared my header giving me problems with the original., did I see the problem. So I took an orig catalog/header.php and started again. This time I was aware of the code and checked that it was not written over when the image table was pasted into header. This solved my 'images not in header after https' probleml. So I'm happy as boy in a lollyshop! For those chasing this problem. This is what I did to put new images and text into the header. Not sure whether it is hacking or not, but it works for me anyway. In DW I created a table as wide and high as I wanted my header to be. Placed the image and text where I wanted and the link URLS.. Now the tricky stuff... Open catalog/header.php in DW in design view and placed the cursor 'in' the top left table as close to the PHP sign as I could. Checked in 'code mode' that no code was being written over EXCEPT this one line. Quote: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?> Made sure my image address was not just /catalog/images/etc.. They must be the full address like this. Quote: "http://www.youraddress.com/catalog/images/yourimage.jpg" May not work for all, but did for me, and no wonder all the guru's were stumped with my 'no header images in https' problem. So sorry Michael, and gurus.... OZ icon_redface.gif [/quote] |
|
#8
| ||||
| ||||
| OZ, this is exactly what I suggested you check in the other thread... The image paths. I was sure it was something that you changed, and looking at your header, I knew you had changed the images there. That is the first place to look! Glad you found it. Some things we must learn the hard way
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with CSS images when referenced from HTTPs | joemathis | osCMax v2 Customization/Mods | 2 | 02-28-2007 08:03 AM |
| Broken images in https | brewer1st | osCMax v2 Installation issues | 3 | 04-18-2006 05:46 AM |
| HTTPS SSL images missing also weird links? | doug | osCommerce 2.2 Installation Help | 7 | 05-12-2005 11:06 AM |
| Admin losing session on form submit, returning to login | batyushki | osCMax v1.7 Discussion | 4 | 10-27-2004 03:22 PM |
| https and images-Admin Tool Help Plz | jouster | osCommerce 2.2 Modification Help | 1 | 01-24-2003 07:26 AM |