Last modified: 2012-04-12 13:54:07 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 T26818, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24818 - Changing skin in userOptions.php fails.
Changing skin in userOptions.php fails.
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-17 00:06 UTC by Alex Kozak
Modified: 2012-04-12 13:54 UTC (History)
2 users (show)

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


Attachments

Description Alex Kozak 2010-08-17 00:06:40 UTC
Recently we attempted to change all user skin preferences to vector with the command:

php userOptions.php skin --old monobook --new vector

It appeared to run successfully (with messages like "Setting skin for <user> from 'monobook' to 'vector'):  OK") but our preferences had in fact not been changed, and when we ran "php userOptions.php skin --usage" we got:

Usage for <skin> (default: 'vector'):
 1 user(s): 'modern'

Done.

whereas before when we ran it we a breakdown of skin usage for our users.

Following a direct modification of the database to update user skin preferences, running the command "php userOptions.php skin --usage" shows nothing but "Done."
Comment 1 Max Semenik 2010-08-20 17:26:58 UTC
Setting a preference to a global default simply removes it from database, so what you're seeing in response to php userOptions.php skin --usage is normal. Are you saying that users didn't observe a change in their preferences? (Note that user objects may be cached and although a change in prefrerences should result in cache invalidation, all kinds of glitches can happen).
Comment 2 Roan Kattouw 2010-09-08 18:58:43 UTC
Have you tried setting $wgDefaultSkin = 'vector'; yet?
Comment 3 Alex Kozak 2010-09-08 20:24:59 UTC
We'd set the $wgDefaultSkin = 'vector', but are unable to replicate the original bug (the vector skin is enabled just fine according to our users). It's possible there was an unrelated issue (maybe a syntax error in LocalSettings when we first set the new default skin).

Is there somewhere in the documentation I or someone can make a note that "php userOptions.php skin --usage" will not display the skin preference if it's set to the default, since that's somewhat unintuitive behavior? Maybe it isn't that big of an issue.

Thanks for the help!
Comment 4 Max Semenik 2010-09-18 07:58:17 UTC
> syntax error in LocalSettings

...always result in wiki being completely unusable.

> Is there somewhere in the documentation
That's bug 1 :/

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


Navigation
Links