• 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
    • Files don't upload to the wiki

    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: Files don't upload to the wiki

    • Issue Tools
      • View Changes
    1. issueid=6019 April 10, 2020 8:23 AM
      Kazyyk Kazyyk is offline
      New Member
      Files don't upload to the wiki
      When uploading files as attachments they don't upload.

      Hello,

      When uploading any file type to the wiki as an attachment the file never seems to upload. Attempting to click "Create new page" results in the error message: "The file has not been uploaded yet."

      As soon as the file is selected a broken image icon appears . See image below.



      Unable to proceed further and there's nothing in the server logs.
      I'm running PHP 7.

      Thanks for any assistance.

      EDIT: This may be related to my earlier "attachment rules" bug report.
    Issue Details
    Issue Number 6019
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Attachments
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 RC 2
    Fixed Version (none)
    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 attachments, upload




    1. April 10, 2020 10:37 AM
      pegasus pegasus is offline
      VaultWiki Team
      For debugging attachment problems, please add the following line to your wiki config file, located at src/addons/vw/vw/config.php:
      Code:
      define('VW_DEBUG_ATTACH', 1);
      You will not want to leave this on all the time, since attachment errors might prevent already-uploaded files from rendering. However, the errors can be useful in determining why something is failing to upload.
      Reply Reply  
    2. April 10, 2020 10:45 AM
      Kazyyk Kazyyk is offline
      New Member
      I've adjusted the config file as requested and re-attempted upload.

      I noticed after correcting the rules attachment issue in the other bug report that the broken image icon no longer appeared. Instead, uploading files produces the progress gif. See image.



      However I'm also running into a new possibly related issue where after selecting a file to upload clicking anywhere on the page will re-open the directory selector as if I'm choosing a file to upload. The only fix for this is to smash the Tab key a few times to get it off whatever it's stuck on.

      As for the results of the upload attempt: it fails after a few minutes. See image.



      No server logs were produced in the ACP. Is there somewhere I should be looking for VW specific logs?

      Thanks.
      Reply Reply  
    3. April 10, 2020 11:16 AM
      pegasus pegasus is offline
      VaultWiki Team
      If you are comfortable opening your browser's Developer Tools/Console, it will be helpful to look at the Network activity, specifically an XHR request going to wiki-ajax/?c=upload, and reviewing the response data from that request.

      The browser's Javascript console may also reveal if there are Javascript errors.

      I'm currently unable to reproduce the behavior described, so any new information will be helpful.

      EDIT: I was able to reproduce the file dialog reopening on outer click when using Firefox.
      Reply Reply  
    4. April 10, 2020 11:54 AM
      pegasus pegasus is offline
      VaultWiki Team
      The reopening dialog seems to be related to Firefox reapplying focus to the last-focused input after closing a dialog, even if that input was not actually focused at the time the dialog was opened.

      I stopped encountering this behavior by making the following change to js/vw/vw/upload.js. Find:
      Code:
      this.fake.on("focus", this.onfocus_upload, this);
      Replace with:
      Code:
      this.fake.on("click", this.onfocus_upload, this);
      Reply Reply  
    5. April 10, 2020 12:19 PM
      Kazyyk Kazyyk is offline
      New Member
      Yes, the issue occurred with Firefox. I should've mentioned that, my bad.
      I am currently debugging the issue as you described above and will report back once I've found something.
      Reply Reply  
    6. April 10, 2020 12:34 PM
      Kazyyk Kazyyk is offline
      New Member
      I have replied in a private comment with the results of the debugging.
      Reply Reply  
    7. April 10, 2020 12:43 PM
      pegasus pegasus is offline
      VaultWiki Team
      The default value for X-Frame-Options in XenForo 2 is "SAMEORIGIN". Are you aware of a reason why it is set to "DENY"? That is the culprit.
      Reply Reply  
    8. April 10, 2020 12:46 PM
      Kazyyk Kazyyk is offline
      New Member
      Quote Originally Posted by pegasus
      The default value for X-Frame-Options in XenForo 2 is "SAMEORIGIN". Are you aware of a reason why it is set to "DENY"? That is the culprit.
      No, I'm not sure why it would be set that way. I'm looking into how & where to change it.
      Reply Reply  
    9. This petition for a change to Working as Designed was rejected
      April 10, 2020 12:50 PM
      Kazyyk Kazyyk is offline
      New Member
      Alright, I've figured it out. It was set that way in my nginx configuration, most likely a recommended setting I picked up online somewhere and applied without much thought and it happened to work without issue until now.

      I've tested and everything is working properly now.

      Well, I hope my blunder here at least helps someone else later down the road.
      Thank you for your time again.
       
    10. April 10, 2020 5:00 PM
      pegasus pegasus is offline
      VaultWiki Team
      Marking this as fixed in the next release.

      To add support for X-Frame-Options: DENY, we abandon the old iframe upload technique in favor of HTML5 uploading. Since XF2 uses HTML5 consistently, and since we no longer support old versions of Internet Explorer, this should be a safe change.
      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 2:32 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.