MediaWiki/Upgrade/REL1 25 to REL1 26: Difference between revisions

adds link for CategoryTree
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
Tags: Mobile edit Mobile web edit
 
(6 intermediate revisions by one other user not shown)
Line 5: Line 5:
== Consult the release notes ==
== Consult the release notes ==


Before doing anything, stop and consult the release notes supplied with the new
Before doing anything, stop and consult the [[mw:Release_notes/1.26#MediaWiki_1.26.2|release notes]] supplied with the new
version of the software. This detail bug fixes, new features and functionality,
version of the software. This detail bug fixes, new features and functionality,
and any particular points that may need to be noted during the upgrade
and any particular points that may need to be noted during the upgrade
Line 77: Line 77:


For those [https://gerrit.wikimedia.org/r/#/admin/projects/?filter=mediawiki%252Fextensions%252F extensions available in git] you can fetch the latest updates to the code with something like  
For those [https://gerrit.wikimedia.org/r/#/admin/projects/?filter=mediawiki%252Fextensions%252F extensions available in git] you can fetch the latest updates to the code with something like  
<source lang="bash">
<syntaxhighlight lang="bash">
release=REL1_26
release=REL1_26
# work within the extensions directory so as not to conflict with the main composer.json
# work within the extensions directory so as not to conflict with the main composer.json
Line 94: Line 94:
   cd $base;  
   cd $base;  
done
done
</source>
</syntaxhighlight>
Also, if you don't even know whether there are submodules in use, you can search for those by looking for .gitmodules or .git '''files''' <code>find . -type f -name .git</code> And if you want to know which extensions may be using composer, you can check <code>find . -maxdepth 2 -name composer.json |xargs grep -l '"require":'</code>
Also, if you don't even know whether there are submodules in use, you can search for those by looking for .gitmodules or .git '''files''' <code>find . -type f -name .git</code> And if you want to know which extensions may be using composer, you can check <code>find . -maxdepth 2 -name composer.json |xargs grep -l '"require":'</code>


Line 105: Line 105:
=== Bootstrap ===
=== Bootstrap ===
* I chose to install the Bootstrap extension, which will allow me to use skins based on Bootstrap.  E.g. Chameleon
* I chose to install the Bootstrap extension, which will allow me to use skins based on Bootstrap.  E.g. Chameleon
<source lang="bash">
<syntaxhighlight lang="bash">
composer require "mediawiki/bootstrap:~1.0"
composer require "mediawiki/bootstrap:~1.0"
composer update
composer update
</source>
</syntaxhighlight>


=== Category Tree ===
=== Category Tree ===
* Edit [[MediaWiki:Categorytree-member-num]] to provide a full name interface
[[CategoryTree]]


=== [[mw:Extension:Cite|Cite]] ===
=== [[mw:Extension:Cite|Cite]] ===
[[Citations]]
* upgraded to (e26565f) 2016-01-08T17:16:58 from null
* upgraded to (e26565f) 2016-01-08T17:16:58 from null
* change the .git repo from https://gerrit.wikimedia.org/r/p/mediawiki/core.git to https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Cite
* change the .git repo from https://gerrit.wikimedia.org/r/p/mediawiki/core.git to https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Cite
Line 125: Line 126:
* wfLoadExtension( 'CiteThisPage' );
* wfLoadExtension( 'CiteThisPage' );


=== Collection ===
=== Collections ===
* 1.7.0 (1f410db) 2015-09-29T17:19:00 from 1.7.0 (f0686fd) 2014-10-11T17:47:09
[[Collections]]
* The new config does save books, and renders to pdf (using pediapress) but the output needs some work to be truly professional looking. See https://freephile.org/wiki/Help:Books
* The new config does save books, and renders to pdf (using pediapress) but the output needs some work to be truly professional looking.  
 
* If there is an error rendering PDFs, try again. It's probably due to the low-capacity public server of PediaPress


=== Delete Batch ===
=== Delete Batch ===
* upgraded to 1.5.0 (3870998) 2015-09-29T17:32:00 from 1.4 (non-git)
* upgraded to 1.5.0 (3870998) 2015-09-29T17:32:00 from 1.4 (non-git)
[[Delete]]


=== [[mw:Extension:DynamicPageList_(third-party)|DynamicPageList (third party)]] ===
=== [[mw:Extension:DynamicPageList_(third-party)|DynamicPageList (third party)]] ===
* upgraded to 2.3.0 (fa2f83b) 2015-06-22T10:40:33
* upgraded to 2.3.0 (fa2f83b) 2015-06-22T10:40:33
 
[[Dynamic content]]


=== Gadgets ===
=== Gadgets ===
[[Gadgets]]
* upgraded to REL1_26 (58f236d) 2015-11-23T16:22:00 from (a775200) 2014-01-26T12:22:15
* upgraded to REL1_26 (58f236d) 2015-11-23T16:22:00 from (a775200) 2014-01-26T12:22:15
* compatible with wfLoadExtension
* compatible with wfLoadExtension


=== Html2Wiki ===
=== Html2Wiki ===
[[Html2Wiki]]
* disabled temporarily
* disabled temporarily
* re-enabled and tested
* re-enabled and tested


=== Interwiki ===
=== Interwiki ===
[[Interwiki links]]
* bundled
* bundled
* upgraded to 3.0 20140719 (6ed9dc3) 2015-11-23T16:39:17 from 2.2 20120425 (83fa077) 2013-03-31T14:51:05
* upgraded to 3.0 20140719 (6ed9dc3) 2015-11-23T16:39:17 from 2.2 20120425 (83fa077) 2013-03-31T14:51:05
* Since the freephile wiki is served in secure mode (https), and all my interwiki links were hardcoded to 'http', I'd be unfairly dumping visitors out to the non-encrypted web. Interwiki since v1.18+ supports Protocol Relative URLs (PRURLs), so I updated my interwiki table converting all links to use // It's not possible to browse the freephile wiki in plain http mode (because our server is configured to always redirect to secure mode), so you can't really link off to an insecure website via the interwiki table now.  But, if we ever decide to serve plain http, then our interwiki links will maintain your insecurity.
* Since the freephile wiki is served in secure mode (https), and all my interwiki links were hardcoded to 'http', I'd be unfairly dumping visitors out to the non-encrypted web. Interwiki since v1.18+ supports Protocol Relative URLs (PRURLs), so I updated my interwiki table converting all links to use // It's not possible to browse the freephile wiki in plain http mode (because our server is configured to always redirect to secure mode), so you can't really link off to an insecure website via the interwiki table now.  But, if we ever decide to serve plain http, then our interwiki links will maintain your insecurity.
<source lang="sql">
<syntaxhighlight lang="sql">
SELECT * FROM mediawiki.interwiki;
SELECT * FROM mediawiki.interwiki;
UPDATE mediawiki.interwiki
UPDATE mediawiki.interwiki
SET iw_url = REPLACE(iw_url, 'http://', '//')
SET iw_url = REPLACE(iw_url, 'http://', '//')
LIMIT 200;
LIMIT 200;
</source>
</syntaxhighlight>


=== Lingo ===
=== Lingo ===
Line 165: Line 170:


=== [[mw:Extension:Nuke|Nuke]] ===
=== [[mw:Extension:Nuke|Nuke]] ===
[[Delete]]
* Installed v1.2.0 (5763d10) 2015-11-23T16:46:18
* Installed v1.2.0 (5763d10) 2015-11-23T16:46:18
* There were several broken Html2wiki import images which I wanted to use this extension to remove from the wiki.  I still had to delete them by hand, but at least the 'recent changes' view on the main page is now fixed.  The Nuke extension is still a useful tool
* There were several broken Html2wiki import images which I wanted to use this extension to remove from the wiki.  I still had to delete them by hand, but at least the 'recent changes' view on the main page is now fixed.  The Nuke extension is still a useful tool
Line 172: Line 178:


=== [[mw:Extension:ParserFunctions|Parser Functions]] ===
=== [[mw:Extension:ParserFunctions|Parser Functions]] ===
[[Parser functions]]
* (bundled)
* (bundled)
* upgraded to 1.6.0 (81eca7c) 2015-11-23T17:18:03 from 1.6.0 (738403b) 2014-10-11T18:09:18
* upgraded to 1.6.0 (81eca7c) 2015-11-23T17:18:03 from 1.6.0 (738403b) 2014-10-11T18:09:18


=== Parsoid ===
=== Parsoid ===
Line 180: Line 186:


=== PDF Handler ===
=== PDF Handler ===
[[Pdf]]
* upgraded to (6d8477d) 2015-11-23T17:19:41 from (f7044ec) 2014-01-21T20:50:35
* upgraded to (6d8477d) 2015-11-23T17:19:41 from (f7044ec) 2014-01-21T20:50:35
* installed poppler-utils on Ubuntu
* installed poppler-utils on Ubuntu
<source lang="bash">
<syntaxhighlight lang="bash">
which gs convert pdfinfo # tells if you have the right dependencies
which gs convert pdfinfo # tells if you have the right dependencies
</source>
</syntaxhighlight>
* added link to example test page
* added link to example test page




=== Scribunto ===
=== Scribunto ===
[[Lua]]
* from 184a649) 2013-10-23T12:23:02
* from 184a649) 2013-10-23T12:23:02


Line 197: Line 205:


=== [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic MediaWiki] ===
=== [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic MediaWiki] ===
[[Metadata]]
* upgraded from 1.8.0.5 (fbd7570) 2013-04-06T20:44:28 to 2.3.1
* upgraded from 1.8.0.5 (fbd7570) 2013-04-06T20:44:28 to 2.3.1
* deleted the now unused PageSchemas and SemanticBundle directories.
* deleted the now unused PageSchemas and SemanticBundle directories.
Line 214: Line 223:


=== [[mw:Extension:SVGEdit|SVGEdit]] ===
=== [[mw:Extension:SVGEdit|SVGEdit]] ===
[[Svg]]
* upgraded to the latest git from (00b9b30) 2013-11-22T16:46:23
* upgraded to the latest git from (00b9b30) 2013-11-22T16:46:23


=== SyntaxHighlight_GeSHi ===
=== SyntaxHighlight_GeSHi ===
[[Syntax Highlighting]]
* Note this extension now uses Pygments
* Note this extension now uses Pygments
* Initially had difficulty with this throwing all kinds of notices and breaking things like the edit window, probably because I was on REL1_25
* Initially had difficulty with this throwing all kinds of notices and breaking things like the edit window, probably because I was on REL1_25
Line 225: Line 236:


=== Tooltip ===
=== Tooltip ===
[[Tooltips]]
* This interesting extension fell out of maintenance, and is superseded by the Lingo extension.   
* This interesting extension fell out of maintenance, and is superseded by the Lingo extension.   




=== User Merge and Delete ===
=== User Merge and Delete ===
[[Merge]]
* upgraded to 1.9.0 (8a4faae) 2015-09-29T18:53:44 from 1.7 (9cdb625) 2013-04-04T16:10:25
* upgraded to 1.9.0 (8a4faae) 2015-09-29T18:53:44 from 1.7 (9cdb625) 2013-04-04T16:10:25




=== [[Visual editor]] ===
=== Visual editor ===
[[Visual editor]]
* completely updated (new git repo)
* completely updated (new git repo)
* upgraded to 0.1.0 (34a21d8) 2015-11-10T07:15:06 from 0.1.0 (c416e78) 2014-05-07T17:36:05
* upgraded to 0.1.0 (34a21d8) 2015-11-10T07:15:06 from 0.1.0 (c416e78) 2014-05-07T17:36:05
Line 239: Line 253:


=== Wiki Category Tag Cloud ===
=== Wiki Category Tag Cloud ===
[[Categories]]
* upgraded to 1.2.0 (e8c04a8) 2015-09-29T18:58:37 from 1.1
* upgraded to 1.2.0 (e8c04a8) 2015-09-29T18:58:37 from 1.1




=== [[mw:Extension:WikiEditor|WikiEditor]] ===
=== [[mw:Extension:WikiEditor|WikiEditor]] ===
[[Text Editor]]
* upgraded to 0.5.0 (72db6c7) 2015-09-29T18:59:11 from 0.4.0 (b13e25d) 2014-10-11T18:26:25
* upgraded to 0.5.0 (72db6c7) 2015-09-29T18:59:11 from 0.4.0 (b13e25d) 2014-10-11T18:26:25
* added options within LocalSettings
* added options within LocalSettings