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..
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
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.
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.
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.