Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warnings after installed SSL Cert


Guest

Recommended Posts

Posted

Good afternoon all.

 

I purchased a SSL cert through my hosting company and had them install it for me. All I had to do was to alter two config files. Did that, went fine. However, now I am getting the warning: This page contains secure and nonsecure items....etc.

 

How do I get rid of this? You can view my site at www.clearcreekscraps.com.

 

Thanks everyone!

Michelle

 

PS...I LOVE THIS FORUM...have gotten lots of help and encouragement!

Posted

when I type in (or click store from my main site) I receive this error:

 

The security certificate presented by this website was issued for a different website's address.

 

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.

 

when I delete the "s" from the https://, I get this parse error:

 

Parse error: syntax error, unexpected T_STRING in /home/clearcr1/public_html/catalog/admin/includes/configure.php on line 11

 

What gives? Im so close!

 

Thanks,

Michelle

Posted
when I type in (or click store from my main site) I receive this error:

 

The security certificate presented by this website was issued for a different website's address.

 

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.

 

when I delete the "s" from the https://, I get this parse error:

 

Parse error: syntax error, unexpected T_STRING in /home/clearcr1/public_html/catalog/admin/includes/configure.php on line 11

 

What gives? Im so close!

 

Thanks,

Michelle

 

Here is my code.

 

<?php
 define('HTTP_SERVER', 'https://www.clearcreekscraps.com');
 define('HTTP_CATALOG_SERVER', 'https://www.clearcreekscraps.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.clearcreekscraps.com');
 define('ENABLE_SSL_CATALOG', 'true');//secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/xxxxxxxx/public_html/catalog/');
 define('DIR_WS_ADMIN', '/catalog/admin/');
 define('DIR_FS_ADMIN', '/home/xxxxxxxx/public_html/catalog/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/xxxxxxxx/public_html/catalog/');
 define('DIR_WS_IMAGES', 'images/'true');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

 

I followed instructions from a post (simple and easy to install/config ssl). I did everything it said.

 

Help.

 

Thanks

Posted

osC isn't detecting your SSL properly.

 

In /catalog/includes/application_top.php find this code:

 

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

Replace it with this code:

 

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

See if that helps.

 

It would be a good idea to make a backup before making any edits.

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
osC isn't detecting your SSL properly.

 

In /catalog/includes/application_top.php find this code:

 

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

Replace it with this code:

 

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

See if that helps.

 

It would be a good idea to make a backup before making any edits.

 

 

Thanks, will give it a try.

Posted

Im not getting the warning anymore when I try to go to the admin area, it is now asking for my password and login, however, after I enter that, I am still getting this parse error:

 

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/clearcr1/public_html/catalog/admin/includes/configure.php on line 11

 

 

Here is my Line 11:

 

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

 

any ideas?

 

thanks, michelle

Posted

Heh, figured it out myself, I hope. I took out the true/false and voila, working great now. If that is wrong, and its gonna do something freaky to my site, someone please tell me. :D

 

Thanks!!!

Posted

You might consider this.

 

You have your whole store in SSL mode.

 

Google (and maybe other engines) doesn't index SSL pages.

 

If you leave it like it is, your store won't get indexed by Google (and maybe other engines).

 

Kind of defeats the purpose of having a store (IMHO).

:blush:

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

most of the times it is a simple error in your configure.php files. look at your certificate (go where you have an https page) upon viewing you will see the name assigned to your certificate. if it is your web name (www.myname.com) then the configure.php files need http://www.myname.com and https://www.myname.com in the top lines.

also your cookie files, they always need two periods in them to work properly. dont just use myname.com use www.myname.com

changing code usually leads to problems

i have installed enough of them do it all the time

Posted
You might consider this.

 

You have your whole store in SSL mode.

 

Google (and maybe other engines) doesn't index SSL pages.

 

If you leave it like it is, your store won't get indexed by Google (and maybe other engines).

 

Kind of defeats the purpose of having a store (IMHO).

:blush:

 

Thanks for the advice. How do I have ONLY the account creation process and checkout/payment process in ssl mode? I appreciate your help.

 

Michelle

Posted
Thanks for the advice. How do I have ONLY the account creation process and checkout/payment process in ssl mode? I appreciate your help.

 

Michelle

 

Fixed it...thanks a million!

Posted

well, I thought I fixed it...lol When I go from my main site, by clicking the link to the store, it does like its supposed to. When I type in the site in the addy bar or go to Online Catalog from the admin side...it all is still in ssl mode. Why?

 

Appreciate help.

 

Michelle

 

Also, LOST in the meta tags stuff. Any simple ways to install and do this? I have dl HTC but am sooo lost. Where do I install it? Which folder? Ugh, maybe I should read some more.

 

Michelle

Posted

The catalog is working fine for me.

:huh:

 

SSL only when it should.

 

As far as the admin being SSL, that's fine, even preferrred IMHO.

 

Clear your browser cache.

 

I can't answer the meta tag question.

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 catalog is working fine for me.

:huh:

 

SSL only when it should.

 

As far as the admin being SSL, that's fine, even preferrred IMHO.

 

Clear your browser cache.

 

I can't answer the meta tag question.

 

Thanks so much for looking and replying. I sure do appreciate it. I was just thinking that it had to be not in ssl mode on the admin side too. One more thing I can let go of and not worry about. :D

Archived

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

×
×
  • Create New...