Page MenuHomePhabricator

DJVU image page throws an exception 'String could not be parsed as XML'
Closed, ResolvedPublic

Description

Author: gmaxwell

Description:
Uploaded a fairly boring djvu file.
http://commons.wikimedia.org/wiki/Image:Mozart_Sonate_%28manuscript%29.djvu

Loading that page produces the following output:
exception 'Exception' with message 'String could not be parsed as XML' in
/usr/local/apache/common-local/php-1.5/includes/Image.php:2302 Stack trace: #0
/usr/local/apache/common-local/php-1.5/includes/Image.php(2302):
SimpleXMLElement->__construct('') #1
/usr/local/apache/common-local/php-1.5/includes/Image.php(2325):
Image->initializeMultiPageXML() #2
/usr/local/apache/common-local/php-1.5/includes/ImagePage.php(254):
Image->pageCount() #3
/usr/local/apache/common-local/php-1.5/includes/ImagePage.php(48):
ImagePage->openShowImage() #4
/usr/local/apache/common-local/php-1.5/includes/Wiki.php(338): ImagePage->view()
#5 /usr/local/apache/common-local/php-1.5/includes/Wiki.php(50):
MediaWiki->performAction(Object(OutputPage), Object(ImagePage), Object(Title),
Object(User), Object(WebRequest)) #6
/usr/local/apache/common-local/php-1.5/index.php(47):
MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User),
Object(WebRequest)) #7 /usr/local/apache/common-local/live-1.5/index.php(3):
require('/usr/local/apac...') #8 {main}


Version: unspecified
Severity: major
OS: Linux

Details

Reference
bz8263

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:31 PM
bzimport set Reference to bz8263.
bzimport added a subscriber: Unknown Object (MLST).

Uploading
http://commons.wikimedia.org/wiki/Image:TheCollectedWorksOfMahatmaGandhiVolVIII.djvu

I got the following:

exception 'Exception' with message 'String could not be parsed as XML' in
/usr/local/apache/common-local/php-1.5/includes/Image.php:2302 Stack trace: #0
/usr/local/apache/common-local/php-1.5/includes/Image.php(2302):
SimpleXMLElement->__construct('') #1
/usr/local/apache/common-local/php-1.5/includes/Image.php(2325):
Image->initializeMultiPageXML() #2
/usr/local/apache/common-local/php-1.5/includes/ImagePage.php(254):
Image->pageCount() #3
/usr/local/apache/common-local/php-1.5/includes/ImagePage.php(48):
ImagePage->openShowImage() #4
/usr/local/apache/common-local/php-1.5/includes/Wiki.php(338): ImagePage->view()
#5 /usr/local/apache/common-local/php-1.5/includes/Wiki.php(50):
MediaWiki->performAction(Object(OutputPage), Object(ImagePage), Object(Title),
Object(User), Object(WebRequest)) #6
/usr/local/apache/common-local/php-1.5/index.php(47):
MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User),
Object(WebRequest)) #7 /usr/local/apache/common-local/live-1.5/index.php(3):
require('/usr/local/apac...') #8 {main}

All test cases appear to be fixed. The bug was probably related to the slow
speed of djvutoxml:

https://sourceforge.net/tracker/?func=detail&atid=406583&aid=1704049&group_id=32953

Try action=purge on the image description page before reopening or re-reporting
this bug.

See also bug 9327.