Results 1 to 8 of 8

Losing images in admin with https

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 ...

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    239
    Rep Power
    10


    Default Losing images in admin with https

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

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    92
    Rep Power
    0


    Default

    Yep me too, still searching for the solution though...

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Pennsylvania
    Posts
    93
    Rep Power
    0


    Default

    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. #4
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    239
    Rep Power
    10


    Default

    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. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    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


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    Member
    Join Date
    Nov 2002
    Location
    Pennsylvania
    Posts
    93
    Rep Power
    0


    Default

    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. #7
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    239
    Rep Power
    10


    Default

    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. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    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


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Problem with CSS images when referenced from HTTPs
    By joemathis in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 02-28-2007, 08:03 AM
  2. Broken images in https
    By brewer1st in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 04-18-2006, 05:46 AM
  3. HTTPS SSL images missing also weird links?
    By doug in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 05-12-2005, 11:06 AM
  4. Admin losing session on form submit, returning to login
    By batyushki in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 10-27-2004, 03:22 PM
  5. https and images-Admin Tool Help Plz
    By jouster in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-24-2003, 07:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •