PDA

View Full Version : Error When Deleting Thread


Dj Smuggla
12-09-2009, 03:52 PM
Everytime i try to delete a thread i get this message:
Fatal error: Call to undefined method vS_HHR_Engine::rebuild_cache() in /home/bigpuny2/public_html/includes/functions_databuild.php on line 1065

It must have something to do with the Hide Hack Resurrection mod.

This is my includes/functions_databuild.php, line 1065 is in red:

$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "thanks WHERE postid IN ($postids" . "0)");

$hhr_res = $vbulletin->db->query_write("SELECT DISTINCT userid FROM " . TABLE_PREFIX . "post WHERE postid IN ($postids" . "0)");
while ($hhr_item = $vbulletin->db->fetch_array($hhr_res))
{
$GLOBALS['hhr']->rebuild_cache('count', $hhr_item['userid']);
}
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "post WHERE postid IN ($postids" . "0)");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "postparsed WHERE postid IN ($postids" . "0)");
//$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "reputation WHERE postid IN ($postids" . "0)");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "moderation WHERE type = 'reply' AND primaryid IN ($postids" . "0)");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "editlog WHERE postid IN ($postids" . "0)");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "postedithistory WHERE postid IN ($postids" . "0)");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "deletionlog WHERE type= 'post' AND primaryid IN ($postids" . "0)");
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "podcastitem WHERE postid = " . intval($threadinfo['firstpostid']));


Anyone see the problem?

Lynne
12-09-2009, 03:55 PM
It's says in the error that it's an undefined method. You can't just call a function without defining it first. So, define it or include the file that defines it.

But, this should be posted in the modification thread.