Mediawiki Update

From Wurst-Wasser.net
Jump to navigation Jump to search

About

Moving from 1.31.x to 1.39.3

deep-thought html # wget https://releases.wikimedia.org/mediawiki/1.39/mediawiki-1.39.3.tar.gz
deep-thought html # tar xzf mediawiki-1.39.3.tar.gz --directory wiki --strip-components=1
deep-thought maintenance # php update.php
PHP Deprecated:  DefaultSettings.php is deprecated and will be removed. Use the ConfigSchema service object instead. [Called from require_once in /var/www/html/wiki/LocalSettings.php at line 25] in 
/var/www/html/wiki/includes/debug/MWDebug.php on line 381
PHP Fatal error:  Uncaught Exception: Unable to open file /Vector/skin.json: filemtime(): stat failed for /Vector/skin.json in /var/www/html/wiki/includes/registration/ExtensionRegistry.php:199
Stack trace:
#0 /var/www/html/wiki/includes/GlobalFunctions.php(86): ExtensionRegistry->queue()
#1 /var/www/html/wiki/LocalSettings.php(127): wfLoadSkin()
#2 /var/www/html/wiki/includes/Setup.php(218): require_once('/var/www/html/w...')
#3 /var/www/html/wiki/maintenance/doMaintenance.php(83): require_once('/var/www/html/w...')
#4 /var/www/html/wiki/maintenance/update.php(312): require_once('/var/www/html/w...')
#5 {main}
 thrown in /var/www/html/wiki/includes/registration/ExtensionRegistry.php on line 199
deep-thought maintenance #

-> auskommentiert DefaultSettings.php

deep-thought maintenance # php update.php
PHP Deprecated:  EmbedVideo's extension.json or skin.json does not have manifest_version, this is deprecated since MediaWiki 1.29 in /var/www/html/wiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Premature access to service container [Called from ConfigFactory::getDefaultInstance in /var/www/html/wiki/includes/config/ConfigFactory.php at line 54] in 
/var/www/html/wiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/wiki/includes/MediaWikiServices.php at line 289] in 
/var/www/html/wiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/wiki/includes/ServiceWiring.php at line 721] in 
/var/www/html/wiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Premature access to service 'ConfigFactory' [Called from ConfigFactory::getDefaultInstance in /var/www/html/wiki/includes/config/ConfigFactory.php at line 54] in 
/var/www/html/wiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/wiki/includes/ServiceWiring.php at line 414] in 
/var/www/html/wiki/includes/debug/MWDebug.php on line 381
$wgServer must be set in LocalSettings.php. See <a href="https://www.mediawiki.org/wiki/Manual:$wgServer">https://www.mediawiki.org/wiki/Manual:$wgServer</a>.deep-thought maintenance #

-> auskommentiert EmbedVideo

https://www.mediawiki.org/wiki/Manual:$wgServer

-> $wgServer gesetzt

deep-thought maintenance # php update.php
Wikimedia\Rdbms\DBQueryError from line 1618 of /var/www/html/wiki/includes/libs/rdbms/database/Database.php: Error 1054: Unknown column 'rev_actor' in 'field list'
Function: MessageCache::loadFromDB(en)-small
Query: SELECT  /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data 
AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS 
`rev_user_text`,rev_actor,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len  FROM `ww_page` JOIN `ww_revision` ON ((page_id = rev_page)) JOIN `ww_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `ww_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `ww_actor` `actor_rev_user` ON 
((actor_rev_user.actor_id = rev_actor))   WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
[…]

Fuck.

Used

https://www.wurst-wasser.net/wiki/mw-config/


Worked just fine. Why?