$wgCategoryOnUploadList doesn't work?Edit
I have an array setup per the instructions, but it still just shows the entire category list when you try to upload. MW1.15.1
- only the development version supports the configuration setting $wgCategoryOnUploadList.
- Thanks for the reply. :) Do you know if the svn version will work on MW1.15.1 or is it only tested on 1.16a?
- It worked on my MW1.15.1 setting.
Also didn't work on my MW1.15.1. Maybe the description page should contain a note about that issue. It reads as if it would work from 1.11 while in fact it doesn't.--Schmelzle 09:35, 28 January 2010 (UTC)
Thanks Jshorb 21:47, 25 January 2010 (UTC)
- Perhaps simply add an option for multiple selection drop-down boxes? ie: $wgCategoryOnUploadNumber = 3 could result in 3 drop downs with which to choose from 3 different categories? --D0li0 02:29, 28 September 2010 (UTC)
Problems with MW 1.16alphaEdit
The extensions seems not to work in MW 1.16alpha. The following error message appears: Fatal error: Cannot access protected property SpecialUpload::$mComment in ../extensions/CategoryOnUpload/CategoryOnUpload.php on line 179
Do you have an idea what is the reason for it? Thanks for support! --188.8.131.52 16:32, 15 March 2010 (UTC) I had a user report seeing this error to me, but I can't recreate it... MW 1.16beta 2. Anyone know the cause or the fix?--184.108.40.206 07:32, 1 June 2010 (UTC)
I kept getting this same error: Fatal error: Cannot access protected property SpecialUpload::$mComment in ../extensions/CategoryOnUpload/CategoryOnUpload.php on line 180
After debugging this awesome script for some time I followed the error all the way back to the SpecialUpload.php file. On line 38 you will see that the variable: $mComment is set to be protected. To fix this simply change it to public. Please note that I'm not entirely sure what this change will affect. I don't know if it opens the engine up to any security risks or not, so please proceed with caution when changing this setting.
EnlightenedShadow 03:57, 4 October 2010 (UTC)
What about for pages?Edit
Great this works for images and other file uploads but any chance of getting the same functionality when creating new pages? --Robinson Weijman 11:05, 5 November 2010 (UTC)
Safety Check for Upload Categories?Edit
The option $wgCategoryOnUploadAllowNone = false; is a good start to prevent users from uploading files into a "void". But is there a possibility to bring up a warning when no category is allowe and still is been selected?
In short: I want the default setting on "-" but warn my users if they forget on specifying a category.
I am with youEdit
same request from me