• 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
    • Server error on bulk edit

    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: Server error on bulk edit

    • Issue Tools
      • View Changes
    1. issueid=6344 October 10, 2022 5:52 AM
      mazzly mazzly is offline
      Junior Member
      Server error on bulk edit

      Edit seems to have worked fine, but seeing this in the logs:

      Code:
      ErrorException: [E_NOTICE] Undefined offset: 1 src/addons/vw/vw/_core/model/customfield/vw.php:1805
      Generated by: mazzly Oct 5, 2022 at 11:01 AM
      Stack trace
      #0 src/addons/vw/vw/_core/model/customfield/vw.php(1805): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nginx/dom...', 1805, Array)
      #1 src/addons/vw/vw/_core/controller/cp/massive/vw.php(356): vw_CustomField_Model->transform(Array, Array, Object(Closure))
      #2 src/addons/vw/vw/_core/controller/cp/massive/vw.php(322): vw_CP_Massive_Controller->process_field_replace(Array, Array)
      #3 src/addons/vw/vw/_core/controller/cp/massive/vw.php(471): vw_CP_Massive_Controller->process_entry_changes(Array, Array)
      #4 src/addons/vw/vw/_core/controller/cp/massive/vw.php(743): vw_CP_Massive_Controller->search()
      #5 src/addons/vw/vw/_core/controller/cp/massive/vw.php(51): vw_CP_Massive_Controller->do_search()
      #6 src/addons/vw/vw/Admin/Controller/Wiki.php(108): vw_CP_Massive_Controller->execute('dosearch', 'post')
      #7 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Admin\Controller\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #8 src/addons/vw/vw/Admin/Controller/Wiki.php(51): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Admin\Controller\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #9 src/XF/Mvc/Dispatcher.php(350): vw\vw\Admin\Controller\Wiki->actionIndex(Object(XF\Mvc\ParameterBag))
      #10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('vw\\vw\\Admin\\Con...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Admin\Controller\Wiki), NULL)
      #11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Admin\Controller\Wiki), NULL)
      #12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #13 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
      #14 src/XF.php(488): XF\App->run()
      #15 admin.php(13): XF::runApp('XF\\Admin\\App')
      #16 {main}
      Request state
      array(4) {
        ["url"] => string(24) "/admin.php?wiki/massive/"
        ["referrer"] => string(55) "https://www.com/admin.php?wiki/massive/"
        ["_GET"] => array(1) {
          ["wiki/massive/"] => string(0) ""
        }
        ["_POST"] => array(22) {
          ["panel"] => string(7) "massive"
          ["do"] => string(8) "dosearch"
          ["_xfToken"] => string(8) "********"
          ["ct_checkjs"] => string(1) "0"
          ["action"] => string(7) "replace"
          ["areachoice"] => array(1) {
            [0] => string(1) "0"
          }
          ["prefixchoice"] => array(1) {
            [0] => string(2) "-1"
          }
          ["typechoice"] => array(1) {
            [0] => string(1) "0"
          }
          ["langchoice"] => array(1) {
            [0] => string(1) "0"
          }
          ["book"] => string(0) ""
          ["category"] => string(0) ""
          ["feed"] => string(0) ""
          ["replacetype"] => string(7) "replace"
          ["searchtype"] => string(3) "str"
          ["search"] => string(58) "[template]notcanon[/template][template]notcanon[/template]"
          ["replace"] => string(0) ""
          ["searchcount"] => string(1) "0"
          ["reason"] => string(28) "mass-edit performed by admin"
          ["url"] => string(55) "https://www.com/admin.php?wiki/massive/"
          ["_xfRequestUri"] => string(24) "/admin.php?wiki/massive/"
          ["_xfWithData"] => string(1) "1"
          ["_xfResponseType"] => string(4) "json"
        }
      }
    Issue Details
    Issue Number 6344
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 4 - Warnings / Script Errors
    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. October 11, 2022 2:56 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. I believe this can happen if there is a page with some custom field values, but a new text-based custom field was added since the last time it was edited, and the admin is running a mass-edit that affects that page.

      In src/addons/vw/vw/_model/customfield/vw.php, find:
      Code:
      $values["$fieldid"] = $transform($values["$fieldid"], $page, $changed);
      BEFORE it, add:
      Code:
      							if (!isset($values["$fieldid"]))
      							{
      								$values["$fieldid"] = '';
      							}
      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:36 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.