Last modified: 2009-01-21 16:09:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19086, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17086 - Cannot configure extensions in sub-subfolders
Cannot configure extensions in sub-subfolders
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Configure (Other open bugs)
unspecified
PC Windows XP
: Normal major (vote)
: ---
Assigned To: Alexandre Emsenhuber [IAlex]
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-20 00:04 UTC by Siebrand Mazeland
Modified: 2009-01-21 16:09 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Siebrand Mazeland 2009-01-20 00:04:26 UTC
I tried to add the Uniwiki extensions to Configure.settings-ext.php. Did not do all the work yet, because I thought it would be best to try if it was going to work at all... This report is quite large, and may cover multiple issues with Configure.

I added the following to Configure.settings-ext.php:

	array(
		'name' => 'UW Authors',
		'dir' => 'uniwiki/Authors',
		'file' => 'Authors.php',
		'settings' => array(
			'wgShowAuthorsNamespaces' => 'array',
			'wgShowAuthors' => 'bool',
		),
		'array' => array(
			'wgShowAuthorsNamespaces' => 'ns-simple',
		),
		'url' => 'http://www.mediawiki.org/wiki/Extension:Uniwiki_Authors',
	),
	array(
		'name' => 'UW AutoCreateCategoryPages',
		'dir' => 'uniwiki/AutoCreateCategoryPages',
		'file' => 'AutoCreateCategoryPages.php',
		'url' => 'http://www.mediawiki.org/wiki/Extension:Uniwiki_Auto_Create_Category_Pages',
	),
	array(
		'name' => 'UW CatBoxAtTop',
		'dir' => 'uniwiki/CatBoxAtTop',
		'file' => 'CatBoxAtTop.php',
		'url' => 'http://www.mediawiki.org/wiki/Extension:Uniwiki_Category_Box_at_Top',
	),

Observed behaviour:
1. extensions show up as expected in the list on Special:Extensions
2. can check "Use this extension" for each of the extensions
3. wgShowAuthors has a default value of false
4. wgShowAuthorsNamespaces shows no content but 'array' and is not editable
5. when enabling for example only 'UW CatBoxAtTop', settings appear to get saved. Special:Version does not show the extension as enabled.

Expected behaviour:
3. Default value is "true". I would expect the checkbox to be checked. (or does 'empty' also mean unchanged?)
4. Default value is NS_MAIN. I would expect that to be a value. Checked with for example "AntiBot": same unexpected behaviour.
5. Expect the extension to be enabled and the extension credits to show up in Special:Version

Other information:
* instead of 'dir' => 'uniwiki/CatBoxAtTop', I also tried 'dir' => 'uniwiki//CatBoxAtTop' to no avail.
* I was able to enable AbsenteeLandlord, so the base use case appears to work. I could also disable it again. I also tried setting $wgAbsenteeLandlordMaxDays to "200". No idea if that succeeded, because after saving, the field for $wgAbsenteeLandlordMaxDays was empty again.

Hmm, maybe I should create a few new issues out of this one? I will just wait for a reply before doing anything else :).
Comment 1 Alexandre Emsenhuber [IAlex] 2009-01-21 14:59:59 UTC
Fixed the issue for Uniwiki extensions in r45958, the problem was with the space in extensions names.
Will fix the default values problem soon.
Comment 2 Alexandre Emsenhuber [IAlex] 2009-01-21 16:09:08 UTC
Fixed "no default values" bug in r45967, marking bug as fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links