Last modified: 2009-04-03 13:09:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15316, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13316 - Imagemap with an .ogg file spit outs DOMExceptions
Imagemap with an .ogg file spit outs DOMExceptions
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Tim Starling
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-10 23:04 UTC by Raimond Spekking
Modified: 2009-04-03 13:09 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Raimond Spekking 2008-03-10 23:04:38 UTC
Try to save or preview a page with this content:

<imagemap>
Image:FDR_video_montage.ogg|200px
dafault [[Image:FDR_video_montage.ogg]]
desc none
</imagemap>

You will get:

exception 'DOMException' with message 'DOMXPath::__construct() expects parameter 1 to be DOMDocument, boolean given' in /home/wikipedia/common/php-1.5/extensions/ImageMap/ImageMap_body.php:74 Stack trace: #0 /home/wikipedia/common/php-1.5/extensions/ImageMap/ImageMap_body.php(74): DOMXPath->__construct(false) #1 [internal function]: ImageMap::render('?Image:FDR_vide...', Array, Object(Parser)) #2 /home/wikipedia/common/php-1.5/includes/Parser.php(3221): call_user_func_array(Array, Array) #3 /home/wikipedia/common/php-1.5/includes/Preprocessor_DOM.php(961): Parser->extensionSubstitution(Array, Object(PPFrame_DOM)) #4 /home/wikipedia/common/php-1.5/includes/Parser.php(2647): PPFrame_DOM->expand(Object(PPNode_DOM), 0) #5 /home/wikipedia/common/php-1.5/includes/Parser.php(947): Parser->replaceVariables('?Imag...') #6 /home/wikipedia/common/php-1.5/includes/Parser.php(311): Parser->internalParse('?Imag...') #7 /home/wikipedia/common/php-1.5/includes/EditPage.php(1568): Parser->parse('?Imag...', Object(Title), Object(ParserOptions)) #8 /home/wikipedia/common/php-1.5/includes/EditPage.php(1158): EditPage->getPreviewText() #9 /home/wikipedia/common/php-1.5/includes/EditPage.php(475): EditPage->showEditForm() #10 /home/wikipedia/common/php-1.5/includes/EditPage.php(343): EditPage->edit() #11 /home/wikipedia/common/php-1.5/includes/Wiki.php(445): EditPage->submit() #12 /home/wikipedia/common/php-1.5/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #13 /home/wikipedia/common/php-1.5/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest)) #14 /usr/local/apache/common-local/live-1.5/index.php(3): require('/home/wikipedia...') #15 {main}
Comment 1 Raimond Spekking 2008-03-10 23:19:25 UTC
s/dafault/default:

<imagemap>
Image:FDR_video_montage.ogg|200px
default [[Image:test.jpg]]
desc none
</imagemap>
Comment 2 Siebrand Mazeland 2008-08-17 22:13:26 UTC
Assigned to extension developer
Comment 3 Tim Starling 2008-10-06 06:07:06 UTC
Works for me. Added a couple of extra validity checks in r41728 anyway, just in case.
Comment 4 Chad H. 2009-04-03 13:09:16 UTC
*** Bug 18324 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links