Last modified: 2013-06-01 12:54:16 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 T51039, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49039 - Error upgrading MediaWiki from version prior to 1.19 to 1.21
Error upgrading MediaWiki from version prior to 1.19 to 1.21
Status: RESOLVED DUPLICATE of bug 48820
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.21.x
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Thread...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-01 12:51 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2013-06-01 12:54 UTC (History)
1 user (show)

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


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2013-06-01 12:51:19 UTC
See URL field.

The update.php script fails:

...batch conversion of user_options: A database query syntax error has occurred. The last attempted database query was: "SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `revision` INNER JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((rev_user != 0) AND (user_id = rev_user)) WHERE page_id = '9' AND rev_id = '3494' LIMIT 1 " from within function "Revision::fetchFromConds". Database returned error "1054: Unknown column 'rev_sha1' in 'field list' (foobar.barfoo.com)

It's running convertUserOptions.php before creating the rev_sha1 field from revision table.

It calls $user->saveSettings(); (convertUserOptions.php:82) which is doing $this->getUserPage()->invalidateCache(); (User.php:3102) which does $revision = WikiPage::factory( $this )->getRevision(); (Title.php:4517)

update.php needs to be changed to move the rev_sha1 creation before calling 
convertUserOptions.php
Comment 1 Sam Reed (reedy) 2013-06-01 12:54:16 UTC
(In reply to comment #0)
> update.php needs to be changed to move the rev_sha1 creation before calling 
> convertUserOptions.php

Indeed. I logged a bug for this on the 25th May ;)

*** This bug has been marked as a duplicate of bug 48820 ***

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


Navigation
Links