• 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
    • Table .vw_usercount' doesn't exist (uninstall error)

    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: Table .vw_usercount' doesn't exist (uninstall error)

    • Issue Tools
      • View Changes
    1. issueid=4682 July 1, 2016 10:21 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Table .vw_usercount' doesn't exist (uninstall error)

      Error Info
      Code:
      Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Table xxx_test4-xf.vw_usercount' doesn't exist - library/Zend/Db/Statement/Mysqli.php:77
      Generated By: Alfa, 1 minute ago
      
      Stack Trace
      #0 /library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('\n\t\t\tSELECT user...')
      #1 /library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '\n\t\t\tSELECT user...')
      #2 /library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('\n\t\t\tSELECT user...')
      #3 /library/Zend/Db/Adapter/Abstract.php(753): Zend_Db_Adapter_Abstract->query('\n\t\t\tSELECT user...', Array)
      #4 /library/XenForo/Model/User.php(446): Zend_Db_Adapter_Abstract->fetchRow('\n\t\t\tSELECT user...', 125716)
      #5 /library/XenForo/Model/User.php(945): XenForo_Model_User->getUserById(125716, Array)
      #6 /library/XenForo/DataWriter/User.php(242): XenForo_Model_User->getFullUserById(125716)
      #7 /library/XenForo/DataWriter.php(563): XenForo_DataWriter_User->_getExistingData(125716)
      #8 /library/XenForo/Deferred/User.php(31): XenForo_DataWriter->setExistingData(125716)
      #9 /library/XenForo/Deferred/Atomic.php(66): XenForo_Deferred_User->execute(Array, Array, 4.7337543964386, '')
      #10 /library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Atomic->execute(Array, Array, 4.7338771820068, '')
      #11 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 4.7338771820068, '', false)
      #12 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 4.7338790893555, '', false)
      #13 /library/XenForo/ViewRenderer/Abstract.php(352): XenForo_Model_Deferred->run(true, 4.7338790893555)
      #14 /library/XenForo/ViewRenderer/HtmlAdmin.php(50): XenForo_ViewRenderer_Abstract::hasManualDeferredToRun()
      #15 /library/XenForo/FrontController.php(617): XenForo_ViewRenderer_HtmlAdmin->renderRedirect(4, 'https://area51....', NULL, Array)
      #16 /library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Redirect), Object(XenForo_ViewRenderer_HtmlAdmin), Array)
      #17 /admin.php(13): XenForo_FrontController->run()
      #18 {main}
      Request State
      array(3) {
        ["url"] => string(72) "https://site.com/admin.php?add-ons/vaultwiki/delete"
        ["_GET"] => array(1) {
          ["add-ons/vaultwiki/delete"] => string(0) ""
        }
        ["_POST"] => array(2) {
          ["_xfConfirm"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
        }
      }
    Issue Details
    Issue Number 4682
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.12
    Fixed Version 4.0.13
    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. July 1, 2016 10:25 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Additional info: I was trying to import from vw3 to xf but the import failed. It failed because of this:https://www.vaultwiki.org/issues/4590/
      (it would be extremely helpful if there was a manual entry for vw3 to xf import btw so that its clear that this step needs to be taken)
      After that happened I could no longer enter the importer. So uninstall was needed, but failed as well.
      Reply Reply
    2. July 1, 2016 12:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like a user upgrade tried to process while you were uninstalling VaultWiki. There is little we can do about cases like this, since most of the time it relies on a race condition where the process sees that VaultWiki is currently installed, but then VaultWiki finishes uninstalling while the process is still running. The safest way to avoid it with any add-on uninstall (not just VaultWiki) is to disable the add-on, wait at least 10 seconds, then run the uninstaller.

      In the particular and rarer case shown in your backtrace, there is opportunity to catch the error, because it actually happened during the same request as the uninstall request, but the possibilities are really endless. I doubt any add-on would start every single method in every class to ask if an uninstall is taking place.

      Still, I can see if we can wrap every query that might reasonably run in such a rare case for the next release. It will be a lot of changes to numerous files.
      Reply Reply
    3. July 6, 2016 11:00 AM
      pegasus pegasus is offline
      VaultWiki Team
      Marking this as fixed in the next release.
      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 9:34 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.