Guest Posted November 29, 2003 Posted November 29, 2003 Hi, I am wondering if anyone can tell me what the problem with (I think) is the footer of my store. This is the following error that appears at the bottom of each page: Error! Unable to determine connection method on a link! Known methods: NONSSL SSL I have tried re-uploading the file, and altered the file. Neither have fixed the error. If it helps my store does not use SSL. Thanks for your help. Many Regards -Barry
crash3903 Posted November 29, 2003 Posted November 29, 2003 have you got search engine safe urls enable in admin?? this may be causing the problem regards mark Regards Mark A Reynolds
Guest Posted November 29, 2003 Posted November 29, 2003 I have just had a look and it is still off (false). Anymore suggestions would be appriciated. Regards -Barry
Guest Posted November 29, 2003 Posted November 29, 2003 Around line 31 of includes/functions/html_output.php, try changing to die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL, not (' . $connection .') as it is on ' . $page . '</b><br><br>'); and see what it says. Note: the third parameter to tep_href_link should be 'NONSSL' or 'SSL' (SSL will produce reasonable behavior even if SSL is disabled) if there are more than two parameters. Hth, Matt
Guest Posted November 29, 2003 Posted November 29, 2003 I tried that but that made my whole store fail. How much should I replace? Just the: die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } just that section? Regards and thanks for your time. -Barry
Guest Posted November 29, 2003 Posted November 29, 2003 Just replace one die statement with the other. In fact, you could just add the changes in that line if you wanted. Most of it stays the same. The point of this is to get more information about the line that is failing. It will continue to fail, but it should tell you more about what it is trying to do so that you can isolate which of the tep_href_link calls is failing. Hth, Matt
Guest Posted November 29, 2003 Posted November 29, 2003 Hi, I have altered the tag (I was doing it wrong last time as I was altering the "}" as well. The new error message at the bottom of the page now reads: Error! Unable to determine connection method on a link! Known methods: NONSSL SSL, not () as it is on index.php So does it mean a problem on my index.php page? Sorry I'm new to .php and pretty clueless... Regards -Barry
Guest Posted November 30, 2003 Posted November 30, 2003 No, it means that there is a problem with a link to the index.php page. There is call to tep_href_link where the third parameter is present but empty. If you just want to fix this problem with a minimum of code changes and debugging try changing the whole section: if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } to (3 changes, add //, /*, and */) // if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; /* } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); }*/ Hth, Matt
Guest Posted November 30, 2003 Posted November 30, 2003 Thank you thats worked a treat ^-^ Regards and Festive Wishes -Barry
Guest Posted November 30, 2003 Posted November 30, 2003 Actually that was a lie, the error message doesn't appear but all my links don't work when I alter that code. Instead of looking like this: /catalog/product_info.php?products_id=80 They look something like this: /catalogDIR_WS_CATALOGproduct_info.php?products_id=80 Sorry about being a bother Regards -Barry
Guest Posted November 30, 2003 Posted November 30, 2003 Did you change something on the $link line? Or in includes/configure.php? The code that I posted just makes it so it always picks the NONSSL case...on most pages, you should get the exact same links that you did previously. You can post the DIR_WS defines from your includes/configure.php file if you can't see the issue. You may want to post the code you changed in includes/application_top.php as well. Hth, Matt
Guest Posted November 30, 2003 Posted November 30, 2003 Sorry what you just said is almost completely over my head. I have not changed the includes/configure.php page at all. I have not (knowingly) changed any $link line. Although I don't know where this is located.
Guest Posted November 30, 2003 Posted November 30, 2003 Well, if you look back at the code that you changed, you will see that the second line starts with $link and is the only line left that executes. I misposted, the code I wanted to suggest that you post would be that from includes/functions/html_output.php, not includes/application_top.php. Hth, Matt
Guest Posted November 30, 2003 Posted November 30, 2003 yes, that was the only line which wasn't quoted out (or whatever it is when u use the // things), and I altered the code in the html_output.php file.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.