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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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 |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| anyone seen anything like this before??? -pete |
|
#3
| ||||
| ||||
| 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). |
|
#4
| ||||
| ||||
| 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 |
|
#5
| |||
| |||
| 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. |
|
#6
| |||
| |||
| 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... -- stan c",) |
|
#7
| |||
| |||
| why dont any of my images or icons show up when im checking out or loging in? |
|
#8
| |||
| |||
| *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",) |
|
#9
| ||||
| ||||
| Quote:
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 |
|
#10
| ||||
| ||||
| 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 Code: http://www.site.com/catalog/images.logo.gif I add an image to the left column, so I code this: Code: <tr>
<td><img src="images/cert_thawte.gif"></td>
</tr>
Code: <tr>
<td><img src="http://mysite.com/catalog/images/cert_thawte.gif"></td>
</tr>
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
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |