Hi,
I'm running Mediawiki 1.11.2 on Ubuntu 8, and after a recent update, I'm now getting the error:
Warning: Missing argument 5 for MediaWiki::initialize(), called in /usr/share/mediawiki/index.php on line 89 and defined in /var/lib/mediawiki/includes/Wiki.php on line 52
Fatal error: Call to a member function getCheck() on a non-object in /var/lib/mediawiki/includes/Wiki.php on line 137
Why would an update break Mediawiki's homepage, and how can I fix it? Interestingly, Google returns lot's of sites with this error, but they're all Mediawiki sites containing the error, and not anyone discussing why the error occurs or how to fix it.
Regards, Chris
Have you run "php /usr/share/mediawiki/maintenance/update.php" or "php5 /usr/share/mediawiki/maintenance/update.php" in the shell.
Gruß Jan Luca
-----Ursprüngliche Nachricht----- Von: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] Im Auftrag von Chris Spencer Gesendet: Mittwoch, 18. Februar 2009 19:58 An: wikitech-l@lists.wikimedia.org Betreff: [Wikitech-l] Error After Upgrade on Ubuntu
Hi,
I'm running Mediawiki 1.11.2 on Ubuntu 8, and after a recent update, I'm now getting the error:
Warning: Missing argument 5 for MediaWiki::initialize(), called in /usr/share/mediawiki/index.php on line 89 and defined in /var/lib/mediawiki/includes/Wiki.php on line 52
Fatal error: Call to a member function getCheck() on a non-object in /var/lib/mediawiki/includes/Wiki.php on line 137
Why would an update break Mediawiki's homepage, and how can I fix it? Interestingly, Google returns lot's of sites with this error, but they're all Mediawiki sites containing the error, and not anyone discussing why the error occurs or how to fix it.
Regards, Chris
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Jan Luca wrote:
Have you run "php /usr/share/mediawiki/maintenance/update.php"
Could I have an "official" response on the relative appropriateness of the above versus:
cd /usr/share/mediawiki/maintenance php update.php
At one time, following Jan's advice was not likely to work and running the script after cd-ing to the appropriate directory would work. Now I see more people suggesting Jan's version of the command.
Is it the intent of Mediawiki developers to ensure that _all_ scripts should run from any directory if the path to the script is provided as part of the argument to php?
Mike
On Wed, Feb 18, 2009 at 4:48 PM, Michael Daly michael.daly@kayakwiki.org wrote:
Jan Luca wrote:
Have you run "php /usr/share/mediawiki/maintenance/update.php"
Could I have an "official" response on the relative appropriateness of the above versus:
cd /usr/share/mediawiki/maintenance php update.php
It makes no difference. I always use the first form (php maintenance/xxx) for all scripts, and haven't had one break yet. update.php doesn't access the filesystem anyway, except to get includes, and those are always loaded in a working dir-independent way.
The version available in Ubuntu reps is sadly 1.12.0 for intrepid [0]
Apparently Ubuntu 9.04 (release date in the end of April) will support MW 1.13.3 [1]
If update.php is not run on version update, we should probably get more details and report this on ubuntu launchpad. :)
[0] http://packages.ubuntu.com/intrepid-updates/mediawiki [1] http://packages.ubuntu.com/jaunty/mediawiki
2009/2/18 Roan Kattouw roan.kattouw@home.nl:
Chris Spencer schreef:
Hi,
I'm running Mediawiki 1.11.2
You should really be running a more recent version, like 1.13.4. Is 1.11.2 the version you upgraded to, or the one you upgraded from?
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
It turned out this was partially my fault. A few months ago, version 1.13 was somehow manually installed overtop the standard version from the Ubuntu repo. I guess the update reverted enough files to break everything.
Thanks for the help.
Chris
On Wed, Feb 18, 2009 at 7:24 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
The version available in Ubuntu reps is sadly 1.12.0 for intrepid [0]
Apparently Ubuntu 9.04 (release date in the end of April) will support MW 1.13.3 [1]
If update.php is not run on version update, we should probably get more details and report this on ubuntu launchpad. :)
[0] http://packages.ubuntu.com/intrepid-updates/mediawiki [1] http://packages.ubuntu.com/jaunty/mediawiki
2009/2/18 Roan Kattouw roan.kattouw@home.nl:
Chris Spencer schreef:
Hi,
I'm running Mediawiki 1.11.2
You should really be running a more recent version, like 1.13.4. Is 1.11.2 the version you upgraded to, or the one you upgraded from?
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org