• 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 multiple pages from category fails

    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 multiple pages from category fails

    • Issue Tools
      • View Changes
    1. issueid=6309 September 11, 2022 6:55 AM
      mazzly mazzly is offline
      Junior Member
      Removing multiple pages from category fails

      Reproduce:
      1. Open a category page
      2. Select multiple pages under category
      3. Chose "Remove pages from this category" + Go

      Fails with:
      Code:
      Error: Call to a member function set_existing() on null src/addons/vw/vw/_core/model/modlog/xf2.php:37
      Generated by: mazzly Sep 11, 2022 at 1:51 PM
      Stack trace
      #0 src/addons/vw/vw/_core/controller/ui/imod/action/deletefrom/vw.php(143): vw_ModLog_Model_XF2->mod_add('delete_from', Array, Array)
      #1 src/addons/vw/vw/_core/controller/ui/imod/action/base/vw.php(106): vw_UI_iMod_Action_DeleteFrom_Controller->perform_dodeletefrom()
      #2 src/addons/vw/vw/Handler/InlineMod/Base/AbstractAction.php(183): vw_UI_iMod_Action_base_Controller->process('dodeletefrom')
      #3 src/XF/InlineMod/AbstractAction.php(87): vw\vw\Handler\InlineMod\Base\AbstractAction->applyToEntity(Object(vw_DM_Page_Controller_XF2), Array)
      #4 src/XF/InlineMod/AbstractAction.php(80): XF\InlineMod\AbstractAction->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
      #5 src/XF/Pub/Controller/InlineMod.php(131): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
      #6 src/addons/vw/vw/XF/Pub/Controller/InlineMod.php(41): XF\Pub\Controller\InlineMod->actionPerform()
      #7 src/XF/Mvc/Dispatcher.php(350): vw\vw\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
      #8 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:InlineMod', 'Perform', Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
      #9 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\XF\Pub\Controller\InlineMod), NULL)
      #10 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #11 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
      #12 src/XF.php(488): XF\App->run()
      #13 index.php(20): XF::runApp('XF\\Pub\\App')
      #14 {main}
      Request state
      array(4) {
        ["url"] => string(19) "/inline-mod/perform"
        ["referrer"] => string(51) "https://www..com/wiki/CharacterGroup"
        ["_GET"] => array(1) {
          ["/inline-mod/perform"] => string(0) ""
        }
        ["_POST"] => array(13) {
          ["rootid"] => string(1) "4"
          ["roottype"] => string(2) "19"
          ["url"] => string(51) "https://www..com/wiki/CharacterGroup"
          ["ids"] => array(13) {
            [10000000000007] => string(14) "10000000000007"
            [10000000000015] => string(14) "10000000000015"
            [10000000000016] => string(14) "10000000000016"
            [10000000000043] => string(14) "10000000000043"
            [10000000000057] => string(14) "10000000000057"
            [10000000000080] => string(14) "10000000000080"
            [10000000000083] => string(14) "10000000000083"
            [10000000000459] => string(14) "10000000000459"
            [10000000000967] => string(14) "10000000000967"
            [10000000001227] => string(14) "10000000001227"
            [10000000001594] => string(14) "10000000001594"
            [10000000001685] => string(14) "10000000001685"
            [10000000001895] => string(14) "10000000001895"
          }
          ["type"] => string(6) "vwpage"
          ["action"] => string(10) "deletefrom"
          ["confirmed"] => string(1) "1"
          ["do"] => string(12) "dodeletefrom"
          ["_xfToken"] => string(8) "********"
          ["ct_checkjs"] => string(4) "2022"
          ["_xfRequestUri"] => string(20) "/wiki/CharacterGroup"
          ["_xfWithData"] => string(1) "1"
          ["_xfResponseType"] => string(4) "json"
        }
      }
    Issue Details
    Issue Number 6309
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Categories
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.5
    Fixed Version 4.1.6
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 11, 2022 10:42 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. My reading of the code is that the removal of all the selected pages from the category was actually successful. The only thing that failed was the recording of log entries about what the moderator just finished doing, and also there was probably a scary error message. But when refreshing the browser, the category should no longer have those pages.

      To ensure logging for this action in the future and not have an error message: in src/addons/vw/vw/_core/model/modlog/xf2.php, find:
      Code:
      $dm = vw_Hard_Core::controller('DM')->create($node['accesskey'], 'SILENT');
      Replace with:
      Code:
      $dm = vw_Hard_Core::controller('DM')->create($node['dm'], 'SILENT');
      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 3:04 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.