• 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
    • [4.1.0 RC1 Build 2] Three New / Related? php Errors - XF 2.1.7 / php 7.4

    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: [4.1.0 RC1 Build 2] Three New / Related? php Errors - XF 2.1.7 / php 7.4

    • Issue Tools
      • View Changes
    1. issueid=5967 February 23, 2020 7:55 AM
      gerryvz gerryvz is offline
      New Member
      [4.1.0 RC1 Build 2] Three New / Related? php Errors - XF 2.1.7 / php 7.4
      FYI - Three new and seemingly related errors received

      ERROR #1



      ErrorException: [E_NOTICE] Trying to access array offset on value of type bool src/addons/vw/vw/_core/view/factory/area/vw.php:46

      Generated by: Motormerve Feb 23, 2020 at 5:09 AM

      Stack trace

      #0 src/addons/vw/vw/_core/view/factory/area/vw.php(46): XF::handlePhpError()
      #1 src/addons/vw/vw/_core/view/ui/index/vw.php(55): vw_Factory_Area_View->areabit()
      #2 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Index_View->view()
      #3 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #4 src/addons/vw/vw/_core/view/reply/stack/vw.php(44): vw_Reply_base_View->render()
      #5 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render()
      #6 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #7 src/XF/Mvc/Renderer/Html.php(45): XF\Mvc\Renderer\AbstractRenderer->renderViewObject()
      #8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView()
      #9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView()
      #10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply()
      #11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
      #12 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #13 src/XF.php(391): XF\App->run()
      #14 index.php(20): XF::runApp()
      #15 {main}

      Request state

      array(4) {
      ["url"] => string(13) "/forums/wiki/"
      ["referrer"] => string(38) "https://www.500eboard.co/forums/media/"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
      }



      ERROR #2



      ErrorException: [E_NOTICE] Trying to access array offset on value of type bool src/addons/vw/vw/_core/controller/ui/discussion/vw.php:2252

      Generated by: nmal Feb 22, 2020 at 6:50 PM

      Stack trace

      #0 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(2252): XF::handlePhpError()
      #1 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(2281): vw_UI_Discussion_Controller->get_discussion_context()
      #2 src/addons/vw/vw/_core/controller/ui/discussion/vw.php(188): vw_UI_Discussion_Controller->view()
      #3 src/addons/vw/vw/_core/controller/ui/discussion/xf0.php(61): vw_UI_Discussion_Controller->execute()
      #4 src/addons/vw/vw/_core/controller/ui/discussion/xf2.php(28): vw_UI_Discussion_Controller_XF0->execute()
      #5 src/addons/vw/vw/_core/controller/ui/page/vw.php(889): vw_UI_Discussion_Controller_XF2->execute()
      #6 src/addons/vw/vw/_core/controller/ui/page/vw.php(971): vw_UI_Page_Controller->do_comments()
      #7 src/addons/vw/vw/_core/controller/ui/stack/vw.php(421): vw_UI_Page_Controller->view()
      #8 src/addons/vw/vw/_core/controller/ui/stack/vw.php(319): vw_UI_Stack_Controller->view()
      #9 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #10 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex()
      #11 src/addons/vw/vw/Pub/Controller/Wiki/AbstractController.php(26): vw\vw\Mvc\Dispatcher::dispatch()
      #12 src/XF/Mvc/Dispatcher.php(350): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex()
      #13 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
      #14 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
      #15 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
      #16 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #17 src/XF.php(391): XF\App->run()
      #18 index.php(20): XF::runApp()
      #19 {main}

      Request state

      array(4) {
      ["url"] => string(34) "/forums/wiki/?title=500E-E500-Wiki"
      ["referrer"] => string(37) "https://www.500eboard.co/forums/wiki/"
      ["_GET"] => array(1) {
      ["title"] => string(14) "500E-E500-Wiki"
      }
      ["_POST"] => array(0) {
      }
      }



      ERROR #3



      ErrorException: [E_NOTICE] Trying to access array offset on value of type bool src/addons/vw/vw/_core/view/factory/last/vw.php:455

      Generated by: TimL Feb 22, 2020 at 8:53 AM

      Stack trace

      #0 src/addons/vw/vw/_core/view/factory/last/vw.php(455): XF::handlePhpError()
      #1 src/addons/vw/vw/_core/view/factory/listitem/discussion/vw.php(62): vw_Factory_Last_View->get_lastupdatebits()
      #2 src/addons/vw/vw/_core/view/ui/discussion/vw.php(392): vw_Factory_ListItem_Discussion_View->listbit()
      #3 src/addons/vw/vw/_core/view/ui/discussion/vw.php(364): vw_UI_Discussion_View->talk_row()
      #4 src/addons/vw/vw/_core/view/ui/discussion/vw.php(828): vw_UI_Discussion_View->get_talk_list()
      #5 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Discussion_View->index()
      #6 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #7 src/addons/vw/vw/_core/view/ui/page/vw.php(288): vw_Reply_base_View->render()
      #8 src/addons/vw/vw/_core/view/ui/page/vw.php(114): vw_UI_Page_View->get_comments()
      #9 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Page_View->view()
      #10 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #11 src/addons/vw/vw/_core/view/reply/stack/vw.php(44): vw_Reply_base_View->render()
      #12 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render()
      #13 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #14 src/XF/Mvc/Renderer/Html.php(45): XF\Mvc\Renderer\AbstractRenderer->renderViewObject()
      #15 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView()
      #16 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView()
      #17 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply()
      #18 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
      #19 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #20 src/XF.php(391): XF\App->run()
      #21 index.php(20): XF::runApp()
      #22 {main}

      Request state

      array(4) {
      ["url"] => string(36) "/forums/wiki/?title=500E-Paint-Codes"
      ["referrer"] => bool(false)
      ["_GET"] => array(1) {
      ["title"] => string(16) "500E-Paint-Codes"
      }
      ["_POST"] => array(0) {
      }
      }
    Issue Details
    Issue Number 5967
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.0 RC 1
    Fixed Version 4.1.0 RC 1
    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 23, 2020 12:45 PM
      pegasus pegasus is offline
      VaultWiki Team
      1) This occurs in PHP 7.4 if no areas have been modified in the Area Manager since the last time an area was deleted, due to the area cache not being rebuilt after areas being deleted. This is fixed in the next build by causing area deletes to rebuild the cache, but we also account for damaged caches and race conditions with the following change. In src/addons/vw/vw/_core/view/factory/area/vw.php, find:
      Code:
      if (!$area['displayorder'] OR !vw_Hard_Core::model('UI')->check('can_main_tab', $area))
      Replace with:
      Code:
      if (!$area OR !$area['displayorder'] OR !vw_Hard_Core::model('UI')->check('can_main_tab', $area))
      2) This occurs in PHP 7.4 when attempting to view the comments tab for a page that has no comments yet. In src/addons/vw/vw/_core/controller/ui/discussion/vw.php, find:
      Code:
      $discussionid = $itemcheck['discussionid'];
      Replace with:
      Code:
      if ($itemcheck) $discussionid = $itemcheck['discussionid'];
      3) This occurs when the last-update field for a discussion is not empty but contains a corrupt value. Since it is not clear why your value is corrupt, I don't recommend fixing the error at this time. Instead, attempt to fix the affected last-update field by adding a new comment to that discussion.
      Reply Reply  
    2. February 23, 2020 6:54 PM
      gerryvz gerryvz is offline
      New Member
      For your code replacement in number 2, the file (at least as I have it installed in 4.1.0 RC1 Build 2) does not have that code string.
      Reply Reply  
    3. February 24, 2020 11:29 AM
      gerryvz gerryvz is offline
      New Member
      Finally found the string -- for some reason the search function didn't want to work, so I had to find it manually.

      Will follow up and let you know if further errors are returned.
      Reply Reply  
    4. February 25, 2020 10:04 AM
      gerryvz gerryvz is offline
      New Member
      I think you can call this one fixed -- I have not recorded any further errors. Thanks sir !!
      Reply Reply  
    5. February 28, 2020 10:43 AM
      gerryvz gerryvz is offline
      New Member
      For Error #3 above, I was able to reproduce it myself, after having another error come in this morning identical to it.

      It happens when I try to post a discussion reply to the Wiki entry. The Wiki is showing six (6) pages of discussion posts, but will ONLY display the first of the six pages. When I try to page to the second...third....sixth pages, it shoots me out of the thread to the main Wiki category area.

      I was able to post a comment to the Wiki entry (from the form at the bottom of the first page of discussion posts), but am not actually able to view what I posted. My main home screen does indicate that a post was made by me, so it is updated.

      Doing this threw the following two errors:

      ERROR #1



      ErrorException: [E_NOTICE] Trying to access array offset on value of type bool src/addons/vw/vw/_core/view/factory/last/vw.php:455

      Generated by: gerryvz Feb 28, 2020 at 10:37 AM

      Stack trace

      #0 src/addons/vw/vw/_core/view/factory/last/vw.php(455): XF::handlePhpError()
      #1 src/addons/vw/vw/_core/view/factory/listitem/discussion/vw.php(62): vw_Factory_Last_View->get_lastupdatebits()
      #2 src/addons/vw/vw/_core/view/ui/discussion/vw.php(392): vw_Factory_ListItem_Discussion_View->listbit()
      #3 src/addons/vw/vw/_core/view/ui/discussion/vw.php(364): vw_UI_Discussion_View->talk_row()
      #4 src/addons/vw/vw/_core/view/ui/discussion/vw.php(828): vw_UI_Discussion_View->get_talk_list()
      #5 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Discussion_View->index()
      #6 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #7 src/addons/vw/vw/_core/view/ui/page/vw.php(288): vw_Reply_base_View->render()
      #8 src/addons/vw/vw/_core/view/ui/page/vw.php(114): vw_UI_Page_View->get_comments()
      #9 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Page_View->view()
      #10 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type()
      #11 src/addons/vw/vw/_core/view/reply/stack/vw.php(44): vw_Reply_base_View->render()
      #12 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render()
      #13 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #14 src/XF/Mvc/Renderer/Html.php(45): XF\Mvc\Renderer\AbstractRenderer->renderViewObject()
      #15 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView()
      #16 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView()
      #17 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply()
      #18 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
      #19 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
      #20 src/XF.php(391): XF\App->run()
      #21 index.php(20): XF::runApp()
      #22 {main}

      Request state

      array(4) {
      ["url"] => string(36) "/forums/wiki/?title=500E-Paint-Codes"
      ["referrer"] => string(58) "https://www.500eboard.co/forums/wiki/?title=500E-E500-Wiki"
      ["_GET"] => array(1) {
      ["title"] => string(16) "500E-Paint-Codes"
      }
      ["_POST"] => array(0) {
      }
      }



      ERROR #2



      ErrorException: [E_NOTICE] Undefined index: pageid src/addons/vw/vw/_core/model/cron/deferred/digest/vw.php:505

      Generated by: Unknown account Feb 28, 2020 at 10:36 AM

      Stack trace

      #0 src/addons/vw/vw/_core/model/cron/deferred/digest/vw.php(505): XF::handlePhpError()
      #1 src/addons/vw/vw/_core/model/cron/deferred/digest/vw.php(553): vw_Cron_Deferred_Digest_Model->get_skip_prefix()
      #2 src/addons/vw/vw/_core/model/cron/deferred/digest/vw.php(373): vw_Cron_Deferred_Digest_Model->skip_entry()
      #3 src/addons/vw/vw/_core/model/cron/deferred/digest/vw.php(278): vw_Cron_Deferred_Digest_Model->construct_message_body()
      #4 src/addons/vw/vw/_core/model/cron/deferred/chainsubalert/vw.php(351): vw_Cron_Deferred_Digest_Model->process_subscription()
      #5 src/addons/vw/vw/_core/model/cron/deferred/chainsubalert/vw.php(219): vw_Cron_Deferred_ChainSubAlert_Model->process_subscription()
      #6 src/addons/vw/vw/_core/model/cron/deferred/vw.php(64): vw_Cron_Deferred_ChainSubAlert_Model->run()
      #7 src/addons/vw/vw/Handler/Job/Defer.php(30): vw_Cron_Deferred_Model->exec()
      #8 src/XF/Job/Manager.php(253): vw\vw\Handler\Job\Defer->run()
      #9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal()
      #10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry()
      #11 job.php(42): XF\Job\Manager->runQueue()
      #12 {main}

      Request state

      array(4) {
      ["url"] => string(15) "/forums/job.php"
      ["referrer"] => string(37) "https://www.500eboard.co/forums/wiki/"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
      }
      Reply Reply  
    6. February 28, 2020 3:25 PM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks for the new information. I was finally able to reproduce it on my test board.

      #3 occurs when you create a new discussion and post the first comment at the same time. In this case, any place that tries to show that discussion in a list will throw this error when rendering the last-update info for that discussion. This is due to the content being created at the same time as its last-update, which is a special case where we want to use creation-info instead of last-update, so we have a problem where we are trying to skip something that we are already rendering.

      In src/addons/vw/vw/_core/view/factory/last/vw.php, find:
      Code:
      if (!empty($lastupdate['iteminfo']))
      Replace with:
      Code:
      if ($lasttypeid AND !empty($lastupdate['iteminfo']))
      For that final error, edit src/addons/vw/vw/_core/model/cron/deferred/digest/vw.php, find:
      Code:
      		else if (
      			// we are subscribed to a page
      			$pagetypeid == $subscription['nodetypeid'] AND
      			// the content is directly beneath the page
      
      			$subscription['nodeid'] == $item['pageid'] AND
      			// if the content is a comment, it's in the main discussion
      			($itemtypeid != $commenttypeid OR empty($item['talktype']))
      		)
      		{
      			return 'item';
      		}
      Replace with:
      Code:
      		else if (
      			// the content is a comment in the main discussion
      			$itemtypeid == $commenttypeid AND
      			empty($item['talktype']) AND
      			(
      				// we are subscribed to that content
      				(
      					isset($item['contentid']) AND
      					$item['contentid'] == $subscription['nodeid'] AND
      					$item['contenttypeid'] == $subscription['nodetypeid']
      				) OR
      				// we are subscribed to that page
      				(
      					$pagetypeid == $subscription['nodetypeid'] AND
      					isset($item['pageid']) AND
      					$subscription['nodeid'] == $item['pageid']
      				)
      			)
      		)
      		{
      			return 'item';
      		}
      		else if (
      			// we are subscribed to a page
      			$pagetypeid == $subscription['nodetypeid'] AND
      			isset($item['pageid']) AND
      			$subscription['nodeid'] == $item['pageid'] AND
      			$itemtypeid != $commenttypeid
      		)
      		{
      			return 'item';
      		}
      Reply Reply  
    7. February 29, 2020 10:47 AM
      gerryvz gerryvz is offline
      New Member
      Things seem to have been resolved since updating the code last night.

      One issue remains, though -- I am not able to page through the comments on the Wiki thread. I can see the first page, but there are a total of six pages of comments, and I can't scroll to successive pages. When I do (click on a number or next), it still kicks me out to the main Wiki area page.
      Reply Reply  
    8. February 29, 2020 4:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like this occurs if the main discussion of a wiki page is set to display underneath the page, instead of a separate tab. In this case, the page-nav for the main discussion has invalid links, due to XF 2.x not knowing how to handle links with hashes (the hash to jump to the comments).

      In src/addons/vw/vw/XF/Mvc/Router.php, find:
      Code:
      return parent::buildLink($link, $data, $parameters);
      Replace with:
      Code:
      		$hash = false;
      
      		if (!is_array($link))
      		{
      			$hashly = explode('#', $link, 2);
      
      			if (isset($hashly[1]))
      			{
      				$link = $hashly[0];
      				$hash = $hashly[1];
      			}
      		}
      
      		$built = parent::buildLink($link, $data, $parameters);
      
      		if ($hash)
      		{
      			$built .= '#' . $hash;
      		}
      
      		return $built;
      Reply Reply  
    9. March 1, 2020 7:57 PM
      gerryvz gerryvz is offline
      New Member
      That last fix solved the issue, and now all pages of discussion posts can be viewed. Thanks much.
      Reply Reply  
    10. March 3, 2020 7:04 AM
      gerryvz gerryvz is offline
      New Member
      Checking back: All good, no further errors.
      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:11 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.