Jump to content

Archived

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

coldfission

Unable to determine connection method on a link!

Recommended Posts

Error!

 

Unable to determine connection method on a link!

 

Known methods: NONSSL SSL

 

I am getting this error on only some catalog pages. What would cause this? The only thing i changed that might cause this error would be on my main_page.tpl.php for the BTS template.

 

thanks

Share this post


Link to post
Share on other sites

Two arguments the tep_href_link() function takes is Filename and SSL or NONSSL.

 

tep_href_link(FILENAME_ACCOUNT, '', 'SSL')

tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')

 

If you inadvertently changed one of those, it would give you this error. Like this for instance:

 

tep_href_link(FILENAME_SHOPPING_CART, '', 'NOSSL')

 

Go through the page you changed and look for where you could have made that mistake. It will probably be an SSL link, as NONSSL is the default so not always declared.

Share this post


Link to post
Share on other sites

I've no idea! Did you use the tep_href_link function? Maybe you inadvertently passed something as the SSL argument.

 

Post your code here so we can see it.

Share this post


Link to post
Share on other sites

<?php
$request_type = (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER);
if ($request_type == HTTPS_SERVER) {
define('GOOGLE_HTTP', 'https://ssl.');
} else {
define('GOOGLE_HTTP', 'http://www.');
}
?>
<script src="<?php echo((GOOGLE_HTTP) . 'google-analytics.com/urchin.js'); ?>">
</script>
<script type="text/javascript">
_uacct = "UA-1468672-1";
urchinTracker();
</script>

 

that is what i put in my BTS template that stopped some pages at category.php but i'm using safe URLs or something

Share this post


Link to post
Share on other sites

The code looks ok to me.

 

 

i'm using safe URLs or something

 

You mean "Use Search-Engine Safe URLs (still in development)" set in your admin? If so, disable them.

Share this post


Link to post
Share on other sites

×