Last modified: 2010-05-15 15:48:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8975 - MediaWiki:* vs. importTextFile.php vs. update.php
MediaWiki:* vs. importTextFile.php vs. update.php
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-02-13 20:46 UTC by Dan Jacobson
Modified: 2010-05-15 15:48 UTC (History)
0 users

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


Description Dan Jacobson 2007-02-13 20:46:10 UTC
Gentlemen, I have determined that if one uses importTextFile.php to
write MediaWiki:* items, then one must be prepared to do so again
after each run of update.php.

If one wishes those items to stick, one had better hunker down with the
browser and edit them by hand, each one.

Go ahead, run the below, note the effects, then run update.php. The
effects are then gone.

echo -n - > $t
php importTextFile.php --title MediaWiki:Privacy $t
cat > $t <<EOF
* navigation
** mainpage|mainpage
** portal-url|portal
** currentevents-url|currentevents
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help
php importTextFile.php --title MediaWiki:Sidebar $t

Too bad there's no way to set them via LocalSettings.php.
No URL as this wiki is offline.
Comment 1 Rob Church 2007-02-13 21:50:02 UTC
Is the edit being attributed to "MediaWiki default"? If so, then update.php will
delete it as part of the message cache alterations shipped from 1.9.0 onwards.
In this case, use the --user option passed to the import script to attribute the
edit to someone else.
Comment 2 Brion Vibber 2007-02-14 00:46:04 UTC
It would probably be wise not to use 'MediaWiki default' as the default username
for importTextFile, since that's intended to be used for things created by the
installer (and thus which can be udpated or removed with impunity).
Comment 3 Rob Church 2007-03-27 20:53:49 UTC
Fixed in r20751.

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