• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Upload failed due to a configuration error

    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.

    Results 1 to 8 of 8

    Thread: Upload failed due to a configuration error

    • Thread Tools
      • Show Printable Version
    1. November 14, 2017 #1
      SeToY
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      SeToY is offline
      Junior Member
      Join Date
      December 9, 2016
      Posts
      7
      Rep Power
      0

      Upload failed due to a configuration error

      Hello there,

      I just recently moved my site to a new server (IIS10) and am now greeted with "Upload failed due to a configuration error" when uploading attachments to my Wiki: https://gyazo.com/868ec55c2d068b4647056057a0c7cb48

      What am I missing?

      Thank you!
      Reply With Quote Reply With Quote

    2. November 15, 2017 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      You can try the upload using a forum admin account to get more information about what might be wrong in your configuration. The specifics of configuration errors are not given to non-admins.

      The following are possibilities. Without trying the upload yourself, you could investigate them all:
      - The wiki attachment directory does not have the correct file permissions for PHP to read/write uploads to it (maybe wrong chmod or outside open_basedir).
      - Unlikely that you would be allowed to access the uploader in this case, but can also happen if PHP was compiled using --disable-fileinfo in its configure line. PHP would need to be recompiled.
      - The upload is an image file, but it does not contain valid width/height information.
      - The upload is an image file that is larger than thumbnail size, but there was an exception while trying to read/write image metadata. If you are lucky, the exception and related messages might appear in your logs.
      - The partition that contains the wiki attachment directory is full, so it is not possible to write to the file system.

      Starting in 4.0.21, the following would also fall under this blanket error:
      - The wiki attachment directory size already exceeds Options > VaultWiki: Content Types > Maximum Disk Space for Wiki Attachments, or the size would exceed this amount if the new upload is accepted.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. November 15, 2017 #3
      SeToY
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      SeToY is offline
      Junior Member
      Join Date
      December 9, 2016
      Posts
      7
      Rep Power
      0
      Hi,

      Thank you. I get the following error:

      Code:
      Failed to write file. Check disc quotas and permissions for the path: D:\inetpub\wwwroot\domain.com/internal_data/vw_attachments/c/5/13/full.vw
      However, the IIS user (IIS_IUSR) has read/write permissions for the entire internal_data path and the disk quota is not exceeded.

      Code:
      Server Error Log
      Error Info
      ErrorException: Undefined variable: written - vault\core\model\image\metadata\xmp\jpg\vw.php:303
      Generated By: SeToY, 2 minutes ago
      Stack Trace
      #0 D:\inetpub\wwwroot\domain.com\vault\core\model\image\metadata\xmp\jpg\vw.php(303): XenForo_Application::handlePhpError(8, 'Undefined varia...', 'D:\\inetpub\\wwwr...', 303, Array)
      #1 D:\inetpub\wwwroot\domain.com\vault\core\model\image\metadata\xmp\jpg\vw.php(199): vw_Image_MetaData_XMP_JPG_Model->build(65533)
      #2 D:\inetpub\wwwroot\domain.com\vault\core\model\image\metadata\xmp\vw.php(583): vw_Image_MetaData_XMP_JPG_Model->construct()
      #3 D:\inetpub\wwwroot\domain.com\vault\core\model\image\vw.php(1246): vw_Image_MetaData_XMP_Model->update()
      #4 D:\inetpub\wwwroot\domain.com\vault\core\model\image\vw.php(1201): vw_Image_Instance_Model->assert_metadata(Object(vw_Image_Structure_JPEG_Model), Object(vw_Image_Format_JPG_Model), true, 0)
      #5 D:\inetpub\wwwroot\domain.com\vault\core\model\image\vw.php(994): vw_Image_Instance_Model->assert_metadata_in_object(Object(vw_Image_Format_JPG_Model))
      #6 D:\inetpub\wwwroot\domain.com\vault\core\controller\dm\attach\thumb\vw.php(421): vw_Image_Instance_Model->resize(180, 101, 'jpg')
      #7 D:\inetpub\wwwroot\domain.com\vault\core\controller\dm\attach\thumb\vw.php(130): vw_DM_Attach_Thumb_Controller->create_thumbnail('jpg', Object(vw_Image_Format_JPG_Model), 180, 400)
      #8 D:\inetpub\wwwroot\domain.com\library\vw\XenForo\DataWriter.php(512): vw_DM_Attach_Thumb_Controller->pre_save(true)
      #9 D:\inetpub\wwwroot\domain.com\library\XenForo\DataWriter.php(1460): vw_XenForo_DataWriter->_preSave()
      #10 D:\inetpub\wwwroot\domain.com\library\vw\XenForo\DataWriter.php(192): XenForo_DataWriter->preSave()
      #11 D:\inetpub\wwwroot\domain.com\vault\core\controller\dm\xf.php(389): vw_XenForo_DataWriter->preSaveWithReturn()
      #12 D:\inetpub\wwwroot\domain.com\vault\core\controller\dm\attach\file\vw.php(1302): vw_DM_Controller_XF->pre_save()
      #13 D:\inetpub\wwwroot\domain.com\vault\core\controller\dm\attach\file\vw.php(515): vw_DM_Attach_File_Controller->create_thumbnails()
      #14 D:\inetpub\wwwroot\domain.com\library\vw\XenForo\DataWriter.php(505): vw_DM_Attach_File_Controller->post_save_each()
      #15 D:\inetpub\wwwroot\domain.com\library\XenForo\DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #16 D:\inetpub\wwwroot\domain.com\vault\core\controller\dm\xf.php(423): XenForo_DataWriter->save()
      #17 D:\inetpub\wwwroot\domain.com\vault\core\controller\ui\ajax\upload\vw.php(125): vw_DM_Controller_XF->save()
      #18 D:\inetpub\wwwroot\domain.com\library\vw\XenForo\ControllerPublic\Wiki\Ajax.php(50): vw_UI_AJAX_Upload_Controller->execute()
      #19 D:\inetpub\wwwroot\domain.com\library\XenForo\FrontController.php(351): vw_XenForo_ControllerPublic_Wiki_Ajax->actionIndex()
      #20 D:\inetpub\wwwroot\domain.com\library\XenForo\FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #21 D:\inetpub\wwwroot\domain.com\index.php(13): XenForo_FrontController->run()
      #22 {main}
      Request State
      array(3) {
        ["url"] => string(66) "https://domain.com/index.php?wiki-ajax/&c=upload"
        ["_GET"] => array(2) {
          ["wiki-ajax/"] => string(0) ""
          ["c"] => string(6) "upload"
        }
        ["_POST"] => array(5) {
          ["ajax"] => int(1)
          ["_xfToken"] => string(8) "********"
          ["c"] => string(6) "upload"
          ["areaid"] => string(1) "2"
          ["pageid"] => string(0) ""
        }
      }
      I already applied the fix for the "written" variable.
      Last edited by SeToY; November 15, 2017 at 6:27 PM.
      Reply With Quote Reply With Quote

    4. November 16, 2017 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      I suspect this is occurring because of a thumbnail error and it is incorrectly giving a disk quota message. In vault/core/controller/dm/attach/file/vw.php, find:
      Code:
      $this->instance->set_info('canhavethumbs', $canhavethumbs);
      Before it, add:
      Code:
      if (!empty($errors)) { foreach ($errors AS $error) { $this->instance->error('Thumbnail error: ' . $error); }}
      If this is not related to file system permissions, then this change should give you more information.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. November 16, 2017 #5
      SeToY
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      SeToY is offline
      Junior Member
      Join Date
      December 9, 2016
      Posts
      7
      Rep Power
      0
      Code:
      Thumbnail error: vw_attach_thumb_failed
      Reply With Quote Reply With Quote

    6. November 19, 2017 #6
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      vw_attach_thumb_failed means that the image processor was not able to successfully resize the image file.

      # 1 Does this only happen for one image or only some images?

      This might be because the image file is damaged, because there is a bug in the image reader, or it might be because there was a problem preserving the original image metadata, which some laws require. If the metadata cannot be preserved, VaultWiki will reject the image rather than allow an upload that potentially breaks a law.

      #2 Are there any error messages in XenForo's Server Error Log that are created when this upload fails? If there are no clues here, please email the image you are having trouble with to:
      Code:
      support at vaultwiki.org
      So that we can investigate what the image library sees when this particular image is uploaded.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. November 20, 2017 #7
      SeToY
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      SeToY is offline
      Junior Member
      Join Date
      December 9, 2016
      Posts
      7
      Rep Power
      0
      This only happens for a single image so far. I've forwarded it to your support mail.
      Reply With Quote Reply With Quote

    8. November 21, 2017 #8
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      I've received the image and am looking into the issue. If there is a bug, I think it might already be fixed in the next version because the image is accepted when I upload it to the dev board. But if you did not see any messages in your Server Error Logs page, then maybe we can make some improvements to the error reporting in the image module.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Mass upload
      By hollosch in forum VaultWiki Questions
      Replies: 2
      Last Post: February 20, 2015, 10:15 AM
    2. New failed upgrade (to vaultwiki_4-0-0_Beta_4_patch_07-14-2013)
      By Morrus in forum VaultWiki Questions
      Replies: 6
      Last Post: July 30, 2013, 3:16 PM
    3. Missing Upload Images Link
      By organforum in forum VaultWiki Questions
      Replies: 2
      Last Post: November 4, 2012, 2:44 PM
    4. Configuration frustration
      By chris&barb in forum VaultWiki Questions
      Replies: 7
      Last Post: August 10, 2010, 2:48 PM

    Tags for this Thread

    configuration, error, upload

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:48 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.