Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Total Frustration NEED HELP!!!


cmjeter

Recommended Posts

Posted

OK FOlks I have setup 2 sites that are live now and all is working well. I have another site I am working on for the life of me I cannot get the Lock to Show. I been through all the image stuff and everything. I have this working on 2 of my sites. I have just downloaded and installed a fresh version of OSCOmmerce and and enabled the SSL. The Lock is there but will not show. I know its cause something is not calling HTTPS This OScommerce install has no changes. I will list my Configs PLEASE HELP. the ssl is issued to www.statikinc.com all lower case and with www. It is working cuase you can see it in Firefox but its got a red / through it. You can double click the box in IE and get the certificate. Everything is on my site I point to nothing else. I even took all the images out at one point just to see what was up.

 

Ok here is the configs

 

THis is the Store Config:

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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.statikinc.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.statikinc.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.statikinc.com');

define('HTTPS_COOKIE_DOMAIN', 'www.statikinc.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/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/content/l/a/z/lazarus2768/html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'xxxxxxxxxxxx'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxx');

define('DB_DATABASE', 'xxxxxx');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

This is the admin config:

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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.statikinc.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.statikinc.com');

define('HTTPS_CATALOG_SERVER', 'https://www.statikinc.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/content/l/a/z/lazarus2768/html/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/content/l/a/z/lazarus2768/html/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/home/content/l/a/z/lazarus2768/html/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'xxxxxxxxxxxx'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxx');

define('DB_DATABASE', 'xxxxxxx');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

Please help if you can. URL is http://www.statikinc.com/catalog/index.php

 

You will need the index.php cause I am redirecting in the root directory. I put my original site in the root I am testing fresh OS commerce in the catalog directory.

 

To clarify that I have a statement in my .htaccess file in root that points to welcome.html so you cant see the site while I work on it.

Posted

Your configure file looks ok to me. Your problem does seem to be the images. If you right click on an image in firefox and select view image you will see that it is not https.

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Posted

Yes correct. But this is a non-changed fresh install of OSCommerce. Why would this happen on a clean install?

 

Any Ideas?

 

I have even just put a template in with just the myaccount option only as a link no images no anything else and still got the same issue seems something in the code is not calling the Https correct.

 

LIke I said I have done this with 2 other sites and works fine.

 

I will post my code for the page theres nothing that calls anything from outside my site.

Posted

Here is the Code for the pages that I am calling on the normal statikinc site. As you can see I am calling nothing out of my site. This site has STS w/HT installed.

 

<?php DEFINE ('STS_END_CHAR', '#'); ?>

 

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

 

<html $htmlparams#>

 

<head>

 

<!--$headcontent-->

 

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

 

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

 

<!--

 

body,td,th {

 

color: #FFFFFF;

 

}

 

body {

 

background-color: #000000;

 

}

.style1 {font-size: x-small}

 

-->

 

</style><title>Statikinc</title></head>

 

<body>

<table width="786" border="0" align="center" cellpadding="3" cellspacing="0">

<tr>

<td><table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><img src="images/ecommsplash4_02.jpg" width="221" height="152"></td>

<td><img src="images/ecommsplash4_03.jpg" width="195" height="152"></td>

<td><img src="images/ecommsplash4_04.jpg" width="172" height="152"></td>

<td><img src="images/ecommsplash4_05.jpg" width="187" height="152"></td>

</tr>

</table>

<table width="776" height="25" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="20"><img src="images/spacer.gif" width="20" height="25"></td>

<td width="339"><div align="left" class="style1">$breadcrumbs#</div></td>

<td width="38"> </td>

<td width="33"> </td>

<td width="339"><div align="right" class="style1">$myaccount# <img src="images/spacer.gif" width="8" height="8">|<img src="images/spacer.gif" width="8" height="1">$cartcontents#</div></td>

<td width="20"><img src="images/spacer.gif" width="20" height="25"></td>

</tr>

</table>

<table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td> </td>

<td> </td>

<td width="127" valign="top" background="images/spacer.gif"><p>$categorybox#</p>

<p>$searchbox#</p>

<p>$informationbox#</p></td>

<td> </td>

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

<tr>

<td height="271" align="left" valign="top">$content#</td>

</tr>

</table></td>

<td> </td>

<td width="127" valign="top"><p>$cartbox#</p>

<p>$orderhistorybox#</p>

<p>$bestsellersbox#</p>

<p>$reviewsbox#</p>

<p>$specialbox#</p></td>

<td> </td>

<td> </td>

</tr>

</table>

