When clicking on the "Recent Changes" link in the navbar, it directs users to /special:recentchanges but that page simply shows an error and a missing phrase:
The whole segment in wiki_index.php is wrong. To be honest, it looks like it should always be broken, so I'm not sure why it's only affecting some special pages and why there's no issue on this site.
Anyway, in the original code, find:
Code:
if ($view_ctrl->id AND !$router->title)
{
$index = vw_Hard_Core::controller('Fetch')->get('Index', 0);
if ($view_ctrl->id != $index['pageid'])
{
$test = vw_Hard_Core::controller('Fetch')->get('Page', $view_ctrl->id);
if (!$test)
{
vw_Hard_Core::view('UI/Proxy')->standard_error('vw_invalid_item');
}
}
}
Replace with:
Code:
if ($view_ctrl->id AND !$router->title)
{
$do_test = true;
if ($router->type == 'Page')
{
$index = vw_Hard_Core::controller('Fetch')->get('Index', 0);
if ($view_ctrl->id == $index['pageid'])
{
$do_test = false;
}
}
if ($do_test)
{
$test = vw_Hard_Core::controller('Fetch')->get($router->type, $view_ctrl->id);
if (!$test)
{
vw_Hard_Core::view('UI/Proxy')->standard_error('vw_invalid_item');
}
}
}
This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.