Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401335 - www-apps/mediawiki-1.18.1: Missing depend on dev-lang/php[xmlreader]
Summary: www-apps/mediawiki-1.18.1: Missing depend on dev-lang/php[xmlreader]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Parpart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 15:47 UTC by matthias.grobarek
Modified: 2012-02-26 04:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matthias.grobarek 2012-01-29 15:47:21 UTC
I’ve just tried to update my MediaWiki installation from 1.16.something to 1.18.1. I executed update.php just as intended and it all seemed to work fine. Until I opened a wiki page that contained SVG images. On that page, I got the following browser error:


Fatal error: Class 'XMLReader' not found in /var/www/localhost/htdocs/mediawiki/includes/media/SVGMetadataExtractor.php on line 52


A quick search revealed that said XMLReader class is provided by PHP if it’s compiled with the +xmlreader USE flag. I didn’t have that so I remerged PHP and the everything was fine.

My conclusion is that www-apps/mediawiki (dunno which versions exactly) should depend on dev-lang/php[xmlreader].

Reproducible: Always

Steps to Reproduce:
1. Install PHP with -xmlreader.
2. Install MediaWiki.
3. Open a wiki page in your browser containing an SVG image. It may be necessary to upload an SVG image and create a page containing it beforehand.
Actual Results:  
Error message in the browser and also in the Apache log file.

Expected Results:  
Page displaying correctly.
Comment 1 Tim Harder gentoo-dev 2012-02-26 04:11:16 UTC
Fixed in CVS.