• 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_NOTICE] Trying to access array offset on value of type resource src/addons/vw/vw/_core/view/response/image/xf2.php:21

    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_NOTICE] Trying to access array offset on value of type resource src/addons/vw/vw/_core/view/response/image/xf2.php:21

    • Issue Tools
      • View Changes
    1. issueid=6229 July 13, 2021 5:51 PM
      Forsaken Forsaken is offline
      Junior Member
      ErrorException: [E_NOTICE] Trying to access array offset on value of type resource src/addons/vw/vw/_core/view/response/image/xf2.php:21

      Code:
      #0 src/addons/vw/vw/_core/view/response/image/xf2.php(21): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/var/www/vhosts...', 21, Array)
      #1 src/addons/vw/vw/_core/view/response/image/vw.php(69): vw_Response_Image_View_XF2->stream()
      #2 src/addons/vw/vw/XF/Mvc/View.php(150): vw_Response_Image_View->render()
      #3 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderRaw()
      #4 src/XF/Mvc/Renderer/Raw.php(41): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #5 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Raw->renderView('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #6 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Raw), Object(XF\Mvc\Reply\View))
      #7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Raw), Object(XF\Mvc\Reply\View))
      #8 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'raw')
      #9 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
      #10 src/XF.php(488): XF\App->run()
      #11 index.php(20): XF::runApp('XF\\Pub\\App')
      #12 {main}
      
      array(4) {
        ["url"] => string(38) "/wiki-asset/?pid=10&d=1624256744&x=180"
        ["referrer"] => string(51) "https://adeptgamer.com/wiki/dragons_prophet?do=list"
        ["_GET"] => array(3) {
          ["pid"] => string(2) "10"
          ["d"] => string(10) "1624256744"
          ["x"] => string(3) "180"
        }
        ["_POST"] => array(0) {
        }
      }
      Someone is getting this when attempting to upload images.
    Issue Details
    Issue Number 6229
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.2
    Fixed Version 4.1.3
    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. July 15, 2021 10:59 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This occurs in XenForo 2 when the stream source is not a local file. In src/addons/vw/vw/_core/instance/filesystem/file/xf2.php, find:
      Code:
      return XF::app()->fs()->readStream($this->full);
      Replace with:
      Code:
      		return array(
      			'stream' => XF::app()->fs()->readStream($this->full),
      			'path' => $this->full
      		);
      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:40 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.