• 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
    • Error when trying to upload files

    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: Error when trying to upload files

    • Issue Tools
      • View Changes
    1. issueid=5108 June 14, 2017 7:52 PM
      Forsaken Forsaken is offline
      Junior Member
      Error when trying to upload files

      I've been getting this when trying to upload attachments to wiki pages.

      Code:
      ErrorException: Fatal Error: Class 'finfo' not found - vault/core/controller/dm/attach/file/vw.php:404
      Generated By: Seiichi, 1 minute ago
      
      #0 [internal function]: XenForo_Application::handleFatalError()
      #1 {main}
    Issue Details
    Issue Number 5108
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Attachments
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.18
    Fixed Version 4.0.19
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 15, 2017 9:07 AM
      pegasus pegasus is offline
      VaultWiki Team
      Your PHP might have been built with the --disable-fileinfo configure argument. Finfo is included by default starting in PHP 5.3 (the minimum requirement for VaultWiki) unless it was disabled in this way. I recommend removing --disable-fileinfo from your PHP configure line and recompiling PHP.
      Reply Reply  
    2. June 16, 2017 3:26 PM
      Forsaken Forsaken is offline
      Junior Member
      That was the issue, not sure how it got disabled though.

      When trying to attach a new file from the modal form in the editor it is not uploading the image. The "Upload new file" is also redirecting to the main wiki page, and if I try to create a new attachment from that page it throws this error:

      Code:
      Invalid book specified
      Please enter a value for the required field 'itembookid'.
      Reply Reply  
    3. June 17, 2017 1:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      I cannot reproduce the "invalid book" error when creating an attachment from the wiki index scope (using the navbar link or the create new attachment link on the wiki index itself). Additionally, the upload modal in the editor is working correctly for me.

      The error sounds very strange, as books have no relation to attachments, so I would request that you submit a ticket so I can see what's really going on here.
      Reply Reply  
    4. June 17, 2017 5:49 PM
      Forsaken Forsaken is offline
      Junior Member
      Submitted a ticket with details.
      Reply Reply  
    5. June 22, 2017 11:09 AM
      pegasus pegasus is offline
      VaultWiki Team
      Your continued issue is probably due to corrupt pages which are covering your index with a corrupt book.

      This seems to be the case according to your /wiki/Special:AllPages page, which should not have any blank lines.
      To correct this issue, there are a number of tools in the admin panel you can try:
      - Wiki > Maintenance > Rebuild Counters / Caches > Remove Corrupt Content
      - Wiki > Maintenance > URL Conflicts. Find the blank entry in the conflict list, and edit the conflict. Once all conflicts are gone, I don't think you should have a problem.
      Reply Reply  
    6. June 22, 2017 12:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      Marking the original issue in the OP as fixed in the next release. Attachments will be automatically disabled at installation, and it will not be possible to activate them, if PHP was compiled with --disable-fileinfo. The upgrade script for 4.0.19 should update the enabled-state appropriately for existing installations. Additionally, if PHP is recompiled in the future and fileinfo becomes disabled as a result, VaultWiki should now display a more friendly error to administrators when trying to upload an attachment (non-admins will receive a less specific error).
      Reply Reply  
    7. June 22, 2017 4:31 PM
      Forsaken Forsaken is offline
      Junior Member
      Quote Originally Posted by pegasus
      Your continued issue is probably due to corrupt pages which are covering your index with a corrupt book.

      This seems to be the case according to your /wiki/Special:AllPages page, which should not have any blank lines.
      To correct this issue, there are a number of tools in the admin panel you can try:
      - Wiki > Maintenance > Rebuild Counters / Caches > Remove Corrupt Content
      - Wiki > Maintenance > URL Conflicts. Find the blank entry in the conflict list, and edit the conflict. Once all conflicts are gone, I don't think you should have a problem.
      Code:
      Undefined offset: 20
      
      XenForo_Application::handlePhpError() in /home/community/vault/core/view/cp/conflict/vw.php at line 193
      vw_CP_Conflict_View->print_edit_row() in /home/community/vault/core/view/cp/conflict/vw.php at line 56
      vw_CP_Conflict_View->edit() in /home/community/vault/core/controller/cp/conflict/vw.php at line 418
      vw_CP_Conflict_Controller->edit() in /home/community/vault/core/controller/cp/conflict/vw.php at line 52
      vw_CP_Conflict_Controller->execute() in vw/XenForo/ControllerAdmin/Wiki.php at line 119
      vw_XenForo_ControllerAdmin_Wiki->actionIndex() in XenForo/FrontController.php at line 351
      XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
      XenForo_FrontController->run() in /home/community/admin.php at line 13
      There's one URL conflict, and when I try to edit it it errors out with the above error.
      Reply Reply  
    8. June 27, 2017 9:49 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please do not manage corrupt entries while in debug mode. Corrupt entries are likely to contain missing indices due to their nature. In this case, the area that contained the page no longer exists. The only way to "fix" the conflicting page will be to delete it.
      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:01 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.