• 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
    • Two new VaultWiki errors -- node/type ID errors

    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: Two new VaultWiki errors -- node/type ID errors

    • Issue Tools
      • View Changes
    1. issueid=6294 February 13, 2022 11:50 AM
      gerryvz gerryvz is offline
      New Member
      Two new VaultWiki errors -- node/type ID errors

      Both received simultaneously.

      First error:

      Code:
          ErrorException: [E_NOTICE] Undefined index: nodeid src/addons/vw/vw/Handler/Alert/Revision.php:40 
      
          Generated by: Henriques Feb 12, 2022 at 9:49 PM 
      
      Stack trace
      
      #0 src/addons/vw/vw/Handler/Alert/Revision.php(40): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/html/5...', 40, Array)
      #1 src/XF/Service/Alert/Pusher.php(56): vw\vw\Handler\Alert\Revision->getTemplateData('reaction', Object(XF\Entity\UserAlert), Object(vw_DM_Revision_Controller_XF2))
      #2 src/XF/Service/PusherTrait.php(187): XF\Service\Alert\Pusher->getNotificationBody()
      #3 src/XF/Repository/UserAlert.php(165): XF\Service\Alert\Pusher->push()
      #4 src/XF/Repository/UserAlert.php(103): XF\Repository\UserAlert->insertAlert(1, 10677, 'Henriques', 'vwrevision', 854, 'reaction', Array, Array)
      #5 src/XF/Reaction/AbstractHandler.php(192): XF\Repository\UserAlert->alertFromUser(Object(SV\ElasticSearchEssentials\XF\Entity\User), Object(SV\ElasticSearchEssentials\XF\Entity\User), 'vwrevision', 854, 'reaction', Array)
      #6 src/XF/Repository/Reaction.php(203): XF\Reaction\AbstractHandler->sendReactionAlert(Object(SV\ElasticSearchEssentials\XF\Entity\User), Object(SV\ElasticSearchEssentials\XF\Entity\User), 854, Object(vw_DM_Revision_Controller_XF2), 1)
      #7 src/XF/Repository/Reaction.php(144): XF\Repository\Reaction->insertReaction(1, 'vwrevision', 854, Object(SV\ElasticSearchEssentials\XF\Entity\User), true, false)
      #8 src/XF/ControllerPlugin/Reaction.php(67): XF\Repository\Reaction->reactToContent(1, 'vwrevision', 854, Object(SV\ElasticSearchEssentials\XF\Entity\User), true)
      #9 src/XF/ControllerPlugin/Reaction.php(21): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(vw_DM_Revision_Controller_XF2), 'https://www.500...', 'https://www.500...')
      #10 src/addons/vw/vw/_core/controller/proxy/like/xf2.php(63): XF\ControllerPlugin\Reaction->actionReact(Object(vw_DM_Revision_Controller_XF2), 'https://www.500...', 'https://www.500...', 'https://www.500...')
      #11 src/addons/vw/vw/_core/controller/proxy/like/base/vw.php(64): vw_Proxy_Like_Controller_XF2->do_like('Revision', 854, 1)
      #12 src/addons/vw/vw/_core/controller/proxy/like/history/vw.php(43): vw_Proxy_Like_base_Controller->do_like()
      #13 src/addons/vw/vw/_core/controller/proxy/like/xf2.php(50): vw_Proxy_Like_History_Controller->do_like()
      #14 src/addons/vw/vw/_core/controller/proxy/like/vw.php(95): vw_Proxy_Like_Controller_XF2->perform_like()
      #15 src/addons/vw/vw/_core/controller/ui/history/base/vw.php(689): vw_Proxy_Like_Controller->like(Object(vw_UI_Stack_Controller), Array, 'Revision', 'oldid')
      #16 src/addons/vw/vw/_core/controller/ui/history/base/vw.php(71): vw_UI_History_Base_Controller->like()
      #17 src/addons/vw/vw/_core/controller/ui/history/page/xf2.php(28): vw_UI_History_Base_Controller->execute()
      #18 src/addons/vw/vw/_core/controller/ui/page/vw.php(548): vw_UI_History_Page_Controller_XF2->execute()
      #19 src/addons/vw/vw/_core/controller/ui/page/vw.php(207): vw_UI_Page_Controller->history()
      #20 src/addons/vw/vw/_core/controller/ui/stack/vw.php(295): vw_UI_Page_Controller->execute()
      #21 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #22 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #23 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controller\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #24 src/XF/Mvc/Dispatcher.php(352): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #25 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #26 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #27 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #28 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
      #29 src/XF.php(517): XF\App->run()
      #30 index.php(20): XF::runApp('XF\\Pub\\App')
      #31 {main}
      
      Request state
      
      array(4) {
        ["url"] => string(83) "/forums/wiki/?title=E60-AMG-Overview&do=history&action=like&oldid=854&reaction_id=1"
        ["referrer"] => string(86) "https://www.500eboard.co/forums/wiki/?title=E60-AMG-Overview&do=history&action=compare"
        ["_GET"] => array(5) {
          ["title"] => string(16) "E60-AMG-Overview"
          ["do"] => string(7) "history"
          ["action"] => string(4) "like"
          ["oldid"] => string(3) "854"
          ["reaction_id"] => string(1) "1"
        }
        ["_POST"] => array(4) {
          ["_xfRequestUri"] => string(62) "/forums/wiki/?title=E60-AMG-Overview&do=history&action=compare"
          ["_xfWithData"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["_xfResponseType"] => string(4) "json"
        }
      }
      SECOND ERROR:

      Code:
          ErrorException: [E_NOTICE] Undefined index: nodetypeid src/addons/vw/vw/Handler/Alert/Revision.php:40 
      
          Generated by: Henriques Feb 12, 2022 at 9:49 PM 
      
      Stack trace
      
      #0 src/addons/vw/vw/Handler/Alert/Revision.php(40): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/www/html/5...', 40, Array)
      #1 src/XF/Service/Alert/Pusher.php(56): vw\vw\Handler\Alert\Revision->getTemplateData('reaction', Object(XF\Entity\UserAlert), Object(vw_DM_Revision_Controller_XF2))
      #2 src/XF/Service/PusherTrait.php(187): XF\Service\Alert\Pusher->getNotificationBody()
      #3 src/XF/Repository/UserAlert.php(165): XF\Service\Alert\Pusher->push()
      #4 src/XF/Repository/UserAlert.php(103): XF\Repository\UserAlert->insertAlert(1, 10677, 'Henriques', 'vwrevision', 854, 'reaction', Array, Array)
      #5 src/XF/Reaction/AbstractHandler.php(192): XF\Repository\UserAlert->alertFromUser(Object(SV\ElasticSearchEssentials\XF\Entity\User), Object(SV\ElasticSearchEssentials\XF\Entity\User), 'vwrevision', 854, 'reaction', Array)
      #6 src/XF/Repository/Reaction.php(203): XF\Reaction\AbstractHandler->sendReactionAlert(Object(SV\ElasticSearchEssentials\XF\Entity\User), Object(SV\ElasticSearchEssentials\XF\Entity\User), 854, Object(vw_DM_Revision_Controller_XF2), 1)
      #7 src/XF/Repository/Reaction.php(144): XF\Repository\Reaction->insertReaction(1, 'vwrevision', 854, Object(SV\ElasticSearchEssentials\XF\Entity\User), true, false)
      #8 src/XF/ControllerPlugin/Reaction.php(67): XF\Repository\Reaction->reactToContent(1, 'vwrevision', 854, Object(SV\ElasticSearchEssentials\XF\Entity\User), true)
      #9 src/XF/ControllerPlugin/Reaction.php(21): XF\ControllerPlugin\Reaction->actionToggleReaction(Object(vw_DM_Revision_Controller_XF2), 'https://www.500...', 'https://www.500...')
      #10 src/addons/vw/vw/_core/controller/proxy/like/xf2.php(63): XF\ControllerPlugin\Reaction->actionReact(Object(vw_DM_Revision_Controller_XF2), 'https://www.500...', 'https://www.500...', 'https://www.500...')
      #11 src/addons/vw/vw/_core/controller/proxy/like/base/vw.php(64): vw_Proxy_Like_Controller_XF2->do_like('Revision', 854, 1)
      #12 src/addons/vw/vw/_core/controller/proxy/like/history/vw.php(43): vw_Proxy_Like_base_Controller->do_like()
      #13 src/addons/vw/vw/_core/controller/proxy/like/xf2.php(50): vw_Proxy_Like_History_Controller->do_like()
      #14 src/addons/vw/vw/_core/controller/proxy/like/vw.php(95): vw_Proxy_Like_Controller_XF2->perform_like()
      #15 src/addons/vw/vw/_core/controller/ui/history/base/vw.php(689): vw_Proxy_Like_Controller->like(Object(vw_UI_Stack_Controller), Array, 'Revision', 'oldid')
      #16 src/addons/vw/vw/_core/controller/ui/history/base/vw.php(71): vw_UI_History_Base_Controller->like()
      #17 src/addons/vw/vw/_core/controller/ui/history/page/xf2.php(28): vw_UI_History_Base_Controller->execute()
      #18 src/addons/vw/vw/_core/controller/ui/page/vw.php(548): vw_UI_History_Page_Controller_XF2->execute()
      #19 src/addons/vw/vw/_core/controller/ui/page/vw.php(207): vw_UI_Page_Controller->history()
      #20 src/addons/vw/vw/_core/controller/ui/stack/vw.php(295): vw_UI_Page_Controller->execute()
      #21 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #22 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #23 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch(Object(vw\vw\Pub\Controller\Wiki\Wiki), 'index', Object(XF\Mvc\ParameterBag))
      #24 src/XF/Mvc/Dispatcher.php(352): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #25 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('\\vw\\vw\\Pub\\Cont...', 'Index', Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #26 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #27 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #28 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
      #29 src/XF.php(517): XF\App->run()
      #30 index.php(20): XF::runApp('XF\\Pub\\App')
      #31 {main}
      
      Request state
      
      array(4) {
        ["url"] => string(83) "/forums/wiki/?title=E60-AMG-Overview&do=history&action=like&oldid=854&reaction_id=1"
        ["referrer"] => string(86) "https://www.500eboard.co/forums/wiki/?title=E60-AMG-Overview&do=history&action=compare"
        ["_GET"] => array(5) {
          ["title"] => string(16) "E60-AMG-Overview"
          ["do"] => string(7) "history"
          ["action"] => string(4) "like"
          ["oldid"] => string(3) "854"
          ["reaction_id"] => string(1) "1"
        }
        ["_POST"] => array(4) {
          ["_xfRequestUri"] => string(62) "/forums/wiki/?title=E60-AMG-Overview&do=history&action=compare"
          ["_xfWithData"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["_xfResponseType"] => string(4) "json"
        }
      }
    Issue Details
    Issue Number 6294
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category General
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.4
    Fixed Version 4.1.5
    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. February 13, 2022 2:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like this occurs when you react to an edit on a page's history tab. Please let me know if this sufficiently resolves the error for you. In src/addons/vw/vw/Handler/Reaction/Revision.php, find:
      Code:
      public function getTemplateData(\XF\Entity\ReactionContent $reaction, Entity $content = null)
      BEFORE it, add:
      Code:
      	protected function getExtraDataForAlertOrFeed(Entity $content, $context)
      	{
      		$extra = parent::getExtraDataForAlertOrFeed($content, $context);
      
      		if ($context == 'alert')
      		{
      			$extra['nodetypeid'] = \vw_Hard_Core::model('Node')->id('Page');
      			$extra['nodeid'] = $content['pageid'];
      		}
      
      		return $extra;
      	}
      Then please try reacting to your content again.
      Reply Reply  
    2. February 21, 2022 9:26 AM
      gerryvz gerryvz is offline
      New Member
      Hello -- this edit seems to have solved the issue. I will let you know if it crops up again, but so far so good. Sorry for the delay, as I was traveling and only just made the fix.
      Reply Reply  
    3. April 18, 2022 4:46 PM
      gerryvz gerryvz is offline
      New Member
      I haven't had this issue anymore, but after inserting the code (and later doing an "overwrite" update to the files to 4.1.4 PL1), I have had this issue every single day, per below. Is there any way to remedy this so that the file is not triggering the "Unexpected Content" flag when the system does a self-check?


      File health check results

      Check completed on 12,981 files. The files listed below have contents different from those originally downloaded.

      If you have edited these files yourself, you may ignore this message, otherwise you should investigate further as this may be evidence of corrupted or altered files.

      VaultWiki
      src/addons/vw/vw/addon.json Unexpected contents
      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 2:36 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.