Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Problem


Guest

Recommended Posts

Posted

I know someone out there can tell me what I'm doing wrong. I purchased a private SSL Certificate a few months back and it was in stalled by my hosting company. I have been attempting to follow the instructions on what modifications I need to make to the configure.php file but I'm running into problems. I download the file from the FTP and then open it in Dreamweaver. Make the modifications that I have been linked to on osCommerce's website through my hosting company and then I re-upload the file back to the same directory. The file tells me that there is already a file there and asks if I want to overwrite it and I say "Yes". It does this probably about 5 or 6 more times, I'm assuming for all the other configure.php files. The problem is this, if I pull that file back off the FTP the changes are no longer there, so the site still thinks that the SSL is not active.

 

What am I doing wrong? Any help would be great. I can't take my site live until this problem is fixed.

 

High-Tech Envy

Posted

The permission settings for the file are probably preventing it from being overwritten. Try changing the permissions on the file on the server to 644 first and then upload the new one.

 

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

Posted
The permission settings for the file are probably preventing it from being overwritten. Try changing the permissions on the file on the server to 644 first and then upload the new one.

 

Jack

 

Ok, I did that. I logged into my hosting sites file manager and was able to change the permissions and it worked. But kow I have a new problem. When I get the modified file uploaded all the images in the site stop apperring. and the style sheets don't function. I saw some posts about adding the https:// addresses to the hotlinks list. I did this and it didn't work.

 

Also not sure if this makes a difference but the cart also has CRE Loaded with it.

Posted

The config files need to be edited directly on the server.

Log into your control panel find the correct files, change permissions to 644, edit/ save then change permissions back to 444.

SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Posted

The images disappearing can be a symptom of a needed modification to the osC code.

 

The problem arises that the particular server setting that osC looks for to detect if SSL is active may not exist in your environment.

 

The real heart of the matter is that there is no "industry standard" setting for SSL being active.

 

The osC coders picked what seems to be the most prevalent setting to check, but it won't work on every server.

 

If you post (or PM me) a link to your site, I can work with you to try to resolve this problem.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
The images disappearing can be a symptom of a needed modification to the osC code.

 

The problem arises that the particular server setting that osC looks for to detect if SSL is active may not exist in your environment.

 

The real heart of the matter is that there is no "industry standard" setting for SSL being active.

 

The osC coders picked what seems to be the most prevalent setting to check, but it won't work on every server.

 

If you post (or PM me) a link to your site, I can work with you to try to resolve this problem.

 

 

Thanks for the help. I put in a request to my hosting company as well with this to help expedite the fix. I got a reply back from them that said that they had made the needed corrections for me. So far everything looks like it is working fine with the exception that the lock in the lower right hand corner indicates that the https:// pages is not secure. I purchased a private SSL so I'm still a little confused on this. I have sent my host company another note so will see what they say. In the mean time if you have any ideas of why this is happening I'm all ears.

 

Thanks for all the replies.

 

www.hightechenvy.com

Posted

You appear to be on one of those servers that doesn't have what osC is looking for to detect SSL.

 

Try this:

 

Make a backupo copy of the file /includes/application_top.php (keep it safe somewhere)

 

Edit the existing /includes/application_top.php

 

Find the line that says:

 

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

Replace that line with:

 

// modified 02/28/08
// $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

If this dosn't work, I have another method that will, it's just a little bit more "involved".

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
You appear to be on one of those servers that doesn't have what osC is looking for to detect SSL.

 

Try this:

 

Make a backupo copy of the file /includes/application_top.php (keep it safe somewhere)

 

Edit the existing /includes/application_top.php

 

Find the line that says:

 

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

Replace that line with:

 

// modified 02/28/08
// $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

If this dosn't work, I have another method that will, it's just a little bit more "involved".

 

 

I replaced the text in the file and then uploaded it. Placed an item in the cart and then began to walk through the steps to check out. Padlock in the lower right corner still shows an unsecured lock once moving to the https:// pages.

Posted

OK.

 

On to "Plan 'B'"

 

I'm going to send you a PM with something I need you to do to assist me in finding the correct setting.

 

When you have finished what I'll ask you to do, post again in this thread or send me PM.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

The osC code should have worked like it was originally. And should be working now:

 

SSL:

 

HTTPS on

SERVER_PORT 443

 

NONSSL:

 

HTTPS (not defined)

SERVER_PORT 80

 

Open the index.php file in the root folder on your site.

 

Copy/paste into your next post what it has between these lines:

 

<head>

 

</head>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
The osC code should have worked like it was originally. And should be working now:

 

SSL:

 

HTTPS on

SERVER_PORT 443

 

NONSSL:

 

HTTPS (not defined)

SERVER_PORT 80

 

Open the index.php file in the root folder on your site.

 

Copy/paste into your next post what it has between these lines:

 

<head>

 

</head>

 

The index.php in the root dir does not contain any header tags.

Posted

So what kind of code does it have?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
So what kind of code does it have?

:unsure:

 

Very upper most is a <?php. And then it goes into some

 

define('TEXT_MAIN'...

define('TABLE_HEADING...

 

The entire page is made up of the define statements, along with remarks and a few other lines of code but not many.

Posted

Wrong index.php file.

 

You're looking at the one from your /includes/languages file.

 

Look at the one in the ROOT (main) folder of your site.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Wrong index.php file.

 

You're looking at the one from your /includes/languages file.

 

Look at the one in the ROOT (main) folder of your site.

 

 

Still no header tags.

Posted

Still.. What kind of code DOES it have?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Still.. What kind of code DOES it have?

:unsure:

 

Here is the first 36 Lines of the file...

 

<?php

/*

$Id: index.php,v 1.2 2004/03/09 19:56:29 ccwjr Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

 

// the following cPath references come from application_top.php

$category_depth = 'top';

if (isset($cPath) && tep_not_null($cPath)) {

$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$cateqories_products = tep_db_fetch_array($categories_products_query);

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");

$category_parent = tep_db_fetch_array($category_parent_query);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

 

if ($category_depth == 'nested') {

Posted

CRE Loaded is not osCommerce. We don't offer support for CRE Loaded on these forums.

 

Having said that - you're also using a template with just about everything hardcoded to http. Looks like it was written by a Dreamweaver Script Kiddie with absolutely no idea how to code for a PHP site.

 

This image link is from an https page:

 

http://www.hightechenvy.com/templates/0088...ges/banner3.gif

 

Any further support you need to look for on the CRE Loaded forums.

 

Vger

Posted
CRE Loaded is not osCommerce. We don't offer support for CRE Loaded on these forums.

 

Having said that - you're also using a template with just about everything hardcoded to http. Looks like it was written by a Dreamweaver Script Kiddie with absolutely no idea how to code for a PHP site.

 

This image link is from an https page:

 

http://www.hightechenvy.com/templates/0088...ges/banner3.gif

 

Any further support you need to look for on the CRE Loaded forums.

 

Vger

 

I guess I must be confused on exactly what CRE Loaded is. I thought the site was still an osCommerce site.

Posted
I guess I must be confused on exactly what CRE Loaded is. I thought the site was still an osCommerce site.
It is. But it is considered a fork of oscommerce since the basic code has been altered so much. As such, it is against the rules to support it here.

 

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

Archived

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

×
×
  • Create New...