Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL on All Pages


Ramsay

Recommended Posts

The catalog area on my site enters into SSL on nearly every page causing the site to slow down considerably anyone know how i can fix this issue? :blink:

 

Also my admin area area although SSL secured shows:

 

'You are not protected by a secure SSL connection.' in the bottom left area after login.

 

This has me puzzled guys plz help ... meanwhilst I will stare at my configure.php files for a while :-"

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

in every page there are several links defined like this <?php echo tep_href_link(......... SSL..); ?>

remove the ssl from this function and it will no longer direct to a secure page.

 

bad idea, osc knows which pages need ssl and which do not if it is enabled properly in your configuration.

Treasurer MFC

Link to comment
Share on other sites

bad idea, osc knows which pages need ssl and which do not if it is enabled properly in your configuration.

 

Catalog Config File:

 

'includes/configure.php':

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'https://www.mydomain.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mydomain.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', TRUE); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

Admin Config File:

 

'admin/includes/configure.php' :

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'https://www.mydomain.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mydomain.co.uk');
 define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.uk');
 define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.co.uk');
 define('ENABLE_SSL_CATALOG', 'TRUE'); // secure webserver for catalog module

 

should this line in the catalog config be like this:

 

define('HTTP_SERVER', 'https://www.mydomain.co.uk'); // eg, http://localhost - should not be empty for productive servers

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

No, it should not have https. Also, these lines

  define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');

should be

  define('HTTP_COOKIE_DOMAIN', '.mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', '.mydomain.com');

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks for letting me know that you opened a new topic with the same question... in the future try not to double post. It's easier to help.

 

In your catalog/includes/configure.php the line has to be like this:

define('HTTP_SERVER', 'http://www.mydomain.co.uk'); // eg, http://localhost - should not be empty for productive servers

 

In your admin configure it should be https. When you open your admin, call it like this: https://www.yourdomain.com/catalog/admin (or however you call it). Just enter https in the URL.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Ok thanks for the help. Ulrike - yeah i won't double post again.

 

The site is running a lot faster now. Only the pages which need to be secured are :thumbsup:

BUT :o firefox tells me 'Pages Partially Encrypted' on the catalog area for these pages.

 

The admin area still tells me 'You are not protected by a secure SSL connection.' once I have logged in. Could this be something to do with the 'Secure Admin Login - Logout 1.5' contribution I am using?

 

-Ramsay

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

I can only repeat myself: Just post a link to your shop and we can have a look if we can spot what causes the secure/nonsecure issue.

 

Did you check that you uploaded the configure files to the correct places? It happens quickly to mix them up as they have the same name. That could explain the admin problem. What happens if you enter https://www.mydomain.com/catalog/admin with the encryption?

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Did you check that you uploaded the configure files to the correct places? It happens quickly to mix them up as they have the same name. That could explain the admin problem. What happens if you enter https://www.mydomain.com/catalog/admin with the encryption?

 

abra

 

Yes the config files have been uploaded to the correct places and have not been swaped by mistake.

 

Client doesn't want me to post website address here :angry:

 

-When browsing the main catalog encrypted areas of the site are partially encrypted.

-The main admin area says that it is fully encrypted although the 'You are not protected by a secure SSL connection' message is displayed:

 

oscommercesslissue1rv1.gif

 

Clicking the lock with the strike gives this info box.

 

oscommercesslissue2ub5.gif

 

It is hosted with 1and1

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

The partially encrypted problem in the catalog area sounds like an issue with some script call. Ok, if you can't post the link, it's going to be a bit more complicated. I'm using Firefox with the Source Chart extension. The normal view source will do as well, the extension makes it just a tad bit easier to spot. So open a partially encrypted page like login.php and right click to view the source. Then go through to see anything like

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>

. If a script links to http://..., change it to https://... This goes for google analytics or any other script like visitorcounters.

 

You can also check that all images are referenced correctly in the source either relative or absolute with https. Also check your stylesheet for any absolute referenced background images.

 

