Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Missing Function "tep_catalog_href_link()"


luxinterior

Recommended Posts

Hi All

 

Well before you all start screaming I know I should of backed up my files but unfortuntley on this occasion I didn't and now i'm paying the price >_<

 

I've installed a few contribs mostly to do with SEO and obviously somewhere along the line I screwed up.

 

I've manged to get my installation almost back to clean apart from one thing. When I try to access the admin panel I geta fatal error saying call to undefined function 'tep_catalog_href_link()'

 

To test it I commented the call out and it loaded ok but obvioulsy didn't work.

 

So the question is where should the function tep_catalog_href_link() reside and can somembody post it please.

 

Thanks

 

Lux

Link to comment
Share on other sites

  • 1 year later...

Hope this fixes your problem.

 

/admin/includes/functions/html_output.php

 

Add this:

 

function tep_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

if ($connection == 'NONSSL') {

$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;

} elseif ($connection == 'SSL') {

if (ENABLE_SSL_CATALOG == 'true') {

$link = HTTPS_CATALOG_SERVER . DIR_WS_CATALOG;

} else {

$link = HTTP_CATALOG_SERVER . DIR_WS_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<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

}

if ($parameters == '') {

$link .= $page;

} else {

$link .= $page . '?' . $parameters;

}

 

while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

 

return $link;

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...