Fatal Error Search for Wiki Pages
When searching for wiki pages in vBulletin 4, I receive a fatal error.
Fixed in the current ZIP. In
packages/vaultwiki/search/type/vaultarticle.php, find:
Code:
$vault->unserialize('vault_namespaces');
$criteria->add_filter('gotoarticle', vB_Search_Core::OP_EQ, $this->gotoarticle);
foreach ($vbulletin->options['vault_namespaces'] AS $namespaceid => $info)
{
if ($namespaceid == SPECIAL_SPACE)
{
continue;
}
$vbulletin->GPC['namespace']["$namespaceid"] = 1;
}
if ($subforums OR empty($registry->GPC['forumchoice']))
{
require_once(DIR . '/vault/plugins/search.php');
special_search_forumchoice();
$allforums = array_values($vbulletin->GPC['forumchoice']);
}
if (!isset($_POST['forumchoice']))
{
// used simple wiki search form
special_search_goto_article();
Replace with:
Code:
$criteria->add_filter('gotoarticle', vB_Search_Core::OP_EQ, $this->gotoarticle);
if ($subforums OR empty($registry->GPC['forumchoice']))
{
require_once(DIR . '/vault/functions/data.php');
$allforums = array_values(special_fetch_wiki_forumids());
}
if (!isset($_POST['forumchoice']))
{
// used simple wiki search form
require_once(DIR . '/vault/plugins/search.php');
special_search_goto_article();