Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS causing https error

    thealey,
    I merely comment the code out of the file
    I suspect that you now have no base reference???
    Where is your site?
    Zen-Venom Get Bitten

  2. #12
    Join Date
    Feb 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: CSS causing https error

    Quote Originally Posted by kobra View Post
    thealey,

    I suspect that you now have no base reference???
    Where is your site?
    http://store.pbpbikes.com

  3. #13
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS causing https error

    thealey,

    If you view the source when you load your page you will see that you have no base ref
    Zen-Venom Get Bitten

  4. #14
    Join Date
    Feb 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: CSS causing https error

    Yep. That's what happens when you comment it out in the file.

    What I am asking you is, is the base tag necessary? The site is working perfectly without it. Everything is loaded via https when necessary without errors in Internet Explorer.

    By removing the base tag, is the security of the website being compromised?

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS causing https error

    thealey,
    I had to look back for your issue???
    I do not know the impact this will have??
    All sites I am associated with have the base ref
    It is most likely linked to your template choice
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Feb 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: CSS causing https error

    So from what I have gathered, is that the base tag sets all of the relative srcs/hrefs to start with either http://xxxxx/ or https://xxxxx/ . It is merely a html tag used to set the "base" for all references.

    It is not a issue with the template because the problem still existed when I reverted back to the zen cart original theme.

    The file where the base tag is written is actually located in the zen cart files, not the template files.

    includes/templates/template_default/common/html_header.php

    IMO, this should not cause any problems because
    A) the base tag is an HTML tag, not a php/server side
    B) browsers are fully capable of figuring out what the "base" of a reference should be (example: the site works--better--without the base tag)

  7. #17
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: CSS causing https error

    The *real* issue is that your hosting company's server configuration isn't capable of sending proper SSL indicators back to PHP.
    And, in that situation, it is quite likely an indicator of other things wrong with their configuration as well.
    Last edited by DrByte; 24 Apr 2010 at 12:23 AM. Reason: comments edited by request
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #18
    Join Date
    Feb 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: CSS causing https error

    Quote Originally Posted by DrByte View Post
    The *real* issue is that your hosting company's server configuration isn't capable of sending proper SSL indicators back to PHP.
    And, in that situation, it is quite likely an indicator of other things wrong with their configuration as well.
    Yes. In searches when I was attempting to solve this problem, it appears that others using hostgator's shared ssl have the same problem in zen cart.

    ** comments edited by request **

    Anyway, back on topic.

    I'm trying to remember my php...

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />

    How is this line of code finding out what the site is using (http/https)? What is $request_type == 'SSL' doing?
    Last edited by DrByte; 24 Apr 2010 at 12:23 AM. Reason: comments edited by request

  9. #19
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: CSS causing https error

    Personal comments removed as per your request.

    Quote Originally Posted by thealey View Post
    I'm trying to remember my php...

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />

    How is this line of code finding out what the site is using (http/https)? What is $request_type == 'SSL' doing?
    $request_type is set to 'SSL' if the server is properly reporting that it's operating in SSL mode. That's what I was talking about earlier.

    Summarized here: http://www.zen-cart.com/forum/showpo...18&postcount=2

    Found in detail in /includes/init_includes/init_file_db_names.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 "CSS Button Addon" causing "Page Not Found" Error ...
    By Rony in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 30 Apr 2012, 05:37 AM
  2. Color changing issue, maybe css causing it?
    By dermit in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Sep 2010, 09:24 PM
  3. Replies: 0
    Last Post: 2 Aug 2009, 11:36 PM
  4. css GET request causing 404 errors
    By orchidlake in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 14 Apr 2009, 03:13 PM
  5. Admin HTTPS, Language flag causing error in IE
    By GTHENRY in forum Basic Configuration
    Replies: 0
    Last Post: 1 Oct 2008, 03:57 PM

Posting Permissions

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