Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL problem with define main page contrib


osclover

Recommended Posts

I have modded store. Define main page is installed. After inserting two images to the website's main page, the login.php page came with a popup window which said "This page contains both secure and nonsecure items ".

 

The two images are ofcourse hardcoded as (I am almost sure) the Define MainPage contrib uses html and hence we can't use PHP code with DIR_WS_IMAGES... like thing to get rid of hard coding.

 

To remove the popup, I tried two things. I tried using /images/picture1.gif instead of writing the whole link (with http:// etc) but that doesnt' work at all. Then I also tried using https:// instead of http:// to refrence the images. When I did this, the warning doesn't show up at my PC. But it does show up at others.

 

What should I do now?

 

My configure file is:

<?php
/*
?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
?define('HTTP_SERVER', 'http://www.my-site.com'); // eg, http://localhost - should not be empty for productive servers
?define('HTTPS_SERVER', 'https://www.my-site.com'); // eg, https://localhost - should not be empty for productive servers
?define('ENABLE_SSL', true); // secure webserver for checkout procedure?
?define('HTTP_COOKIE_DOMAIN', 'www.my-site.com');
?define('HTTPS_COOKIE_DOMAIN', 'www.my-site.com');
?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/');

?define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
?define('DIR_FS_CATALOG', '/home/silverpe/public_html/');
?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

I am also posting the mainpagephp's html code. thumb1.gif and thumbtwo.gif are the two images being refrenced.

P.S. The images here are referenced with https:// instead of http://

 

 

<TABLE cellSpacing=0 cellPadding=0 border=0 NOF="LY">
<TBODY>
<TR vAlign=top align=left>
<TD width=650>
<TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=3>
<P> </P></TD></TR>
<TR>
<TD width=266 height=132>
<TABLE height=187 width="98%" border=0>
<TBODY>
<TR>
<TD width="46%" height=38> </TD>
<TD width="50%"> </TD>
<TD width="4%"> </TD></TR>
<TR>
<TD width="42%" height=90> <IMG alt="" hspace=0 
src="https://www.silverpennymall.com/images/thumb1.gif" align=baseline 
border=0></TD>
<TD>
<P><FONT face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif color=#e6ba52 
size=5><STRONG><FONT size=2>Silver Jewelry</FONT> </STRONG></FONT></P>
<P><B><FONT face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif 
color=#e6ba52 size=2>by </FONT></B></P>
<P><B><FONT face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif 
color=#e6ba52 size=2>Silver Penny Mall</FONT></B></P></TD>
<TD> </TD></TR>
<TR>
<TD height=45> </TD>
<TD> </TD>
<TD> </TD></TR></TBODY></TABLE></TD>
<TD width=277 colSpan=2>
<TABLE height=176 width="101%" border=0>
<TBODY>
<TR>
<TD width="42%" height=32> </TD>
<TD width="54%"> </TD>
<TD width="4%"> </TD></TR>
<TR>
<TD width="42%" height=90> <IMG alt="" hspace=0 
src="http://www.silverpennymall.com/images/thumbtwo.gif" align=baseline 
border=0></TD>
<TD>
<P><FONT face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif color=#e6ba52 
size=2><B>Platinum Jewelry </B></FONT></P>
<P><B><FONT face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif 
color=#e6ba52 size=2>by </FONT></B></P>
<P><B><FONT face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif 
color=#e6ba52 size=2>Silver Penny Mall</FONT></B></P></TD>
<TD> </TD></TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD 
style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
colSpan=3>
<P style="TEXT-ALIGN: center"><FONT 
face=Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif 
color=#e6ba52><B>EXQUISITE JEWELERY MAKERS</B></FONT></P></TD></TR>
<TR>
<TD colSpan=3>
<P> </P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

 

 

Help me plz. This problem has taken very long, athough it seems a small issue.

Link to comment
Share on other sites

The two images are ofcourse hardcoded as (I am almost sure) the Define MainPage contrib uses html and hence we can't use PHP code with DIR_WS_IMAGES... like thing to get rid of hard coding.

 

Change it so they are not hard coded. Why do you think you can't do this? It's the only satisfactory solution.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...