• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Xenforo VaultWiki

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Xenforo VaultWiki

    • Issue Tools
      • View Changes
    1. issueid=4803 November 21, 2016 7:58 PM
      DigitalCodex DigitalCodex is offline
      New Member
      Xenforo VaultWiki
      Help

      https://gyazo.com/4cc07a548733736410981bcb9d6feff8
    Issue Details
    Issue Number 4803
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Areas
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.15
    Fixed Version 4.0.16
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. November 22, 2016 9:12 AM
      pegasus pegasus is offline
      VaultWiki Team
      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.
      Reply Reply
    2. November 22, 2016 4:40 PM
      DigitalCodex DigitalCodex is offline
      New Member
      I ran the SQL statement in SQL and it didn't work gave me an error

      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND nodetypeid = 1'

      so:

      ERROR:
      'SELECT updateid FROM `vw_lastupdatecache` WHERE userid = 1 AND `nodeid` IN (4,) AND nodetypeid = 1'

      but when i changed the statement in SQL to:
      SELECT updateid FROM `vw_lastupdatecache` WHERE userid = 1 AND `nodeid` IN (4) AND nodetypeid = 1

      It worked

      Thing is I don't know where at in your code to edit this SQL statement i went to all files that are shown in the error page
      Reply Reply
    3. November 23, 2016 9:17 AM
      pegasus pegasus is offline
      VaultWiki Team
      If that edit did not work, I think your wiki has no index page. This means your entire wiki is broken, because everything depends on there being a valid index.

      The index is added to this query in vault/core/view/factory/last/vw.php around line 175:
      Code:
      			$arealist[$index['pageid']] = array(
      				'itemid' => $index['pageid'],
      				'itemtypeid' => $index['itemtypeid']
      			);
      It feeds into ::prepare_updates a few lines later. If you remove this line, you will probably see an error like "The node called 'Wiki' could not be found" when you try to go to the wiki.

      Is this a new installation, or an upgrade?
      - If it is a new installation, you should uninstall and re-install, but ONLY if it is a new installation (uninstall will erase your wiki). The install process should generate the index.
      - If this was an upgrade, then you will need a private ticket in order to fix the problem.
      Reply Reply
    4. November 25, 2016 12:41 PM
      pegasus pegasus is offline
      VaultWiki Team
      If your wiki has no index page, did you install VaultWiki as the Lite version with version 4.0.14 or 4.0.15? If so, I believe that this error might have caused your problems: https://www.vaultwiki.org/issues/4804/
      If this was a fresh installation, you can uninstall+reinstall to regenerate the missing index. Otherwise, you will need to wait for the 4.0.16 upgrade, or request the ticket I mentioned above in order to get the index regenerated.
      Reply Reply
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 11:23 AM.
    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.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.