• 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
    • Unable to Delete Users / Create Super Moderators

    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: Unable to Delete Users / Create Super Moderators

    • Issue Tools
      • View Changes
    1. issueid=5911 October 26, 2019 11:03 PM
      HateMailPersonified HateMailPersonified is offline
      New Member
      Unable to Delete Users / Create Super Moderators
      VaultWiki will not allow Super Users to be created, or for Users to be deleted.

      First, Vaultwiki will not allos us to add people as super moderators -

      Code:
      ErrorException: [E_WARNING] Declaration of vw_DM_Moderator_Controller_XF2::delete_more($moderatorids) should be compatible with vw\vw\XF\Entity\EntityBase::delete_more($ids, $contentids = NULL) in src/addons/vw/vw/_core/controller/dm/moderator/xf2.php at line 15
      XF::handlePhpError() in src/addons/vw/vw/_core/controller/dm/moderator/xf2.php at line 15
      include() in src/addons/vw/vw/_hard/core.php at line 283
      vw_Hard_Core::autoload()
      spl_autoload_call()
      class_exists() in src/addons/vw/vw/_core/controller/dm/vw.php at line 90
      vw_DM_Controller->create() in src/addons/vw/vw/XF/Entity/Moderator.php at line 30
      vw\vw\XF\Entity\Moderator->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1208
      XF\Mvc\Entity\Entity->save() in src/XF/Mvc/FormAction.php at line 69
      XF\Mvc\FormAction->XF\Mvc\{closure}() in src/XF/Mvc/FormAction.php at line 187
      XF\Mvc\FormAction->run() in src/XF/Admin/Controller/Moderator.php at line 268
      XF\Admin\Controller\Moderator->actionSave() in src/XF/Mvc/Dispatcher.php at line 321
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
      XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2178
      XF\App->run() in src/XF.php at line 390
      XF::runApp() in admin.php at line 13
      Second, VaultWiki will also not allow us to delete users. This is done via the admin dashboard, and returns the following error -

      Code:
      ErrorException: Fatal Error: Class 'vw_Plugins_Data_Model_XF0' not found src/addons/vw/vw/_core/model/plugins/data/xf2.php:15
    Issue Details
    Issue Number 5911
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Permissions / Security
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 Beta 4
    Fixed Version 4.1.0 Beta 4
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 1
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags error, xenforo




    1. October 27, 2019 12:38 AM
      ACL ACL is offline
      Regular Member
      Nice catch. I also cannot add a new super moderator to my XF2.1 test site with VW4.1.0 Beta 4 b003. And I was planning on (finally) migrating my real site over to XF2.1 in the next 48 hours... .

      There are some additional entries in the server error log around the same time:
      XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: 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 '' at line 1 src/XF/Db/AbstractStatement.php:217

      Code:
      DELETE FROM `vw_permission` WHERE applytypeid = 0 AND applyid = 
      ------------
      
      #0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1064, '42000')
      #1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1064, '42000')
      #2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
      #3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
      #4 src/addons/vw/vw/_core/controller/db/xf2.php(117): XF\Db\AbstractAdapter->query('DELETE FROM `vw...')
      #5 src/addons/vw/vw/_core/model/db/mysql/vw.php(1330): vw_DB_Controller_XF2->query_write('DELETE FROM `vw...')
      #6 src/addons/vw/vw/_core/model/db/mysql/vw.php(366): vw_DB_MySQL_Model->shutdown_or_run('DELETE FROM `vw...', false)
      #7 src/addons/vw/vw/_core/model/plugins/data/vw.php(818): vw_DB_MySQL_Model->delete(Array)
      #8 src/addons/vw/vw/XF/Service/User/ContentChange.php(77): vw_Plugins_Data_Model->do_user_cache(Array, Array)
      #9 src/XF/MultiPartRunnerTrait.php(48): vw\vw\XF\Service\User\ContentChange->stepCleanupWikiData(NULL, G)
      #10 src/XF/Service/User/ContentChange.php(198): XF\Service\User\ContentChange->runLoop(G)
      #11 src/XF/Job/UserRenameCleanUp.php(34): XF\Service\User\ContentChange->apply(G)
      #12 src/XF/Job/Atomic.php(38): XF\Job\UserRenameCleanUp->run(G)
      #13 src/XF/Job/Manager.php(253): XF\Job\Atomic->run(G)
      #14 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
      #15 src/XF/Job/Manager.php(111): XF\Job\Manager->runJobEntry(Array, G)
      #16 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
      #17 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
      #18 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
      #19 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
      #20 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #21 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
      #22 src/XF.php(390): XF\App->run()
      #23 admin.php(13): XF::runApp('XF\\Admin\\App')
      #24 {main}
      ErrorException: Template error: reset() expects parameter 1 to be array, null given src/XF/Moderator/AbstractModerator.php:47

      Code:
      #0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'reset() expects...', '/path/to/forum/...', 47, Array)
      #1 src/XF/Moderator/AbstractModerator.php(47): reset(NULL)
      #2 src/XF/Entity/ModeratorContent.php(36): XF\Moderator\AbstractModerator->getContentTitle(0)
      #3 [internal function]: XF\Entity\ModeratorContent->getContentTitle()
      #4 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
      #5 internal_data/code_cache/templates/l1/s0/admin/moderator_list.php(111): XF\Template\Templater->method(Object(vw\vw\XF\Entity\ModeratorContent), 'getContentTitle', Array)
      #6 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(vw\vw\XF\Template\Templater), Array)
      #7 src/addons/vw/vw/XF/Template/Templater.php(789): XF\Template\Templater->renderTemplate('moderator_list', Array, true)
      #8 src/XF/Template/Template.php(24): vw\vw\XF\Template\Templater->renderTemplate('admin:moderator...', Array)
      #9 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
      #10 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Moderator\\Li...', 'admin:moderator...', Array)
      #11 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #12 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #13 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
      #14 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
      #15 src/XF.php(390): XF\App->run()
      #16 admin.php(13): XF::runApp('XF\\Admin\\App')
      #17 {main}
      -----

      2) I don't experience the error during user removal.
      Reply Reply  
    2. October 27, 2019 1:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      Class not found already fixed in build 003.
      Declaration error fixed in the new build.
      Database error when renaming a user in XF2 fixed in the new build.
      Template error when viewing the moderator list, when the moderator list contains a wiki moderator of an area that no longer exists, is fixed in the new build. Fixed also in the new build that deleting an area does not remove/unassign moderators from that area.
      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:30 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.