For those who, like me, need an alternative and could not find one, there is the importImages.php maintenance script: Manual:ImportImages.php
Jump to navigation Jump to search
Reply to "Alternative"
Reply to "Internal Server Error"
Reply to "upload file via "Upload local files" error"
Reply to "Error "An unknown error occurred.""
Reply to "Upload existing files"
Reply to "Not working after 1.22 upgrade"
Reply to "Categories on upload"
Reply to "Thank you"
Reply to "Images not getting thumbnails"
Reply to ""Note that for this extension to be useful, the user must have FTP access.""
About this board
Internal Server Error
I get the error below when I try to import the files (MW 1.23). Despite that, some of the images are imported (about 150 which are about 30MB).
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@xxx to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
upload file via "Upload local files" error
i have no problem uploading html files via "Upload file" but when trying to upload via "Upload local files" -I get :
This file did not pass file verification: filetype-badmime.
i enable debug mode and get in the specialpages at top:
Notice: Did not find alias for special page 'UploadLocal'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /var/www/clients/client1/web2/web/docs/includes/specialpage/SpecialPageFactory.php at line 688] in /var/www/clients/client1/web2/web/docs/includes/debug/MWDebug.php on line 300
in mediawiki consol -
Did not find alias for special page 'UploadLocal'. Perhaps no aliases are defined for it? SpecialPageFactory::getLocalNameFor
what i missing here?
Error "An unknown error occurred."
MediaWiki 1.19.1. Latest UploadLocal from git. Trying to upload pdf files larger than about 100Mb and I get this error. Switched on php errors but I don't get any additional help. I have tried various combinations of the following in my LocalSettings.php file:
error_reporting(-1); ini_set('display_errors',1); ini_set('post_max_size', '800M'); ini_set('upload_max_filesize', '800M'); $wgUploadSizeWarning = 2147483648; $wgMaxUploadSize = 2147483648; $wgMaxShellMemory = 1073741824; $wgMaxShellFileSize = 1073741824; $wgDebugLogFile="/tmp/debug/log";
Any ideas what I might be doing wrong?
Same issue here. Do you was able to fix it, and how?
I had this error, the following 3 lines in LocalSettings.php did the trick: $wgMaxUploadSize = array(
'*' => 1024 * 1024 * 250 );
Which limits all uploads to 250MB. I would guess that OP did not use the right datatype for $wgMaxUploadSize.
Upload existing files
I would like to know, if there is a parameter, to allow reuploading existing files.
Thank you for your attention Bernd M. Radowicz
Not working after 1.22 upgrade
Hi Since 1.22 upgrade, UploadLocal is not working.
The upload form is working and I can see my files but when I after I click on "upload local files" I get a "You did not upload any files."
In the log I have the following errors:
Did not find alias for special page 'UploadLocal'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /opt/www/mediawiki/includes/SpecialPageFactory.php at line 567] Did not find alias for special page 'UploadLocal'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /opt/www/mediawiki/includes/SpecialPageFactory.php at line 567] User::getBlockedStatus: checking... Use of wfMsg was deprecated in MediaWiki 1.21. [Called from UploadLocalDirectory::processUploads in /opt/www/mediawiki/extensions/UploadLocal/UploadLocalDirectory.php at line 201] Use of wfMsgReal was deprecated in MediaWiki 1.21. [Called from wfMsg in /opt/www/mediawiki/includes/GlobalFunctions.php at line 1384] Use of wfMsgGetKey was deprecated in MediaWiki 1.21. [Called from wfMsgReal in /opt/www/mediawiki/includes/GlobalFunctions.php at line 1482] Unstubbing $wgLang on call of $wgLang::getCode from MessageCache::getMessageFromFallbackChain User: loading options for user 1 from override cache.
Do you have any ideas ?
Categories on upload
Is it possible to include the functions of CategoryOnUpload (MW extension) in this very usefull extension you offer !! I'm not enough "on duty" to make these changes !!
Thank's in advance !
I'm not sure where the right place to give props to the devs for this extension. Wowie, it was great! Thank you so much!
Images not getting thumbnails
I have MW 1.18 and am using the 1.19 snapshot (didn't see one for 1.18 and the trunk was empty). I applied the fix to line 31 of UploadLocalForm.php which now allows the uploads, however, the image thumbnails are not being generated... When I go to "http://mywiki/index.php/File:FILE-DSCN0109.JPG" I see all the metadata, and the full-resolution looks good, but the thumbnail is gray and says "Error Creating Thumbnail:"
edit: The thumbnails are not being generated for "large" JPG files (over 3 megs). I tried with lower resolution photos and those are working.... Ideas?
Looks like I fixed it by adding:
$wgMaxShellMemory = unlimited; $wgMaxShellFileSize = unlimited;
to my LocalSettings.php file.
"Note that for this extension to be useful, the user must have FTP access."
I changed it to read "Note that for this extension to be useful, the user must be able to put files in a directory on the server".