• 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
    • Removing Moderator Returns 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: Removing Moderator Returns Error

    • Issue Tools
      • View Changes
    1. issueid=3919 August 14, 2014 1:22 PM
      delicateglow delicateglow is offline
      Junior Member
      Removing Moderator Returns Error

      Trying to remove a moderator through wiki CP, I receive this error


      Code:
      Fatal error: Call to a member function add_existing() on a non-object in /var/www/vhosts/site.com/httpdocs/vault/core/model/user/vb3.php on line 309
    Issue Details
    Issue Number 3919
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Moderator Tools
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.0 RC 1
    Fixed Version 4.0.0 RC 2
    Milestone VaultWiki 4.0 Gold
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 14, 2014 1:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      EDIT: The code previously posted here should not be used.
      Reply Reply  
    2. August 14, 2014 1:40 PM
      delicateglow delicateglow is offline
      Junior Member
      Getting this error now
      Code:
      Warning: reset() expects parameter 1 to be array, null given in [path]/vault/core/controller/dm/vb3.php on line 418
      
      Warning: key() expects parameter 1 to be array, null given in [path]/vault/core/controller/dm/vb3.php on line 419
      
      Fatal error: Cannot access empty property in /var/www/vhosts/site.com/httpdocs/vault/core/controller/dm/vb3.php on line 309
      Reply Reply  
    3. August 14, 2014 2:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      Thank you for pointing that out. Due to a design flaw in the vBulletin "multiple" DM, the previous edit I posted should not be used, as I think it will cause incorrect membergroups to be saved when deleting more than 1 moderator at once (like if you delete an area that has 2 moderators on it).

      For the next release, the method will be the same as deleting an entire usergroup in vBulletin, to skip the user DM entirely and just update the raw database fields for the user. This will be as efficient as a multiple-DM, but will be unable to change any related data using plugins when removing the user from the moderator group. I think this should be acceptable, since the behavior is the same when deleting a usergroup -- a situation where vBulletin should have used a multiple-DM themselves if it was designed properly.
      Reply Reply  
    4. August 24, 2014 4:06 PM
      delicateglow delicateglow is offline
      Junior Member
      This error now shows up
      Code:
      [Database error in vBulletin 4.2.2:
      
      Invalid SQL:
      UPDATE `user` SET `membergroupids` =  CASE `userid` 
      		 WHEN 87 THEN '' 
      	 END  WHERE userid = Array;
      
      MySQL Error   : Unknown column 'Array' in 'where clause'
      Error Number  : 1054
      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 6:42 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.