As for my admin, if I type http://www.mydomain.com/catalog/adminfolder, I also get the message that my admin is not secured. If I type https://...... it tells me everything is protected. Maybe you changed something in the admin by adding scripts or images which are referenced absolutely like I think happened in the catalog area.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

-My google analytics code is encrypted with their SSL setting.

-There are no backround images in my stylesheets

-All images in the code are referenced with relative URLs.

-With my admin even though I type 'https://www.mydomain.com/admin' it is encrypted but shows this message:

 

oscommercesslissue1rv1.gif

 

In my admin I have mailto links and http links to other webpages could this be effecting the SSL?

 

What I think may be the problem is on my secure pages when i right click on the images it shows:

 

 

Does this need to be (for the pages to be secure) on all images:

 

 

https instead of http. Could this be the simple template system contribution not securing the images on the required pages?

 

-Ramsay

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

All the images on a secure page have to be referenced https://.... That's where things go wrong. I thought it might be the STS but didn't have the time to mention it yet.

 

Check if it is the same for your admin.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Images don't cause this problem. It is a link to a non-secure, external page, providing the configure file and ssl are setup correctly.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Images don't cause this problem. It is a link to a non-secure, external page, providing the configure file and ssl are setup correctly.

 

Jack

 

but local site images should never have a src="http.... reference anyway, just src="images/....

 

so on https pages that have broken ssl, look at the html source, if you find src="http://....." that is one.

Treasurer MFC

Link to comment
Share on other sites

All the images on a secure page have to be referenced https://.... That's where things go wrong. I thought it might be the STS but didn't have the time to mention it yet.

 

Check if it is the same for your admin.

 

abra

 

ok i thought it was the images unsecured on the catalog area and something to do with STS which is messing things up. Now I am confused with all the opinions :blink:

 

As for the admin could it be mailto links and a link to a unsecured website with a http link instead of a https link?

 

I have dumped the code from the login.php on the catalog from view source in firefox. If anyone can see what is wrong....this one really has me stumped :(

 

thanks for all the help from everyone so far

 

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>mydomain.co.uk</title><base href="http://www.mydomain.co.uk/">

 

<!-- start get_javascript(applicationtop2header) //-->

<script language="javascript"><!--

function session_win() {

window.open("http://www.mydomain.co.uk/info_shopping_cart.php","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();

}

//--></script>

<!-- end get_javascript(applicationtop2header) //-->

 

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script type="text/JavaScript">

<!--

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}

}

 

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;

}

 

function MM_findObj(n, d) { //v4.01

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

}

 

