Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Upgrade 1.9.3 -> 1.12.0 fails

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


michael.gsandtner at wien

Jun 9, 2008, 11:37 PM

Post #1 of 4 (860 views)
Permalink
Upgrade 1.9.3 -> 1.12.0 fails

We successfully run mediawiki for a year with version 1.9.3
(with an extension function defining these hooks:
AutoAuthenticate, SpecialPage_initList, UserLogoutComplete).

Now we tried to upgrade to 1.12.0. The upgrade process seemed
to be OK, since the installer completed with "Installation
successfull".
However, it does not work; the error log states:
PHP Fatal error: Class 'DOMDocument' not found in
/magwien/var/gondor-phpserver/html/m13wiki/includes/Preprocess
or_DOM.php on line 566

Best regards
Michael Gsandtner
Magistrat der Stadt Wien

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


schneelocke at gmail

Jun 10, 2008, 4:24 AM

Post #2 of 4 (792 views)
Permalink
Re: Upgrade 1.9.3 -> 1.12.0 fails [In reply to]

On Tue, Jun 10, 2008 at 08:37, Gsandtner Michael
<michael.gsandtner [at] wien> wrote:
> We successfully run mediawiki for a year with version 1.9.3
> (with an extension function defining these hooks:
> AutoAuthenticate, SpecialPage_initList, UserLogoutComplete).
>
> Now we tried to upgrade to 1.12.0. The upgrade process seemed
> to be OK, since the installer completed with "Installation
> successfull".
> However, it does not work; the error log states:
> PHP Fatal error: Class 'DOMDocument' not found in
> /magwien/var/gondor-phpserver/html/m13wiki/includes/Preprocess
> or_DOM.php on line 566

Are you using FreeBSD, perchance? If so, you'll probably need php5-dom
or php5-extensions - see
http://www.gossamer-threads.com/lists/wiki/mediawiki/128445 .

HTH. :)

--
schnee

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


tstarling at wikimedia

Jun 10, 2008, 10:16 AM

Post #3 of 4 (787 views)
Permalink
Re: Upgrade 1.9.3 -> 1.12.0 fails [In reply to]

Gsandtner Michael wrote:
> We successfully run mediawiki for a year with version 1.9.3
> (with an extension function defining these hooks:
> AutoAuthenticate, SpecialPage_initList, UserLogoutComplete).
>
> Now we tried to upgrade to 1.12.0. The upgrade process seemed
> to be OK, since the installer completed with "Installation
> successfull".
> However, it does not work; the error log states:
> PHP Fatal error: Class 'DOMDocument' not found in
> /magwien/var/gondor-phpserver/html/m13wiki/includes/Preprocess
> or_DOM.php on line 566

This is a bug in MediaWiki, and could easily be fixed by backporting
r34283 and releasing 1.12.1.

-- Tim Starling


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


steve at marmot

Jun 10, 2008, 1:13 PM

Post #4 of 4 (783 views)
Permalink
Re: Upgrade 1.9.3 -> 1.12.0 fails [In reply to]

Tim Starling wrote:
> Gsandtner Michael wrote:
>> We successfully run mediawiki for a year with version 1.9.3
>> (with an extension function defining these hooks:
>> AutoAuthenticate, SpecialPage_initList, UserLogoutComplete).
>>
>> Now we tried to upgrade to 1.12.0. The upgrade process seemed
>> to be OK, since the installer completed with "Installation
>> successfull".
>> However, it does not work; the error log states:
>> PHP Fatal error: Class 'DOMDocument' not found in
>> /magwien/var/gondor-phpserver/html/m13wiki/includes/Preprocess
>> or_DOM.php on line 566
>
> This is a bug in MediaWiki, and could easily be fixed by backporting
> r34283 and releasing 1.12.1.
>

the problem is related specificaly to v1.12.0

There is a quick fix - add to LocalSettings.php:
$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';

The "permanent" fix is to install the 'php-xml' package and restart Apache:
# yum -y install php-xml (on fedora anyway)
# service httpd restart

Actually, I found the "permanent" fix was quicker to implement than the
quick fix 8^) ...but I tested each and both worked (for me)

the reference is (watch out for the line wrapping):
http://www.mediawiki.org/wiki/Project:Support_desk#.28RESOLVED.29_PHP_Fatal_error:_Class_.27DOMDocument.27_not_found_in_.2Fvar.2Fwww.2Fhtml.2Fwiki.2Fincludes.2FPreprocessor_DOM.php_on_line_566

--
Steve Lindemann __
Network Administrator //\\ ASCII Ribbon Campaign
Marmot Library Network, Inc. \\// against HTML/RTF email,
url: http://www.marmot.org //\\ vCards & M$ attachments
email: mailto:steve [at] marmot
voice: +1.970.242.3331 ext 116
fax: +1.970.245.7854



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.