MediaWiki 1.29.0 maintenance/update.php does nothing

382 Views Asked by At

On my hosting with my MW (1.28.2) and SMW (2.5.3) a have:

  1. /home/www/mediawiki-1.28.2
  2. /home/www/w -> mediawiki-1.28.2 (link to mediawiki-1.28.2)
  3. /home/www/.htaccess

Following https://www.mediawiki.org/wiki/Manual:Upgrading#Command_line I do:

  1. Downloading mediawiki-1.29.0.tar.gz to /home/www/mediawiki-1.29.0.tar.gz
  2. Unpack mediawiki-1.29.0.tar.gz to /home/www/mediawiki-1.29.0
  3. Copy from /home/www/w to /home/www/mediawiki-1.29.0 files and folders: LocalSettings.php, images, some extensions

Then from command-line I do:

  1. Change link /home/www/w from /home/www/mediawiki-1.28.2 to /home/www/mediawiki-1.29.0
  2. cd /home/www/w
  3. /opt/php/7.1/bin/php ~/bin/composer.phar require mediawiki/semantic-media-wiki "~2.5" --update-no-dev
  4. /opt/php/7.1/bin/php ~/bin/composer.phar update
  5. /opt/php/7.1/bin/php maintenance/update.php

And maintenance/update.php does nothing! At all! And my site down to HTTP 500.

What is wrong and how can I debug maintenance/update.php ?

3

There are 3 best solutions below

1
On BEST ANSWER

Okay, there is how I try to solve it:

  1. I removed (temporary) .htaccess
  2. I switched on error reporting in LocalSettings.php
  3. When I went to my website/w/index.php I found that there were two(!) missing extensions: PdfHandler and SpamBlacklist. After removing them from LocalSettings.php all works fine.

That is the question: where were PdfHandler and SpamBlacklist gone???

1
On

I think there was some problem with your dependencies try running "composer update" in the terminal and According to me it actually runs Localsettings.php file and aborts if it identifies any errors in the file so you have to check if there is any mistake in it and finally run php maintanence/update.php in mediawiki directory

0
On

https://www.mediawiki.org/wiki/Manual:How_to_debug

My guess (just a guess) is that there might be a problem with PHP7 as your default, since some MediaWiki extensions don't support it yet.