• 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
    • [E_WARNING] Trying to access array offset on false

    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: [E_WARNING] Trying to access array offset on false

    • Issue Tools
      • View Changes
    1. issueid=6481 6 Days Ago 1:21 PM
      expanserpb expanserpb is offline
      Junior Member
      [E_WARNING] Trying to access array offset on false

      Can't edit this page and can't quite work out why!


      ErrorException: [E_WARNING] Trying to access array offset on false src/addons/vw/vw/_core/controller/dm/item/chapter/vw.php:289
      Generated by: Velaeri Aug 13, 2025 at 5:35 PM
      Stack trace
      #0 src/addons/vw/vw/_core/controller/dm/item/chapter/vw.php(289): XF::handlePhpError(2, '[E_WARNING] Try...', '/var/www/chroni...', 289)
      #1 src/addons/vw/vw/XF/Entity/EntityBase.php(818): vw_DM_Item_Chapter_Controller->post_save_each()
      #2 src/XF/Mvc/Entity/Entity.php(1324): vw\vw\XF\Entity\EntityBase->_postSave()
      #3 src/addons/vw/vw/_core/controller/dm/xf2.php(434): XF\Mvc\Entity\Entity->save(false)
      #4 src/addons/vw/vw/_core/controller/dm/page/vw.php(2568): vw_DM_Controller_XF2->save()
      #5 src/addons/vw/vw/_core/controller/dm/page/vw.php(2162): vw_DM_Page_Controller->save_nodes()
      #6 src/addons/vw/vw/XF/Entity/EntityBase.php(818): vw_DM_Page_Controller->post_save_each()
      #7 src/XF/Mvc/Entity/Entity.php(1324): vw\vw\XF\Entity\EntityBase->_postSave()
      #8 src/addons/vw/vw/_core/controller/dm/xf2.php(434): XF\Mvc\Entity\Entity->save(false)
      #9 src/addons/vw/vw/_core/controller/ui/edit/vw.php(249): vw_DM_Controller_XF2->save()
      #10 src/addons/vw/vw/_core/controller/ui/page/vw.php(504): vw_UI_Edit_Controller->save(Array)
      #11 src/addons/vw/vw/_core/controller/ui/page/vw.php(168): vw_UI_Page_Controller->save()
      #12 src/addons/vw/vw/_core/controller/ui/stack/vw.php(366): vw_UI_Page_Controller->execute()
      #13 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(163): vw_UI_Stack_Controller->execute()
      #14 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #15 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controlle r\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #16 src/XF/Mvc/Dispatcher.php(362): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #17 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #18 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #19 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #20 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
      #21 src/XF.php(806): XF\App->run()
      #22 index.php(23): XF::runApp('XF\\Pub\\App')
      #23 {main}
      Request state
      array(4) {
      ["url"] => string(31) "/Folklore/Crobhear-Keep?do=save"
      ["referrer"] => string(87) "https://chroniclesrp.net/Folklore/Crobhear-Keep?do=edit&etid=1&ecid=4519&eaid=11&efid=0"
      ["_GET"] => array(2) {
      ["/Folklore/Crobhear-Keep"] => string(0) ""
      ["do"] => string(4) "save"
      }
      ["_POST"] => array(27) {
      ["_xfToken"] => string(8) "********"
      ["templateid"] => string(1) "0"
      ["message_html"] => string(3512) "<p>[template]Infobox_location</p><p>|image=https://chroniclesrp.net/proxy.php?image=https%3A%2F%2Fwallpapers.com%2Fimages%2Fh igh%2Fkaer-morhen-the-witcher-3-zxmd36qto95th7e5-zxmd36qto95th7e5.jpg&amp;hash=4b8f96587eb310b4f2e8442300a 752ed</p><p>|name=[var]PAGENAME[/var]</p><p>|Region=[var]field|region[/var]</p><p>|Type=Noct Yaegir Keep / Holdfast</p><p>|Terrain=Mountainous, cold, sits on a slope just above Crobhear Lake.</p><p>|Climate=Cold, dry, often snowy.</p><p>|Source=Witcher "Kaer Morhen" Castle</p><p>[/template]</p><p>Said to be the birth place of all that embodies the Noct Yaegir, while no one is sure if this is true, it is the oldest Yaegir keep on record still standing. Central to the other major keeps, Crobhear Keep is located in the Spine just west of Crobhear Lake and serves as the nexus point when the Noct Yaegir must meet en masse. Less than a day's walk from the Crobhear Stone.</p><p><br></p><p><br></p><p>Test</p><p><em>Somewhere between the adjacent gulley's of Crobhear Lake and the peaks of the surrounding Spine, the eternal homestead of the Noct Yaegir could be found. Built from stone quarried from the many undulated facets of the mountain range, the Castle had seen better days. Time had taken its toll, mortar and stone replaced over time, producing a motley of colors that shone blue and gray in the early morning sun. It had been called many names over the centuries, though many hunters had simply known it as home.</em></p><p style="text-align: center;"><br></p><p style="text-align: center;">The</p><p><br></p><p>

      Overview

      </p><p>This Keep has multiple levels, including a subterranean laboratory and storage facility. The floors above are dedicated to dining, kitchen, meetings, and strategy. The castle has multiple spiral staircases that ascend the Keep, terminating at the top floor(s), which are dedicated to individual sleeping quarters. Additionally, these staircases give direct access to the Keep walls which are constructed in a way to allow elevated defense.</p><p><br></p><p style="text-align: center;"><strong>Crobhear Keep Dining Hall</strong></p><p style="text-align: center;"><img src="https://i.pinimg.com/736x/65/6b/da/656bda7f62b730410637a61f16f250f3.jpg" alt="" class="fr-fic fr-dii" data-size="736x368" style="width: 605px;"></p><p style="text-align: center;"><span style="font-size: 9px;"><em>Scene from "The Witcher" Netflix TV Series</em></span></p><p><br></p><p><br></p><p>

      History

      </p><p>&nbsp;</p><p>Long, weathered. Crobhear Keep is the oldest and longest standing Noct Yaegir Keep, according to their annals. It is the main nexus point for gathering when the Noct Yaegir must meet en-masse.</p><p><br></p><p style="text-align: center;"><img src="https://i.pinimg.com/originals/11/3f/93/113f93cfc46ad11e942fbd319c8c5a9e.jpg" alt="" class="fr-fic fr-dii" data-size="1024x535" style="width: 701px;"></p><p><br></p><p>

      References

      </p><p>Images are sourced from Witcher materials of the citadel known as Kaer Morhen.</p><p><br></p><p><strong>Roleplays:</strong></p><ul><li data-xf-list-type="ul"><a class=" vw-link-self-hash" rel="noopener" href="https://chroniclesrp.net/threads/celebration-of-winter-noct-yaegirs.4770/" target="_blank">A Celebration of Winter</a></li><li data-xf-list-type="ul"><a class=" vw-link-self-hash" rel="noopener" href="https://chroniclesrp.net/threads/celebration-of-winter-part-2-noct-yaegirs.4875/" target="_blank">A Celebration of Winter Pt 2</a></li></ul><p><br></p><p></p>"
      ["prefixid"] => string(1) "0"
      ["edittitle"] => string(13) "Crobhear Keep"
      ["summary"] => string(100) "The main Keep of the Noct Yaegir, settled in the mountains of the Spine, just west of Crobhear Lake."
      ["reason"] => string(0) ""
      ["query"] => string(0) ""
      ["typelist"] => array(2) {
      [14] => string(1) "0"
      [15] => string(1) "0"
      }
      ["icontype"] => string(0) ""
      ["fonticon"] => string(4) "f016"
      ["fontstyle"] => string(1) "s"
      ["custom_fields"] => array(1) {
      ["region"] => string(2) "15"
      }
      ["untabbed"] => string(1) "0"
      ["autolink"] => string(2) "-2"
      ["notifytype"] => string(2) "-1"
      ["do"] => string(4) "save"
      ["section"] => string(1) "0"
      ["posthash"] => string(73) "93a7fd261cb0f9b4f77a6b58c76a41c8,81ea2f9e1b7b7b922c28b6c c1773488e8f150a45"
      ["poststarttime"] => string(10) "1755102941"
      ["revparentid"] => string(5) "33909"
      ["loggedinuser"] => string(2) "12"
      ["from_draft"] => string(10) "1:4519:0:0"
      ["sbutton"] => string(7) "sbutton"
      ["_xfResponseType"] => string(4) "json"
      ["_xfWithData"] => string(1) "1"
      ["_xfRequestUri"] => string(63) "/Folklore/Crobhear-Keep?do=edit&etid=1&ecid=4519&eaid=11&efid=0"
      }
      }
    Issue Details
    Issue Number 6481
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.8
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. 5 Days Ago 10:36 AM
      pegasus pegasus is offline
      VaultWiki Team
      My best guess is that this page is a chapter in a book, but the book it's in was deleted, and for some reason the chapter record has not also been deleted. So the chapter record is attempting to reference a book that doesn't exist whenever the page gets updated. In most cases, this should not throw an error, but this chapter happens to be the first chapter of the book, which is a special case in the code.

      If the chapter has gotten into this state recently, then there may be an undiscovered issue that would need to be addressed.

      As for being able to bypass the error, you can edit src/addons/vw/vw/_core/controller/dm/item/chapter/vw.php. Find:
      Code:
      if (!$prevchapter AND $books["$new_bookid"]['book_parentlist'] != strval($new_bookid))
      Replace with:
      Code:
      if (!$prevchapter AND !empty($books[$new_bookid]) AND $books["$new_bookid"]['book_parentlist'] != strval($new_bookid))
      Reply Reply  
    2. 1 Day Ago 10:09 AM
      pegasus pegasus is offline
      VaultWiki Team
      I have discovered what has caused the chapter record not to be deleted in the first place. The task that cleans up chapter records is failing because the chapter entity generally assumes that a chapter entity is deleted when it is removed from a book, rather when its book is deleted, with the worst expected scenario being that the page that the chapter refers to was deleted. As a result, it fails to account for the source book not existing when calculating whether the last-update info about the chapter should be moved to another target or removed entirely. This throws a warning and stops the task from completing successfully.

      In src/addons/vw/vw/_core/controller/dm/base/vw.php, find:
      Code:
      $oldconnect = vw_Hard_Core::controller('Fetch')->get($nodetype['accesskey'], $from);
      AFTER it, add:
      Code:
      		if (!$oldconnect)
      		{
      			return true;
      		}
      This will tell it to remove any last-update records for the chapter that were attached to the book, rather than moving them somewhere else. Since the book is deleted, this would simply double-check they were removed as intended.

      Unless you can find the stalled task in vw_defer (good luck), it should automatically retry upon your next upgrade. In the mean time, this change would make sure the task completes for any other book-deletes you might perform.
      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 8:41 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.