Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting a simple error...


computaplanet

Recommended Posts

Posted

My account history is messing up i am getting the following error...

 

Error!

 

Unable to determine connection method on a link!

 

Known methods: NONSSL SSL

 

It is at the bottom of my account when i log into the store as a customer and also when i click on past orders... can someone help?

 

cheers >_<

Posted

The links for login, logoff, account etc - i.e. all the secure ones - should look like this.

 

tep_href_link(FILENAME_ACCOUNT, '', 'SSL')

 

Obviously that one is for the "My Account" page but the point being, the tep_href_link() function takes "SSL" as the 3rd parameter. A non secure page would have "NONSSL", however, being as NONSSL is the default, you don't usually see it for normal links. A non secured link usually has just the first parameter and looks like:

 

tep_href_link(FILENAME_DEFAULT)

 

Check the links in your files and make sure they are coded correctly.

Posted
The links for login, logoff, account etc - i.e. all the secure ones - should look like this.

 

tep_href_link(FILENAME_ACCOUNT, '', 'SSL')

 

Obviously that one is for the "My Account" page but the point being, the tep_href_link() function takes "SSL" as the 3rd parameter. A non secure page would have "NONSSL", however, being as NONSSL is the default, you don't usually see it for normal links. A non secured link usually has just the first parameter and looks like:

 

tep_href_link(FILENAME_DEFAULT)

 

Check the links in your files and make sure they are coded correctly.

thankyou for your input but i need a bit more info... sorry to be thick... anyway i dont have a ssl cert so should all my links be non ssl or does an ssl cert have nothing to do with it and it is going to be a case of change each SSL to NONSSL and vice versa until i find the problem?

 

cheers again

Posted

Not having an SSL certificate is neither here nor there, so long as you have it as false in the configure files. All the links in osCommerce use the tep_href_link() function and part of that function declares whether the link should be opened through a secured connection (https). If you don't have SSL, osCommerce will open the link through the normal protocol (http).

So no, you don't need to remove the SSL argument from the links but it needs to be correctly coded (not SS, SLL, SL or something else) and as said, you need to have declared SSL = False in the configure files.

 

Look in the file you are having problems with - account.php maybe? - and see the links are coded properly. e.g.

 

tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')

Archived

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

×
×
  • Create New...