luxinterior Posted February 24, 2005 Share Posted February 24, 2005 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 More sharing options...
luxinterior Posted February 25, 2005 Author Share Posted February 25, 2005 Anybody got any ideas on this one please? Lux Link to comment Share on other sites More sharing options...
Guest Posted May 27, 2006 Share Posted May 27, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.