• 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
    • A couple of undefined index errors during attachment upload: 'attachfileid' & 'extension'

    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: A couple of undefined index errors during attachment upload: 'attachfileid' & 'extension'

    • Issue Tools
      • View Changes
    1. issueid=4994 April 6, 2017 6:54 AM
      ACL ACL is offline
      Regular Member
      A couple of undefined index errors during attachment upload: 'attachfileid' & 'extension'

      These errors appear to be happening when new attachments are uploaded. I'm not sure if cause has anything to do issue 4968. Since I'm not getting undefined errors for 'width' and the line numbers in vault/core/controller/asset/vw.php are different I haven't tried the workaround offered there.

      1.1) ErrorException: Undefined index: attachfileid - vault/core/controller/asset/vw.php:310
      Generated By: [name], Monday at 11:07 AM


      1.2) ErrorException: Undefined index: attachfileid - vault/core/controller/asset/vw.php:312
      Generated By: [name], Monday at 11:07 AM


      1.1 and 1.2 have the same stack trace and request state except for the line number in vault/core/controller/asset/vw.php (included above).
      Code:
      #0 /path/to/vault/core/controller/asset/vw.php(310): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/auschr1/x...', 310, Array)
      #1 /path/to/vault/core/controller/asset/vw.php(56): vw_Asset_Controller->verify_hash('b097f6b8517b0b9...')
      #2 /path/to/library/vw/XenForo/ControllerPublic/Wiki/Asset.php(42): vw_Asset_Controller->resolve()
      #3 /path/to/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki_Asset->actionIndex()
      #4 /path/to/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #5 /path/to/index.php(13): XenForo_FrontController->run()
      #6 {main}

      2) ErrorException: Undefined index: extension - vault/core/controller/asset/vw.php:132
      Generated By: [name], Monday at 11:07 AM


      Code:
      #0 /path/to/vault/core/controller/asset/vw.php(132): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/auschr1/x...', 132, Array)
      #1 /path/to/library/vw/XenForo/ControllerPublic/Wiki/Asset.php(42): vw_Asset_Controller->resolve()
      #2 /path/to/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki_Asset->actionIndex()
      #3 /path/to/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #4 /path/to/index.php(13): XenForo_FrontController->run()
      #5 {main}
      The request state is the same for 1.1, 1.2 and 2.

      Code:
      array(3) {
        ["url"] => string(96) "https://path/to/wiki-asset/?hash=b097f6b8517b0b98ca99cbedd76d7686&x=180"
        ["_GET"] => array(2) {
          ["hash"] => string(32) "b097f6b8517b0b98ca99cbedd76d7686"
          ["x"] => string(3) "180"
        }
        ["_POST"] => array(0) {
        }
      }
    Issue Details
    Issue Number 4994
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Attachments
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.17
    Fixed Version 4.0.18
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags attachments




    1. April 6, 2017 9:52 AM
      pegasus pegasus is offline
      VaultWiki Team
      For 1.1 and 1.2, in vault/core/controller/asset/vw.php, find:
      Code:
      if ($attachfile['attachfileid'] != $this->page['attachfileid'])
      Replace with:
      Code:
      if (!empty($this->page['attachfileid']) AND $attachfile['attachfileid'] != $this->page['attachfileid'])
      For 2, find:
      Code:
      else if ($width AND !$this->asset['use_width'])
      Replace with:
      Code:
      else if ($width AND !empty($this->page['pageid']) AND !$this->asset['use_width'])
      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 10:43 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.