Bug 702930

Summary: Upgrade to mediawiki-1.16.4-58.fc14.i686 not working
Product: [Fedora] Fedora Reporter: Muzi <muzammel.linux>
Component: mediawikiAssignee: Axel Thimm <Axel.Thimm>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14CC: Axel.Thimm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-26 14:06:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Muzi 2011-05-08 12:32:05 UTC
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

Comment 1 Axel Thimm 2011-05-08 20:53:00 UTC
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.

Comment 2 Muzi 2011-05-09 12:32:13 UTC
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.

Comment 3 Axel Thimm 2011-05-14 07:27:28 UTC
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.

Comment 4 Muzi 2011-05-17 17:26:57 UTC
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

Comment 5 Muzi 2011-05-26 14:06:24 UTC
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.