Is this a new installation or an upgrade? If an upgrade, from what version?
Do you have any other errors in your logs that were generated by VaultWiki?
This error occurs when there is a corrupt area cache, usually due to a corrupt area from another error.
However, it is possible to trigger this error with a race condition:
- While manually creating a new area, you or any other user visits the forum home page or any wiki page in the same microsecond. This might generate a cache containing the new area with a NULL pageid.
There are some edits that can make the error go away. In
vault/core/model/area/vw.php, find:
Code:
if (isset($noperm[$area['pageid']]))
Replace with:
Code:
if (!$area['pageid'] OR isset($noperm[$area['pageid']]))
Find:
Code:
else
{
$area['childlist'] = array($area['pageid']) + $this->icache[$area['pageid']];
Replace with:
Code:
else if (isset($this->icache[$area['pageid']]))
{
$area['childlist'] = array($area['pageid']) + $this->icache[$area['pageid']];
Find:
Code:
foreach ($areacache AS $area)
{
After it, add:
Code:
if (empty($area['pageid']))
{
continue;
}
While these changes should hide the reported database error, if the error was caused by anything other than a race condition, then there is corrupt data present that will probably cause other problems, and you will need to provide more information about your wiki.