Like the topic says what does this error meanUnkown Tag: link_hits
Jun 29, 1999, 4:43 PM
Veteran (3111 posts)
Jun 29, 1999, 4:43 PM
Post #2 of 4
Views: 1590
Basically, the error means that you have used <%link_hits%> in a template file but the site_html_templates.pl routine that loads that template file is not passing link_hits to it, so it cannot be used in the template file.
Since $link_hits is returned by search.cgi, I would check site_html_templates.pl, sub site_html_search_results to be sure this is included:
term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
%in,
%globals
});
I hope this helps.
Since $link_hits is returned by search.cgi, I would check site_html_templates.pl, sub site_html_search_results to be sure this is included:
Code:
print &load_template ('search_results.html', { term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
%in,
%globals
});
I hope this helps.