Hello,
I recently took over the maintenance of a ZenCart 1.3.8 site (PHP Version 5.2.6, MySQL 5.0.75) and transferred it from one webhost to another, using the ZC site transfer tutorial. With the previous webhost, the site used a shared SSL certificate, but with the new host, we purchased our own certificate and updated the configuration files accordingly.
• Background: After the transfer, the first problem of two was that on all of the https pages, we were now getting the “not all items on this page are secure…view only the secure items?” security warning message. After researching the community postings, I fixed this by adding an “S” to the “HTTP” reference in this line (bolded), <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG); ?>" />, located in the html_header.php file in includes/templates/template_default/common.
• Problem 2 of 2, where I need help: After the fix above, now all of the https pages pull up correctly without the security message except one, the “Hello <username>/Welcome” page after a user logs in (not after logging in during checkout but rather only after a straight login to an account from the login/registration page). When I “view source” on this welcome page, the base href is now pointing to https, but in the "mainWrapper" div below it, I see the index page does not have https:
<td align="left" valign="top" width="35%" class="headerNavigation">
<a href="http://www.<domain name>.com/index.php?main_page=index">Home</a> |
<a href="https://www.<domain name>.com/index.php?main_page=logoff">Log Out</a> |
<a href="https://www.<domain name>.com/index.php?main_page=account">My Account</a>
</td>
Is this the problem? If so, where/how do I fix it? I’m new to ZenCart, and I haven’t been able to find yet where to fix it. Does anyone know? I would greatly appreciate the help.
Thank you.
P.S. In one posting, I saw a possible fix of “It's probably your server's fault. check out this post:
http://www.zen-cart.com/forum/showth...ight=base+href”, but I’ve had two webhosts tell me now that they won’t make any changes to their server since those changes would affect everyone on the server. I’m continuously sent back to figure it out in the code.
Bookmarks