Code:
Fatal error: Invalid forum parenting setup. Contact vBulletin support. in /includes/adminfunctions.php on line 3164
I'm getting that error whenever I'm trying to delete, edit, move (moderation actions on threads / posts), and also when trying to edit permissions, titles, descriptions of forums/sections.
Line 3164 is basically the code to recalculates forum parent and child lists.
PHP Code:
// #############################################################################
/**
* Recalculates forum parent and child lists, then saves them back to the forum table
*/
function build_forum_genealogy()
{
global $vbulletin;
if (empty($vbulletin->forumcache))
{
return;
}
// build parent/child lists
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
// parent list
$i = 0;
$curid = $forumid;
$vbulletin->forumcache["$forumid"]['parentlist'] = '';
while ($curid != -1 AND $i++ < 1000)
{
if ($curid)
{
$vbulletin->forumcache["$forumid"]['parentlist'] .= $curid . ',';
$curid = $vbulletin->forumcache["$curid"]['parentid'];
}
else
{
global $vbphrase;
if (!isset($vbphrase['invalid_forum_parenting']))
{
$vbphrase['invalid_forum_parenting'] = 'Invalid forum parenting setup. Contact vBulletin support.';
}
trigger_error($vbphrase['invalid_forum_parenting'], E_USER_ERROR);
}
}
$vbulletin->forumcache["$forumid"]['parentlist'] .= '-1';
// child list
$vbulletin->forumcache["$forumid"]['childlist'] = $forumid;
fetch_forum_child_list($forumid, $forumid);
$vbulletin->forumcache["$forumid"]['childlist'] .= ',-1';
}
$parentsql = '';
$childsql = '';
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
$parentsql .= " WHEN $forumid THEN '$forum[parentlist]'
";
$childsql .= " WHEN $forumid THEN '$forum[childlist]'
";
}
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "forum SET
parentlist = CASE forumid
$parentsql
ELSE parentlist
END,
childlist = CASE forumid
$childsql
ELSE childlist
END
");
}
Number of Categories: 8
Number of sections: 133
(Including sub-sections)
vBulletin: v3.6.8
Anyone knows how to fix this?
--------------- Added [DATE]1202942610[/DATE] at [TIME]1202942610[/TIME] ---------------
I figured out the problem, somehow my forum was hacked, when I edited forums in "Forum Manager", Title, description.. everything showed as:
Quote:
r3dsoldier her ++++ you alll usa + isreal and ....... contact irlande@live.ie
|
How is that possible though? v3.6.8 is not stable? and why its only showing in forum manager?
Full Message (From /Archive/):
Quote:
r3dsoldier her ( muslim h4ck3r) all your data ++++ing admin is with me if you want help contact me
|