• 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 3.x Series
    • Bug
    • data loss: .attach files are not created on designated filepath when being imported from mediawiki

    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: data loss: .attach files are not created on designated filepath when being imported from mediawiki

    • Issue Tools
      • View Changes
    1. issueid=2478 October 2, 2011 12:18 PM
      Lord Doys Lord Doys is offline
      Junior Member
      data loss: .attach files are not created on designated filepath when being imported from mediawiki
      data loss: .attach files are not created on designated filepath when being imported from mediawiki

      I am using a local filepath for my downloads and attachments instead of the database (due to performance issues)

      When trying to add an image manually to the wiki, the .attach file is created. (works perfectly!)

      BUT when importing them from media wiki.. all the entries are made in the attachment table.. but no .attach file is created in the given directory

      thus getting the error:
      Code:
      Warning: fopen(C:/xampp/htdocs/forums/downloads/3/409.attach) [function.fopen]: failed to open stream: No such file or directory in [path]\attachment.php on line 252
      i have double checked all the path setting and all seems ok.

      attachment path:
      Code:
      C:/xampp/htdocs/forums/downloads
      mediawiki.php in vault/import/config
      Code:
      # full URL path to your wiki image directory, including trailing slash
      $vault->config['imgpath']		= 'http://localhost/forums/brwiki/images/';
      gives a nice:
      Code:
      Index of /forums/brwiki/images
      
          Parent Directory
          0/
          1/
          2/
      etc..
    Issue Details
    Issue Number 2478
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Importing
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 3.0.14
    Fixed Version 3.0.15
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags Import


    Page 2 of 2 FirstFirst Previous 12


    1. October 6, 2011 4:34 PM
      Lord Doys Lord Doys is offline
      Junior Member
      some other errors are probably some images that were lost during a HD crash on the live server.

      Code:
      [Thu Oct 06 22:10:48 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/e/ee/C&C.png
      [Thu Oct 06 22:22:44 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/d/d5/Tomes_of_Gideon.png
      [Thu Oct 06 22:22:59 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/e/e5/IntoTheShadows1.png
      [Thu Oct 06 22:23:01 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/6/6f/IntoTheShadows3.png
      [Thu Oct 06 22:23:02 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/8/8d/IntoTheShadows4.png
      [Thu Oct 06 22:23:03 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/2/2d/IntoTheShadows5.png
      [Thu Oct 06 22:23:04 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/1/1b/IntoTheShadows6.png
      [Thu Oct 06 22:23:05 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/3/38/IntoTheShadows7.png
      [Thu Oct 06 22:23:06 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/b/b3/IntoTheShadows8.png
      [Thu Oct 06 22:23:07 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/a/a8/IntoTheShadows9.png
      [Thu Oct 06 22:23:09 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/0/00/IntoTheShadows10.png
      [Thu Oct 06 22:23:10 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/7/77/IntoTheShadows11.png
      [Thu Oct 06 22:23:11 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/6/69/IntoTheShadows12.png
      [Thu Oct 06 22:23:12 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/c/cc/IntoTheShadows13.png
      [Thu Oct 06 22:23:13 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/d/da/IntoTheShadows2.png
      [Thu Oct 06 22:23:14 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/2/2f/VoreLekiniskiy.png
      [Thu Oct 06 22:23:22 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/c/cb/Thebookofregency.jpg
      [Thu Oct 06 22:24:13 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/forums/brwiki/images/f/fc/W&c_-_cover_s2W.jpg
      but it still doesnt explain why the first 20 "oldest" images passed all checks i build in, and Image: pages were created but without the attachment
      Reply Reply  
    2. October 6, 2011 7:36 PM
      pegasus pegasus is offline
      VaultWiki Team
      Quote Originally Posted by Lord Doys
      i have located some of the errors:

      ...

      it are images with special characters in the name... any solution for this?
      Not sure if this will help but we could try encoding the file name. In vault/import/mediawiki.php, find:
      Code:
      		$attachment = $vault->config['imgpath'] . substr($page['title_hash'], 0, 1) . '/' . substr($page['title_hash'], 0, 2) . '/' . $page['title'];
      Replace with:
      Code:
      		$attachment = $vault->config['imgpath'] . substr($page['title_hash'], 0, 1) . '/' . substr($page['title_hash'], 0, 2) . '/' . urlencode($page['title']);
      As for the image pages being created without the attachment, I agree it's not the best method. I have rearranged the order for the next release, unless 4.0.0 comes out first, which uses a different method entirely.

      Since it sounds like the other errors were due to corrupt files, I'm marking this as fixed.
      Reply Reply  
    3. October 7, 2011 2:13 AM
      Lord Doys Lord Doys is offline
      Junior Member
      cheers, i will give it a try.
      I wont be putting too much effort in it anymore, since we talk about max 40 images out of 1300, takes maybe 1 hour of manual data entry to re-upload them. I better put some more effort in fixing the complex templates.
      Reply Reply  
    Page 2 of 2 FirstFirst Previous 12
    + 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 12:50 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.