Text Formatted Code
...
$story_template->set_var('site_url',$_CONF['site_url']);
$story_template->set_var('layout_url',$_CONF['layout_url']);
$story_template->set_var('story_id', $A['sid']);
$story_template->set_var('story_comments', DB_count($_TABLES['comments'],'sid',$A['sid']));
$story_template->set_var('lang_comments', $LANG01[3]);
$articleUrl = COM_buildUrl ($_CONF['site_url']
. '/article.php?story=' . $A['sid']);
$story_template->set_var ('article_url', $articleUrl);
$story_template->parse('output','article');
$display = $story_template->finish($story_template->get_var('output'));
}
...
The thing is that everytime that an article is called (from the index page, from the archive, from the admin area) that error message appears...