osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

crazy https:// stuff

This is a discussion on crazy https:// stuff within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Now here's what's happening: 1. I go to the shopping cart and the url is http:// 2. I browse around ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-22-2002, 05:27 PM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default crazy https:// stuff

Now here's what's happening:

1. I go to the shopping cart and the url is http://
2. I browse around and add items to the cart (still http://)
3. I go to checkout and it prompts me to login (i already have an account)
4. The login.php page loads (Welcome, Please Sign In) and now the url begins with https:// (secure)
5. I enter my information and click "Sign In" and a dialog box pops up that says that i'm about to "be redirected to a connection that is not secure".
6. If i choose "yes", it takes me to the catalog/checkout_payment.php page, but the url is now reverted BACK to http:// (i am no longer in a secure connection)

What can i do to force this page to https:// ????
The catalog/includes/configure.php page already has the appropriate information, i believe....

______________________________________

Now i just hit the "Back" button on my browser, went back to the login page and entered my password again, and this time it went to a page beginning with https:// .

I can't have this thing "occassionally" take me to the checkout_payment.php page (where people enter credit card info) via a secure connection and other times via a regular http:// page.

Why is it so inconsistent?

any help???
thanks,
pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-23-2002, 07:47 AM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default

anyone seen anything like this before???
-pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-23-2002, 08:48 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,071
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

This means you have some absolute links, usually to images, somewhere on your page. You need to make sure all links to images are relative, that way they will be called via https:// rather than http://

Look for the images path by right clicking each image and checking the path in the properties (through your browser).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-23-2002, 09:27 AM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default

yep, my header (which replaces the oscommerce logo) is an absolute link. Can you remind me which files i need to adjust to make them relative? Thanks for the help. This has been kickin' my @$$.
-pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-07-2002, 06:58 AM
Anonymous
Guest
 
Posts: n/a
Default

Just thought i'd add a question while were talking about this. I am just upgradeing to use SSL for my shopping cart. I noticed my header is also absolute links.

So are the graphics uploaded twice to two separate servers? (http & https) or just once.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-19-2002, 03:16 PM
Member
 
Join Date: Oct 2002
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stan
Default

Well, for most setups, it will only be uploaded once. The only difference between HTTP & HTTPS is that the HTTPS is transfered over an encrypted channel. Most of the time, http://yourdomain.com & https://yourdoamin.com grab the content from the same directory.

As far as http/https flipping, that shouldn't happen if you let OS Commerce handle the URLs for you. Most of the tep_* functions will take into account whether the link should be secure or not. In the cases where you want to force something, you can add either 'SSL' or 'NONSSL'. For example, you'll see code like:

tep_href_link( FILENAME_LOGIN, 'action=process', 'SSL' )

So you may need to patch those as necessary. A common mistake is to use a straight-up link instead of one with explicit 'NONSSL' . SSL is expensive, so you usually want it only on the payment pages and the login pages (to protect passwords). Normally in OS Commerce, the state transitions are handled quite well. However, once you start modifying things, it's quite easy to introduce unexpected side effects.

For example, we had a menu on the top of all pages in our modified OS Commerce installation. One of the links is back to the products. Well, if the user was inside the order process and decided to follow the products link out, then the user would continue to have SSL active (https). It's not optimal to have the user use https for normal browsing, but it's generally not a problem, until they get to a form submission that has 'NONSSL' specified. Then the dialog pops up stating that the user is submitting insecure data, blah blah blah. So you really want to be careful designing the flow so that you enter and exit SSL properly. We fixed the problem by forcing exit links to be explicitly 'NONSSL', since they are aborting the checkout process and browsing. When they checkout again, it re-enters the SSL state.

Well, I hope I didn't confuse the heck of everyone now. It's really a simple concept that I'm explaining poorly... Anyway, the moral of this story is to make sure that you map out your http & https transitions carefully.

-- stan c",)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-23-2002, 09:54 AM
Lurker
 
Join Date: Nov 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
someguy
Default

why dont any of my images or icons show up when im checking out or loging in?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 11-26-2002, 02:44 PM
Member
 
Join Date: Oct 2002
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stan
Default

*sigh* Are the images being reference with https? Are they actually available at that URL? Please follow all the steps and provide detailed info. Otherwise it's hard to diagnose and solve the problem.

-- stan c",)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 12-09-2002, 12:05 PM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default

Quote:
Originally Posted by msasek
This means you have some absolute links, usually to images, somewhere on your page. You need to make sure all links to images are relative, that way they will be called via https:// rather than http://

Look for the images path by right clicking each image and checking the path in the properties (through your browser).
Okay, i checked the image path by right clicking each image and checking the path in the properties option. My path reads as follows: http://www.mydomain.com/catalog/imag...log_header.gif

Does this mean it's relative or absolute?? And could someone please post the code that i should use to reference this image (catalog_header.gif) and on what page or pages do i need to do this?? header.php???

Thanks for your help. You can see this has been killing me for 2 months and this is rather ridiculous. Outraged clients..... yikes!

Please help.
-pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 12-09-2002, 12:50 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,071
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Pete,

This is caused by images that you have added, but it could be anywhere that you coded an image.

A relative link will have a path:
Code:
/catalog/images/logo.gif
The absolute link will either be a full url to the image:
Code:
http://www.site.com/catalog/images.logo.gif
An example:

I add an image to the left column, so I code this:

Code:
<tr>
    <td><img src="images/cert_thawte.gif"></td>
  </tr>
This is the relative link, that will not cause me any trouble. But if I code it like this:

Code:
<tr>
    <td><img src="http://mysite.com/catalog/images/cert_thawte.gif"></td>
  </tr>
I will get the browser warning.


So, look through your changes, and locate the absolute links to images that you placed, and change them to relative paths to the images, and your problem should vanish.

Post the code in question and I will be happy to look at it for you, if this doesn't help.

osCommerce is contstructed out of the box to avoid this issue, so that is why I make the assumption that it is your additional code that is causing the problem.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
THIS IS CRAZY! red_fraggle osCommerce 2.2 Installation Help 0 03-07-2005 11:44 AM
Download Making me crazy jonnie1962 osCMax v1.7 Installation 0 11-11-2004 09:31 AM
going crazy about shipping technet-computers osCMax v1.7 Installation 0 11-10-2004 12:18 PM
The usual SSL stuff QuazBotch osCommerce 2.2 Modification Help 3 01-31-2004 10:28 AM
Crazy warning message after installing STS mod innovations osCommerce 2.2 Modification Help 1 12-10-2003 09:30 PM


All times are GMT -8. The time now is 07:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax