Extension talk:UploadLocal
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| PHP Errors out | 5 | 11:12, 23 May 2012 |
| Fatal error | 1 | 11:11, 23 May 2012 |
| prepend does not work | 1 | 11:47, 3 April 2012 |
| prepend does not work | 2 | 11:46, 3 April 2012 |
| Initial category for uploaded files | 2 | 10:19, 21 March 2012 |
| patches | 1 | 14:54, 27 February 2012 |
| What about uploading from a given subdirectory ? | 0 | 17:18, 31 January 2012 |
| Download link not working | 1 | 16:44, 13 January 2012 |
| old versions more extensions in see also | 0 | 21:25, 28 December 2011 |
Running Mediawiki 1.18.1
PHP Fatal error: Call to a member function getName() on a non-object in /var/www/includes/upload/UploadBase.php on line 510
it does this for all uploads that I've tested so far
the wiki Im putting this on is pcgamingwiki.com
On line 30 of UploadLocalForm.php, can you change:
$this->upload->initialize( $name, new WebRequestUploadLocal( true, $fileInfo ) );
to:
$this->upload->initialize( $filename, new WebRequestUploadLocal( true, $fileInfo ) );
If that fixes it, I'll commit a patch to the repo. Thanks for the report!
Actually, I just committed a fix for another bug in http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114682 that should fix this too. Can you try again?
Just tried for myself, with no luck. Same error that he is getting. Trying to upload roughly 100 files, and no using any prepend or append settings.
Edit -- Found what my error was. Was trying to upload files with extensions that were not supported in my localsettings.php
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'psd', 'swf', 'fla', 'mp3', 'mp4', 'm4v', 'mov', 'avi', 'xlsx', 'docm', 'xlsm');
Fixed that and has most common extensions.
Hi there! I get the following error when I click "upload local files":
Fatal error: Class 'WebRequestUpload' not found in /mnt/webi/b3/15/52442315/htdocs/wiki/extensions/UploadLocal/WebRequestUploadLocal.php on line 2
I am running Mediawiki 1.16.0. I read that this extension only works with 1.17+. Is there any way to make it working for me or do I HAVE to upgrade?
Thanks for your help in advance!
Regards, Chris
Hi Chris,
Unfortunately, right now there is no version that works with 1.16. If I get some free time, I'll see if I can make it backwards compatible. Until then, if you have access to the server, there is a maintenance script you can use called importImages.php.
hi, I just noticed that the prepend function is not working. Files are put in the right directory but without been renamed. I am using 1.18.1 wiki with 112487 revision
Any idea ?
Thank you
Should be fixed by http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114682. Thanks for the report.
hi, I just noticed that the prepend function is not working. Files are put in the right directory but without been renamed. I am using 1.18.1 wiki with 112487 revision
Any idea ?
Thank you
Should be fixed by http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114682. Thanks!
Where to post patches: email ? bugtracker ? other ? anyway:
[edit] add a title to the form
Such like below (in showForm())
$wgOut->setPageTitle(wfMsg('Upload Local Files'));
You can post them here, email them to me, or better than all those options, apply for commit access to MediaWiki and apply them directly to the code. See http://www.mediawiki.org/wiki/Commit_access. I applied this patch. Thanks.
I add a sentence explaining that versions of this extension work for older version of mediawiki, and also added a couple of links to other bulk upload programs, including Extension:Uploadify.[1]