function MM_swapImage() { //v3.0

var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

//-->

</script>

 

</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../../images/layout/tabs/home_o.png','../../../images/layout/tabs/contact_o.png','../../../images/layout/tabs/about_o.png','../../../images/layout/tabs/full_cart_o.png')">

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle">

<table width="100%" cellpadding="0" cellspacing="0">

 

<tr>

<td valign="top"> </td>

<td rowspan="3" align="right"><div style="height:141px; width:288px; background-position:bottom; background-position:right; background-repeat:no-repeat; background-image:url(images/layout/woman.jpg);"></div></td>

</tr>

 

<tr>

<td height="90" valign="top"><a href="index.php"><img src="images/layout/mydomain_logo.gif" alt="mydomain.co.uk" title="mydomain.co.uk" width="442px" height="48px" border="0" /></a></td>

</tr>

<tr>

<td valign="bottom"><table width="363" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="87px" style="padding-left:7px;"><a href="index.php"><img src="images/layout/tabs/home.png" alt="Home" width="87px" height="30px" border="0" id="Image1" title="Home" onMouseOver="MM_swapImage('Image1','','images/layout/tabs/home_o.png',1)" onMouseOut="MM_swapImgRestore()"></a></td>

<td width="5px"> </td>

<td width="87px"><a href="contact_us.php"><img src="images/layout/tabs/contact.png" alt="Contact" width="87px" height="30px" border="0" id="Image2" title="Contact" onMouseOver="MM_swapImage('Image2','','images/layout/tabs/contact_o.png',1)" onMouseOut="MM_swapImgRestore()"></a></td>

 

<td width="5px"> </td>

<td width="87px"><a href="about.php"><img src="images/layout/tabs/about.png" alt="About" width="87px" height="30px" border="0" id="Image3" title="About" onMouseOver="MM_swapImage('Image3','','images/layout/tabs/about_o.png',1)" onMouseOut="MM_swapImgRestore()"></a></td>

<td width="5px"> </td>

<td width="87px"><a href="https://www.mydomain.co.uk/shopping_cart.php"><img src="images/layout/tabs/full_cart.png" alt="Full Cart" width="87px" height="30px" border="0" id="Image4" title="Full Cart" onMouseOver="MM_swapImage('Image4','','images/layout/tabs/full_cart_o.png',1)" onMouseOut="MM_swapImgRestore()"></a></td>

</tr>

</table></td>

</tr>

 

<tr>

<td width="100%" height="37" colspan="2" valign="top" border="0" cellpadding="0" cellspacing="0"><table width="100%" border="0" cellpadding="0" cellspacing="0">

 

<tr>

<td width="580px" style="background-image:url(images/layout/banner_bg.gif); background-repeat:repeat-x;"><img src="images/layout/banner.gif" align="left"></td>

<td width="100%" style="background-image:url(images/layout/banner_bg.gif); background-repeat:repeat-x;"> </td>

<td ><img src="images/layout/banner2.gif"></td>

</tr>

</table></td>

</tr>

</table> </td>

 

</tr>

</table>

 

<table border="0" width="100%" cellspacing="0" cellpadding="0" >

<tr>

<td valign="top">

<table width="100%" border="0" cellspacing="0">

<tr>

 

</tr>

<tr>

 

<td class="headerNavigation">  <b> <a href="http://www.mydomain.co.uk" class="headerNavigation">Top</a> » <a href="http://www.mydomain.co.uk/index.php" class="headerNavigation">Catalog</a> » <a href="https://www.mydomain.co.uk/login.php" class="headerNavigation">Login</a></td>

<td class="headerNavigation"><div align="right"><a href=https://www.mydomain.co.uk/account.php class="headerNavigation">My Account</a> | <a href=http://www.mydomain.co.uk/shopping_cart.php class="headerNavigation">Cart Contents</a> | <a href=https://www.mydomain.co.uk/checkout_shipping.php class="headerNavigation">Checkout</a></div></td>

 

<td width="14" style="background-image:url(images/layout/curve.gif); background-repeat:no-repeat;"></td>

</tr>

</table>

<img border="0" src="images/layout/call.gif" height="60px" width="471px"> </td>

<td width="280px" height="74px" align="right" valign="top"><a href="https://www.mydomain.co.uk/checkout_shipping.php"><img src="images/layout/checkout_button.gif" width="235px" height="74px" border="0"></a></td>

</tr>

</table>

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

 

<tr>

<td width="140" rowspan="2" valign="top" style="background-image:url(images/layout/nav_orange_gradient_l_bg.gif); background-repeat:no-repeat; background-position:bottom;">

<table width="140" border="0" cellpadding="2" cellspacing="0" >

<tr><td>

<!-- start searchbox //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; " bordercolor="#111111">

<tr>

 

<td class="infoBoxHeading" background="images/layout/search_header_bg.gif" style="padding-top:2px; padding-right:9px; height:23px; width:140px;padding-left:9px; background-repeat:no-repeat;">SEARCH SITE</td>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

 

</td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

 

<td width="100%" style="text-transform:uppercase;"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td align="center" class="boxText"><form name="quick_find" action="http://www.mydomain.co.uk/advanced_search_result.php" method="get"><input type="text" name="keywords" size="10" maxlength="30" style="width: 95px"> <input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find "><br><br><a href="http://www.mydomain.co.uk/advanced_search.php"><b>Advanced Search</b></a></form></td>

</tr>

<tr>

 

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

</table>

</td>

</tr>

</table>

<!-- end searchbox //-->

</td>

</tr>

<tr>

<td class="ccSmalltext"><img src="images/layout/ccs.gif" alt="We accept all of the above cards" title="We accept all of the above cards" width="140" height="71"><br> </td>

 

</tr>

 

<tr><td style="border:1px #e96e1f; border-style:solid;"><table width="100%" border="0" align="right">

<tr>

<td valign="top"><span style="background-image:url(images/layout/banner_bg.gif); background-repeat:repeat-x;"><img src="images/layout/nav_d_graphic.gif" align="left"></span></td>

<td>

<!-- start manufacturerbox //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;" bordercolor="#111111">

<tr>

 

<td class="infoBoxHeadingClear" style="padding-top:8px;">All Manufacturers</td>

 

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

</tr>

</table>

 

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td width="100%" style="text-transform:uppercase;"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td class="boxText"><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=10">1</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=23">2</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=13">3</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=12">4</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=17">5</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=14">6</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=11">7</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=16">8</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=15">9</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=21">10</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=22">11</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=24">12</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=18">13</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=19">14</a><br><a href="http://www.mydomain.co.uk/index.php?manufacturers_id=20">15</a></td>

 

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

</table>

</td>

</tr>

</table>

<!-- end manufacturerbox //-->

</td>

</tr>

 

<tr>

<td> </td>

<td><img src="images/layout/orange_break.gif"></td>

</tr>

<tr>

<td valign="top"><span style="background-image:url(images/layout/banner_bg.gif); background-repeat:repeat-x;"><img src="images/layout/nav_d_graphic.gif" align="left"></span></td>

<td>

<!-- start categorybox //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;" bordercolor="#111111">

<tr>

 

 

<td class="infoBoxHeadingClear" style="padding-top:8px;">By Type</td>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

 

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td width="100%" style="text-transform:uppercase;"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td class="boxText"><a href="http://www.mydomain.co.uk/index.php?cPath=23">1</a><br><a href="http://www.mydomain.co.uk/index.php?cPath=21">2</a><br><a href="http://www.mydomain.co.uk/index.php?cPath=22">3</a><br><a href="http://www.mydomain.co.uk/index.php?cPath=24">4</a><br></td>

 

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

</table>

</td>

</tr>

</table>

<!-- end categorybox //-->

</td>

</tr>

 

<tr>

<td> </td>

<td><img src="images/layout/orange_break.gif"></td>

</tr>

<tr>

<td valign="top"><span style="background-image:url(images/layout/banner_bg.gif); background-repeat:repeat-x;"><img src="images/layout/nav_d_graphic.gif" align="left"></span></td>

<td class="infoBoxHeadingClear" style="padding-top:9px;"><a href="specials.php">Special Offers</a></td>

</tr>

 

<tr>

<td> </td>

<td class="boxtext"><a href="specials.php">VIEW ALL OUR SPECIAL OFFERS </a></td>

</tr>

<tr>

<td> </td>

<td><img src="images/layout/orange_break.gif"></td>

</tr>

 

<tr>

<td valign="top"><span style="background-image:url(images/layout/banner_bg.gif); background-repeat:repeat-x;"><img src="images/layout/nav_d_graphic.gif" align="top"></span></td>

<td>

<!-- start informationbox //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;" bordercolor="#111111">

<tr>

 

<td class="infoBoxHeadingClear" style="padding-top:8px;">Information</td>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

 

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<!-- <td width="92" style="background-repeat: repeat-x;"></td> !-->

 

</td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td width="100%" style="text-transform:uppercase;"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

 

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td class="boxText"><a href="http://www.mydomain.co.uk/shipping.php">Shipping & Returns</a><br><a href="http://www.mydomain.co.uk/privacy.php">Privacy Notice</a><br><a href="http://www.mydomain.co.uk/conditions.php">Conditions of Use</a><br><a href="http://www.mydomain.co.uk/about.php">About Us</a><br><a href="http://www.mydomain.co.uk/contact_us.php">Contact Us</a></td>

</tr>

 

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

</table>

</td>

</tr>

</table>

<!-- end informationbox //-->

</td>

</tr>

</table>

 

</td>

</tr>

<tr>

<td><img src="images/layout/transparent_spacer.gif" height="3px" width="3px"></td>

</tr>

 

<tr>

<td bgcolor="#e96e1f";><img src="images/layout/14_day.gif" alt="14 Day Money Back Guarantee" title="14 Day Money Back Guarantee" width="140" height="37"></td>

</tr>

<tr>

 

<td align="center" bgcolor="#e96e1f";>

<img src="images/layout/white_break.gif"><br>

<img src="images/layout/free_delivery.gif" alt="Free Delivery" title="Free Delivery" width="140" height="37"></td>

</tr>

 

<tr>

<td height="452px"></td>

</tr>

</table> </td>

<td height="97%" valign="top"><table width="100%" border="0" style="padding:6px; padding-top:0px;">

 

<tr>

<td>

<!-- start Default Content //-->

<form name="login" action="https://www.mydomain.co.uk/login.php?action=process" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading">Welcome, Please Sign In</td>

<td class="pageHeading" align="right"></td>

 

</tr>

</table></td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

 

<td class="main" width="50%" valign="top"><b>New Customer</b></td>

<td class="main" width="50%" valign="top"><b>Returning Customer</b></td>

</tr>

<tr>

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">

<tr>

 

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

<tr>

<td class="main" valign="top">I am a new customer.<br><br>By creating an account at mydomain.co.uk you will be able to shop faster, be up to date on an orders status, and keep track of the orders you have previously made.</td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

 

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td align="right"><a href="https://www.mydomain.co.uk/create_account.php"><img src="includes/languages/english/images/buttons/button_continue.gif" border="0" alt="Continue" title=" Continue " width="100" height="22"></a></td>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

</tr>

</table></td>

</tr>

 

</table></td>

</tr>

</table></td>

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">

<tr>

<td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

 

<tr>

<td class="main" colspan="2">I am a returning customer.</td>

</tr>

<tr>

<td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

<tr>

<td class="main"><b>E-Mail Address:</b></td>

 

<td class="main"><input type="text" name="email_address"></td>

</tr>

<tr>

<td class="main"><b>Password:</b></td>

<td class="main"><input type="password" name="password" maxlength="40"></td>

</tr>

<tr>

<td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

 

</tr>

<tr>

<td class="smallText" colspan="2"><a href="https://www.mydomain.co.uk/password_forgotten.php">Password forgotten? Click here.</a></td>

</tr>

<tr>

<td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>

</tr>

<tr>

 

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

<td align="right"><input type="image" src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="Sign In" title=" Sign In "></td>

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>

</tr>

</table></td>

</tr>

</table></td>

 

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></form>

<!-- end Default Content //-->

</td>

</tr>

</table></td>

 

<td width="140" rowspan="2" valign="top" style="background-image:url(images/layout/nav_orange_gradient_r_bg_2.gif); background-repeat:no-repeat; background-position:bottom;"><table border="0" width="140" cellspacing="0" cellpadding="2">

<tr><td>

<!-- start cartbox //-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; " bordercolor="#111111">

<tr>

 

<td class="infoBoxHeading" background="images/layout/special_offers_header_bg.gif" style="padding-top:2px; padding-right:9px; height:23px; width:140px;padding-left:9px; text-align:right; background-repeat:no-repeat;">SHOPPING CART</td>

<!-- <td width="92" style="background-repeat: repeat-x;"><a href="http://www.mydomain.co.uk/shopping_cart.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a></td> !-->

 

</td>

</tr>

 

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<!-- <td width="92" style="background-repeat: repeat-x;"><a href="http://www.mydomain.co.uk/shopping_cart.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a></td> !-->

 

</td>

</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td width="100%" style="text-transform:uppercase;"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">

<tr>

 

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

<tr>

<td class="boxText">0 items</td>

</tr>

<tr>

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>

</tr>

 

</table>

</td>

</tr>

</table>

<!-- end cartbox //-->

</td></tr>

<tr><td>

<!-- start maninfobox //-->

 

<!-- end maninfobox //-->

</td></tr>

<tr><td>

<!-- start orderhistorybox //-->

 

<!-- end orderhistorybox //-->

</td></tr>

<tr>

<td>

<!-- start specialbox //-->

 

<!-- end specialbox //-->

</td>

</tr>

<tr><td> </td>

</tr>

<tr><td> </td>

 

</tr>

<tr><td> </td></tr>

</table>

</td>

</tr>

<tr>

<td valign="bottom"><table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td><div align="center" style="padding-top:10px; padding-bottom:10px;"><span class="orangetext"><a href="conditions.php">Conditions of Use</a> | <a href="privacy.php">Privacy Notice </a></span></div></td>

 

</tr>

<tr>

<td style="background-image:url(images/layout/bkc.gif); "><div align="center" style="padding-top:10px; padding-bottom:10px;">

<span class="footertext">address here

<br />

Copyright © 2006 <a href="index.php">mydomain.co.uk</a> | e: <a href="mailto:[email protected]">[email protected]</a></span>

 

</div></td>

</tr>

</table></td>

</tr>

</table>

 

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">

</script>

<script type="text/javascript">

_uacct = "UA-954889-2";

urchinTracker();

</script>

</body>

</html>

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

but local site images should never have a src="http.... reference anyway, just src="images/....

 

so on https pages that have broken ssl, look at the html source, if you find src="http://....." that is one.

If they have http...., then they aren't just an image. That makes them a link to an external page, as mentioned.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

If they have http...., then they aren't just an image. That makes them a link to an external page, as mentioned.

 

Jack

 

there are no images referenced in this way if you look at the above code

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

If they have http...., then they aren't just an image. That makes them a link to an external page, as mentioned.

 

Jack

 

not necessarily, you can just as well reference local and external images using http://

Treasurer MFC

Link to comment
Share on other sites

If the reference contains http, then it is telling the code to connect to that site to load the image. That makes it a link. Even if it is the same site, the code still has to connect to it to load the image.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

not necessarily, you can just as well reference local and external images using http://

 

In this case the images in my code are referenced using relative urls:

 

<img src="images/layout/14_day.gif" alt="14 Day Money Back Guarantee" title="14 Day Money Back Guarantee" width="140" height="37">

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

I think it's the way this is generated:

<base href="http://www.mydomain.co.uk/">

 

This is the code in login.php that should result in https://..:

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

 

So again check what is written in your catalog/includes/configure.php for the two variables HTTPS_SERVER and HTTP_SERVER.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

the above code is not an ssl page

 

why ? :blink: It is the login.php page. This is an SSL page

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

ok currrently the catalog config.php is configured as follows:

 

  define('HTTP_SERVER', 'http://www.host.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.host.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', TRUE); // secure webserver for checkout procedure?

 

now if it is changed to:

 

  define('HTTP_SERVER', 'https://www.host.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.host.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', TRUE); // secure webserver for checkout procedure?

 

then it ends up browsing the entire catalog area in SSL.

Contributions Installed: STSv43 (Simple Template System), Protx Direct v3.0a, Secure Admin Login - Logout 1.5, UK Royal Mail & Overseas Shipping v 1.2 (FULL), Order Editor v2.8.2 With some Bug Fix - New, Ultimate SEO URLs v2.2.1, Easy Populate 2.76d-MS2 (with attributes)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...