Description of problem: Upgrade from mediawiki-1.15.4-55.fc14.i686 to mediawiki-1.16.4-58.fc14.i686 not working, Version-Release number of selected component (if applicable):1.16.4-58 How reproducible: Steps to Reproduce: 1.Run upgrade yum update mediawiki-nomath mediawiki mediawiki-math 2. Run php /path/to/ update.php 3. Actual results: Shows blank page after update PHP Fatal error: Call to undefined method MediaWiki::initialize() in index.php on line 117 Expected results: Should be work. Additional info: I tried to run update.php also manually import the table, but after that its shows blank page. http://www.mediawiki.org/wiki/Manual:L10n_cache_table CREATE TABLE pub_l10n_cache ( -- Language code lc_lang varbinary(32) NOT NULL, -- Cache key lc_key varchar(255) NOT NULL, -- Value lc_value mediumblob NOT NULL ) ; CREATE INDEX /*i*/lc_lang_key ON pub_l10n_cache (lc_lang, lc_key); Please suggest
Where was your mediawiki instance installed? Was it the default (but not recommended) /var/www/wiki? If yes, then the database update has been dealt with automatically. Otherwise cd to the mediawiki instance and call the update script there.
Thanks Axel to look in to. I have test update using 2 mehtod 1) Using update script Yes i already tired to call update script from my installed location as cd /var/www/wiki/ ; php /usr/share/mediawiki/maintenance/update.php update script is running and its ok, but after that, wiki shows blank page, 2) Manually import new table Now restore old database dump and create sql file for import new table (pub_l10n_cache) . After import same thing happen wiki shows blank page, and below error appears in log. [Sun May 08 11:16:51 2011] [error] [client x.x.x.x] PHP Fatal error: Call to undefined method MediaWiki::initialize() in /var/www/wiki/public/index.php on line 117 Please suggest. As in past i used the same methods for update and never faced this problem.
Concerning the blank page, you can check the error log under /var/log/ to see what the issue is. Also your wiki seems to not live under /var/www/wiki/, but /var/www/wiki/public/ according to your error message.
This is not the issue yes i have use my own custom path (/var/www/wiki/public/) , error logs shows below only. PHP Fatal error: Call to undefined method MediaWiki::initialize() in /var/www/wiki/public/index.php on line 117
I've got the problem. :) this is becuase index.php file is updated by new version, but dir contains the old file. Line 117 difference is below < $mediaWiki->initialize( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest ); --- > $mediaWiki->performRequestForTitle( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest ); I have now symlink index.php and api.php file , and problem is resolved. Thanks.