• 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
    • Undefined variable: usercount

    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: Undefined variable: usercount

    • Issue Tools
      • View Changes
    1. issueid=5174 July 15, 2017 7:44 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Undefined variable: usercount

      Code:
      ErrorException: Undefined variable: usercount - vault/core/model/plugins/data/vw.php:427 
      Generated By: Phenoxide, Yesterday at 11:37 PM
      
      Stack Trace
      #0 /vault/core/model/plugins/data/vw.php(427): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/...', 427, Array)
      #1 /vault/core/model/plugins/data/vw.php(89): vw_Plugins_Data_Model->do_user_merge_target_required(Array, Array)
      #2 /library/vw/XenForo/Model/User.php(132): vw_Plugins_Data_Model->do_user_merge(Array, Array)
      #3 /library/SV/UserEss/XenForo/Model/User.php(138): vw_XenForo_Model_User->changeContentUser(283794, 'Bear69', 'TheMaster', 350103)
      #4 /library/XenForo/Model/User.php(3080): SV_UserEss_XenForo_Model_User->changeContentUser(283794, 'Bear69', 'TheMaster', 350103)
      #5 /library/XenGallery/Model/User.php(7): XenForo_Model_User->mergeUsers(Array, Array)
      #6 /library/XenResource/Listener/Proxy/ModelUser.php(33): XenGallery_Model_User->mergeUsers(Array, Array)
      #7 /library/SV/UserEss/XenForo/Model/User.php(62): XenResource_Listener_Proxy_ModelUser->mergeUsers(Array, Array)
      #8 /library/SV/UserMergeSearchUpdate/XenForo/Model/User.php(22): SV_UserEss_XenForo_Model_User->mergeUsers(Array, Array)
      #9 /library/XenForo/ControllerAdmin/User.php(646): SV_UserMergeSearchUpdate_XenForo_Model_User->mergeUsers(Array, Array)
      #10 /library/XenForo/FrontController.php(351): XenForo_ControllerAdmin_User->actionMerge()
      #11 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #12 /admin.php(13): XenForo_FrontController->run()
      #13 {main}
      Request State
      array(3) {
        ["url"] => string(67) "https://forum.com/admin.php?users/themaster.283794/merge"
        ["_GET"] => array(1) {
          ["users/themaster_283794/merge"] => string(0) ""
        }
        ["_POST"] => array(3) {
          ["username"] => string(10) "Bear69"
          ["_xfConfirm"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
        }
      }
    Issue Details
    Issue Number 5174
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category User Profiles
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.18
    Fixed Version 4.0.19
    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 17, 2017 1:55 PM
      pegasus pegasus is offline
      VaultWiki Team
      Same reason as: https://www.vaultwiki.org/issues/5175/
      Which is a duplicate of: https://www.vaultwiki.org/issues/5121/
      Reply Reply  
    2. July 22, 2017 3:21 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I dont understand how to fix this. The fix provided in the first ticket is said to result in other issues. You seem to have fixed it on site there.
      Please advise because we get this frequently.
      Reply Reply  
    3. July 23, 2017 1:04 PM
      pegasus pegasus is offline
      VaultWiki Team
      As discussed in that thread, the posted fixes were later said to be updated, and were then confirmed by the other party to be working.

      However, after re-inspection of this error, I see that while it is related (occurs during the merge), this report is not a duplicate of the other issue.

      In vault/core/model/plugins/data/vw.php, find:
      Code:
      while ($user = vw_DB::get()->func()->fetch_array($usercounts))
      Before it, add:
      Code:
      $usercount = vw_DB::get()->func()->num_rows($usercounts);
      This issue resulted in the source user's contribution totals not being added to the target user's totals (counters).
      Reply Reply  
    4. July 23, 2017 5:56 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Thanks!
      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 5:56 PM.
    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.