• 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
    • ErrorException: [E_WARNING] Trying to access array offset on value of type bool

    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: ErrorException: [E_WARNING] Trying to access array offset on value of type bool

    • Issue Tools
      • View Changes
    1. issueid=6412 February 6, 2024 6:50 AM
      mazzly mazzly is offline
      Junior Member
      ErrorException: [E_WARNING] Trying to access array offset on value of type bool

      Code:
      ErrorException: [E_WARNING] Trying to access array offset on value of type bool src/addons/vw/vw/_core/controller/proxy/like/page/vw.php:113
      Generated by: X Feb 6, 2024 at 11:31 AM
      Code:
      #0 src/addons/vw/vw/_core/controller/proxy/like/page/vw.php(113): XF::handlePhpError(2, '[E_WARNING] Try...', '/home/nginx/dom...', 113)
      #1 src/addons/vw/vw/_core/controller/proxy/like/page/vw.php(83): vw_Proxy_Like_Page_Controller->like_edit_too(false)
      #2 src/addons/vw/vw/_core/controller/proxy/like/xf2.php(40): vw_Proxy_Like_Page_Controller->do_unlike()
      #3 src/addons/vw/vw/_core/controller/proxy/like/vw.php(95): vw_Proxy_Like_Controller_XF2->perform_like()
      #4 src/addons/vw/vw/_core/controller/ui/page/vw.php(1431): vw_Proxy_Like_Controller->like(Object(vw_UI_Page_Controller), Array, 'Page')
      #5 src/addons/vw/vw/_core/controller/ui/page/vw.php(306): vw_UI_Page_Controller->like()
      #6 src/addons/vw/vw/_core/controller/ui/stack/vw.php(298): vw_UI_Page_Controller->execute()
      #7 src/addons/vw/vw/Pub/Controller/Wiki/Wiki.php(80): vw_UI_Stack_Controller->execute()
      #8 src/addons/vw/vw/Mvc/Dispatcher.php(30): vw\vw\Pub\Controller\Wiki\Wiki->_actionIndex(Object(XF\Mvc\ParameterBag))
      #9 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))
      #10 src/XF/Mvc/Dispatcher.php(352): vw\vw\Pub\Controller\Wiki\AbstractController->actionIndex(Object(XF\Mvc\ParameterBag))
      #11 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)
      #12 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(vw\vw\Pub\Controller\Wiki\Wiki), NULL)
      #13 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #14 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
      #15 src/XF.php(524): XF\App->run()
      #16 index.php(20): XF::runApp('XF\\Pub\\App')
      #17 {main}
      Code:
      array(4) {
        ["url"] => string(56) "/wiki/Image:Foo?do=like&reaction_id=1"
        ["referrer"] => string(58) "https://.../wiki/Image:Foo"
        ["_GET"] => array(3) {
          ["/wiki/Image:Foo"] => string(0) ""
          ["do"] => string(4) "like"
          ["reaction_id"] => string(1) "1"
        }
        ["_POST"] => array(4) {
          ["_xfRequestUri"] => string(34) "/wiki/Image:Foo"
          ["_xfWithData"] => string(1) "1"
          ["_xfToken"] => string(8) "********"
          ["_xfResponseType"] => string(4) "json"
        }
      }
    Issue Details
    Issue Number 6412
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Attachments
    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. February 6, 2024 10:52 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This occurs when liking the main view of a wiki file, when the wiki file and its page content do not share IDs (common).

      In src/addons/vw/vw/_core/controller/proxy/like/page/vw.php, find:
      Code:
      $this->extreme[] = vw_Hard_Core::controller('Fetch/Attach')->to_the_extreme($itemid, $visible);
      Replace with:
      Code:
      			$attachid = $this->proxy->content['attachmentid'];
      			$this->extreme[] = vw_Hard_Core::controller('Fetch/Attach')->to_the_extreme($attachid, $visible);
      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 6:26 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.