Page MenuHomePhabricator

Special:Import doesn't warn if XMLReader isn't available
Closed, ResolvedPublic

Description

I was able to set up a wiki successfully, but when I tried to import a dump file, I got a white screen. Error log showed:

PHP Fatal error:  Class 'XMLReader' not found in ../includes/Import.php
on line 931, referer: http://.../Special:Import

Version: 1.21.x
Severity: normal

Details

Reference
bz43868

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 1:36 AM
bzimport set Reference to bz43868.
bzimport added a subscriber: Unknown Object (MLST).

Installing php-xml (this is a Fedora box) solved the problem.

Hi I am new here and would like to work on this bug.
If I am correct, it depends on the /includes/Import.php file and the error occurs because of no error handling in the WikiImporter class constructor. Please correct me if I am wrong.

(In reply to comment #1)

Installing php-xml (this is a Fedora box) solved the problem.

I wonder if the patch for bug 42205 would also influence / fix this ticket.

Change 184554 had a related patch set uploaded (by TTO):
Enable entity loader and handle errors nicely in WikiImporter constructor

https://gerrit.wikimedia.org/r/184554

Patch-For-Review

Change 184554 merged by jenkins-bot:
Enable entity loader and handle errors nicely in WikiImporter constructor

https://gerrit.wikimedia.org/r/184554

Ciencia_Al_Poder closed this task as Resolved.Aug 25 2015, 3:35 PM
Ciencia_Al_Poder assigned this task to TTO.
Ciencia_Al_Poder set Security to None.
Ciencia_Al_Poder removed a subscriber: wikibugs-l-list.