thealey,
I suspect that you now have no base reference???I merely comment the code out of the file
Where is your site?
thealey,
I suspect that you now have no base reference???I merely comment the code out of the file
Where is your site?
Zen-Venom Get Bitten
thealey,
If you view the source when you load your page you will see that you have no base ref
Zen-Venom Get Bitten
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?
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
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)
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.
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
Personal comments removed as per your request.
$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.