Bug 215968

Summary: Updgrade from FC5 to FC6 crashes mediawiki
Product: [Fedora] Fedora Reporter: Vitaliy S <yilativs>
Component: mediawikiAssignee: Axel Thimm <axel.thimm>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: medium    
Version: 6CC: extras-qa
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: 2006-11-23 16:35:16 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:
Attachments:
Description Flags
Patch to fix spec file. none

Description Vitaliy S 2006-11-16 17:03:47 UTC
Description of problem:
Updgrade from FC5 to FC6 crashes mediawiki 

Version-Release number of selected component (if applicable): mediawiki-1.8.2-5.fc6

How reproducible:
Install mediawiki in fedora 5 upgrade to fedora 6
 
Actual results:
http://localhost/mediawiki
returns 
MediaWiki internal error.

Original exception: exception 'MWException' with message 'Utf8Case.ser is
missing, please run "make" in the serialized directory
' in /var/www/mediawiki/languages/Language.php:1718
Stack trace:
#0 /var/www/mediawiki/languages/Language.php(840): Language::getCaseMaps()
#1 /var/www/mediawiki/languages/Language.php(1686): Language->lc('??????????')
#2 /var/www/mediawiki/languages/Language.php(1644): Language->fixUpSettings()
#3 /var/www/mediawiki/languages/Language.php(1056): Language->load()
#4 /var/www/mediawiki/languages/Language.php(1069): Language->getMagicWords()
#5 /var/www/mediawiki/includes/MagicWord.php(157):
Language->getMagic(Object(MagicWord))
#6 /var/www/mediawiki/includes/MagicWord.php(128): MagicWord->load('int')
#7 /var/www/mediawiki/includes/Parser.php(3872): MagicWord::get('int')
#8 /var/www/mediawiki/includes/Parser.php(142): Parser->setFunctionHook('int',
Array, 1)
#9 [internal function]: Parser->firstCallInit()
#10 /var/www/mediawiki/includes/StubObject.php(32): call_user_func_array(Array,
Array)
#11 /var/www/mediawiki/includes/StubObject.php(40):
StubObject->_call('firstCallInit', Array)
#12 [internal function]: StubObject->__call('firstCallInit', Array)
#13 /var/www/mediawiki/includes/MessageCache.php(553): StubObject->firstCallInit()
#14 /var/www/mediawiki/includes/MessageCache.php(499):
MessageCache->transform('???????????????...')
#15 /var/www/mediawiki/includes/GlobalFunctions.php(423):
MessageCache->get('mainpage', true, true)
#16 /var/www/mediawiki/includes/GlobalFunctions.php(382):
wfMsgGetKey('mainpage', true, true, true)
#17 /var/www/mediawiki/includes/GlobalFunctions.php(331): wfMsgReal('mainpage',
Array, true, true)
#18 /var/www/mediawiki/includes/Wiki.php(74): wfMsgForContent('mainpage')
#19 /var/www/mediawiki/index.php(29): MediaWiki->checkInitialQueries(NULL,
'view', Object(StubObject), Object(WebRequest), Object(StubContLang))
#20 {main}

Additional info:
Tested on French  and Russian locale

Comment 1 Vitaliy S 2006-11-16 17:46:11 UTC
I found out that mediawiki tar ball from sf.net contains serialized folder while
package provided with Red Had doesn't. 
Hope it will help.
Regards
Vitaliy S

Comment 2 Vitaliy S 2006-11-16 18:02:44 UTC
I found the way to fix the problem manually
I copied serialized folder from sf.net mediawiki 1.8.2 tar ball to
/var/www/mediawiki
#cd /var/www/mediawiki
#make
after that I copied  AdminSettings.php from same tar ball to /var/www/mediawiki
#cd /var/www/mediawiki/maintenance
#php update.php

and after that mediawiki start working.

Regards,
Vitaliy S



Comment 3 Emily Brantley 2006-11-23 16:05:57 UTC
Created attachment 141997 [details]
Patch to fix spec file.

Comment 4 Emily Brantley 2006-11-23 16:06:51 UTC
I've ever so slightly edited the spec file provided with the mediawiki 1.8.2-5
SRPM from Fedora Extras.  This fixes the issues described by bug 215968 (this
bug) and 214758 (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=214758). 
I've tested it here, and it works completely, as expected.

Bug 213997 (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=213997), being
a duplicate of this one, would also be closed by this fix.  I don't know how to
mark it as such a duplicate.

Attached a patch for the spec file (I'm not good at diff, so I'm not sure if
it's backwards or not).

Comment 5 Axel Thimm 2006-11-23 16:35:16 UTC

*** This bug has been marked as a duplicate of 212600 ***