Last modified: 2011-11-03 22:27:13 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 T34072, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32072 - update.php has useless/obscure error message
update.php has useless/obscure error message
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-31 05:38 UTC by MZMcBride
Modified: 2011-11-03 22:27 UTC (History)
4 users (show)

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


Attachments

Description MZMcBride 2011-10-31 05:38:51 UTC
I updated my wiki to r101337 just now and tried to run the following command and was presented with the following output:

----
$ php maintenance/update.php 
Do not run update.php on this wiki. If you're seeing this you should
probably ask for some help in performing your schema updates.

If you know what you are doing, you can continue with --iknowwhatimdoing
----

This error message is frightening and overly vague. It was introduced in r92109. It should include one or more of the following: a link to a manual or help page on mediawiki.org explaining what the actual issue is here and what needs to be done to resolve it; a reference to the global configuration variable ($wgMiserMode); a link to [[mw:Manual:$wgMiserMode]].

It looks like the help output was modified, but I think most people wouldn't think to look there (the only reason I knew that the help output was modified was by someone pointing out r92109 to me).
Comment 1 Brion Vibber 2011-10-31 17:57:53 UTC
I assume this is a XXXwmf branch?
Comment 2 Chad H. 2011-10-31 19:04:36 UTC
(In reply to comment #1)
> I assume this is a XXXwmf branch?

No, I did it in trunk so we wouldn't lose it every time we rebranch a deployment branch.
Comment 3 Brion Vibber 2011-10-31 19:08:01 UTC
How about instead we set a configuration switch so it only has to happen on the cluster, and it works for everybody else?
Comment 4 Chad H. 2011-10-31 19:11:50 UTC
Well I was reusing $wgMiserMode for that purpose, but apparently real people use miser mode too.
Comment 5 Antoine "hashar" Musso (WMF) 2011-11-01 16:50:38 UTC
renamed by Aaron in r101370 to --force
Comment 6 Chad H. 2011-11-03 20:16:09 UTC
Stopped abusing $wgMiserMode in r101867.
Comment 7 MZMcBride 2011-11-03 22:27:13 UTC
Thanks, Chad. <3

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


Navigation
Links