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
On Tue, Jun 10, 2008 at 08:37, Gsandtner Michael michael.gsandtner@wien.gv.at 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. :)
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
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_...
-- 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@marmot.org voice: +1.970.242.3331 ext 116 fax: +1.970.245.7854
mediawiki-l@lists.wikimedia.org