• 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
    • Error encountered when rebuilding Elastic Search Index

    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: Error encountered when rebuilding Elastic Search Index

    • Issue Tools
      • View Changes
    1. issueid=6378 June 11, 2023 5:49 PM
      tommythejoat tommythejoat is offline
      Regular Member
      Error encountered when rebuilding Elastic Search Index
      Trying to access array offset on value of type bool

      The following error report was generated by XenForo during the time I was rebuilding the search index.

      Server error log
      ErrorException: [E_NOTICE] Trying to access array offset on value of type bool src/addons/vw/vw/Handler/Search/Data/Comment.php:52
      Generated by: Tom McIntyre Jun 11, 2023 at 9:37 AM
      Stack trace
      #0 src/addons/vw/vw/Handler/Search/Data/Comment.php(52): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/xfnawcc/p...', 52, Array)
      #1 src/XF/Search/Search.php(39): vw\vw\Handler\Search\Data\Comment->getIndexData(Object(vw_DM_Comment_Controller_XF2))
      #2 src/addons/SV/SearchImprovements/XF/Search/SearchPatch.php(119): XF\Search\Search->index('vwcomment', Object(vw_DM_Comment_Controller_XF2), true)
      #3 src/addons/SV/ElasticSearchEssentials/XF/Search/Search.php(83): SV\SearchImprovements\XF\Search\SearchPatch->index('vwcomment', Object(vw_DM_Comment_Controller_XF2), true)
      #4 src/XF/Search/Search.php(61): SV\ElasticSearchEssentials\XF\Search\Search->index('vwcomment', Object(vw_DM_Comment_Controller_XF2))
      #5 src/XF/Search/Search.php(87): XF\Search\Search->indexEntities('vwcomment', Object(XF\Mvc\Entity\ArrayCollection))
      #6 src/XF/Job/SearchRebuild.php(66): XF\Search\Search->indexRange('vwcomment', 1007, '500')
      #7 src/XF/Job/Manager.php(260): XF\Job\SearchRebuild->run(8)
      #8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
      #9 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
      #10 src/XF/Admin/Controller/Tools.php(122): XF\Job\Manager->runByIds(Array, 8)
      #11 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
      #12 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
      #13 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
      #14 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #15 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
      #16 src/XF.php(524): XF\App->run()
      #17 admin.php(13): XF::runApp('XF\\Admin\\App')
      #18 {main}
      Request state
      array(4) {
      ["url"] => string(24) "/admin.php?tools/run-job"
      ["referrer"] => string(44) "https://mb.nawcc.org/admin.php?tools/run-job"
      ["_GET"] => array(1) {
      ["tools/run-job"] => string(0) ""
      }
      ["_POST"] => array(3) {
      ["_xfRedirect"] => string(54) "https://mb.nawcc.org/admin.php?tools/rebuild&success=1"
      ["_xfToken"] => string(8) "********"
      ["only_ids"] => string(6) "591763"
      }
      }
    Issue Details
    Issue Number 6378
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Search
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.7
    Fixed Version 4.1.8
    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. June 11, 2023 11:00 PM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks. It looks like the contents of the search index should still build as expected, even with this message. This occurs if the index build process tries to index a comment that is part of a discussion that is currently in the process of being deleted. As a result, some data that is expected to be added to the index is missing because that part was already deleted. Normally, this would be a race condition where things are just happening simultaneously.

      We can add some checks in the future so it stops throwing an error in this special case, although the result should be the same that the being-deleted comment isn't added to the index.
      Reply Reply  
    2. June 11, 2023 11:56 PM
      tommythejoat tommythejoat is offline
      Regular Member
      I will just delete the errors for now.

      It generated that error message 120 times.
      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 1:28 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.