Difference between revisions of "mediawiki stops working after an update"
From thelinuxwiki
(Created page with " == Problem == mediawiki stops working after an update (on gentoo) == Errors == Browser errors when trying to load the Mediawiki Main page of a wiki Database error Jump to...") |
(→Solution) |
||
Line 15: | Line 15: | ||
== Solution == | == Solution == | ||
− | + | change to the maintenance sub-directory (it is inide the mediawiki root directory) and execute the update script: | |
$ php update.php | $ php update.php |
Latest revision as of 16:26, 26 September 2013
Problem
mediawiki stops working after an update (on gentoo)
Errors
Browser errors when trying to load the Mediawiki Main page of a wiki
Database error Jump to: navigation, search A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "Revision::fetchFromConds". Database returned error "1054: Unknown column 'rev_sha1' in 'field list' (localhost)".
Solution
change to the maintenance sub-directory (it is inide the mediawiki root directory) and execute the update script:
$ php update.php MediaWiki 1.20.6 Updater
Going to run database updates for mediawiki Depending on the size of your database this may take a while! Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0 ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...already have interwiki table ...OUTPUT TRUNCATED Populating img_sha1 field Done 0 files in 0.0 seconds Fixing protocol-relative entries in the externallinks table... Done, 0 rows updated.
Done.
When completed, I could again load my wiki main page.