<table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="395" height="44" background="images/ecommsplash4_11.jpg"> </td>

<td width="381" height="44" background="images/ecommsplash4_12.jpg"> </td>

</tr>

</table>

<table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="172" height="54" background="images/ecommsplash4_13.jpg"> </td>

<td width="424" height="54" background="images/ecommsplash4_14.jpg"> </td>

<td width="180" height="54" background="images/ecommsplash4_15.jpg"> </td>

</tr>

</table>

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

<tr>

<td><img src="images/ecommsplash6_19.jpg" width="776" height="63"></td>

</tr>

</table> </td>

</tr>

</table>

 

 

</body>

</html>

 

http://www.statikinc.com/index.php Make sure you click the myaccount button to get the sts_template file to open which was the previous code.

 

This next code is my index_php_0.html file that you will see when you go to the site this is not SSL just default home for site.

 

<?php DEFINE ('STS_END_CHAR', '#'); ?>

 

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

 

<html $htmlparams#>

 

<head>

 

<!--$headcontent-->

 

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

 

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

 

<!--

 

body,td,th {

 

color: #FFFFFF;

 

}

 

body {

 

background-color: #000000;

 

}

.style1 {font-size: x-small}

 

-->

 

</style><title>Statikinc</title></head>

 

<body>

<table width="786" border="0" align="center" cellpadding="3" cellspacing="0">

<tr>

<td><table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><img src="images/ecommsplash4_02.jpg" width="221" height="152"></td>

<td><img src="images/ecommsplash4_03.jpg" width="195" height="152"></td>

<td><img src="images/ecommsplash4_04.jpg" width="172" height="152"></td>

<td><img src="images/ecommsplash4_05.jpg" width="187" height="152"></td>

</tr>

</table>

<table width="776" height="25" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="20"><img src="images/spacer.gif" width="20" height="25"></td>

<td width="339"><div align="left" class="style1">$breadcrumbs#</div></td>

<td width="38"> </td>

<td width="33"> </td>

<td width="339"><div align="right" class="style1">$myaccount# <img src="images/spacer.gif" width="8" height="8">|<img src="images/spacer.gif" width="8" height="1">$cartcontents#</div></td>

<td width="20"><img src="images/spacer.gif" width="20" height="25"></td>

</tr>

</table>

<table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td> </td>

<td> </td>

<td width="127" valign="top" background="images/spacer.gif"><p>$categorybox#</p>

<p>$searchbox#</p>

<p>$informationbox#</p></td>

<td> </td>

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

<tr>

<td><img src="images/ecommsplash5_07.jpg" width="216" height="247" border="0" usemap="#Map"></td>

<td><img src="images/ecommsplash5_08.jpg" width="208" height="247"></td>

</tr>

<tr>

<td><img src="images/ecommsplash5_12.jpg" width="216" height="248"></td>

<td><img src="images/ecommsplash5_13.jpg" width="208" height="248"></td>

</tr>

</table></td>

<td> </td>

<td width="127" valign="top"><p>$cartbox#</p>

<p>$orderhistorybox#</p>

<p>$bestsellersbox#</p>

<p>$reviewsbox#</p>

<p>$specialbox#</p></td>

<td> </td>

<td> </td>

</tr>

</table>

<table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="395" height="44" background="images/ecommsplash4_11.jpg"> </td>

<td width="381" height="44" background="images/ecommsplash4_12.jpg"> </td>

</tr>

</table>

<table width="776" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="172" height="54" background="images/ecommsplash4_13.jpg"> </td>

<td width="424" height="54" background="images/ecommsplash4_14.jpg"> </td>

<td width="180" height="54" background="images/ecommsplash4_15.jpg"> </td>

</tr>

</table>

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

<tr>

<td><img src="images/ecommsplash6_19.jpg" width="776" height="63"></td>

</tr>

</table> </td>

</tr>

</table>

 

 

<map name="Map">

<area shape="rect" coords="5,18,214,245" href="http://www.statikinc.com/index.php?cPath=21" target="_self" alt="T-Shirts">

</map>

</body>

 

</html>

Posted

You're not getting the padlock because your base href is remaining as http:// even on https pages, which means that the ssl cert is not being detected.

 

Try this - in includes/applcation_top.php around line 41 change this line:

 

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

to this:

 

$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

 

Vger

Posted

HOLY MOLY I forgot I did that on my original 2 sites !!!!!!!

 

 

THANKS A TON!!!!!

 

OMG I so stupid and forgetful.

Archived

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

×
×
  • Create New...