Last modified: 2009-04-03 13:09:16 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}
s/dafault/default: <imagemap> Image:FDR_video_montage.ogg|200px default [[Image:test.jpg]] desc none </imagemap>
Assigned to extension developer
Works for me. Added a couple of extra validity checks in r41728 anyway, just in case.
*** Bug 18324 has been marked as a duplicate of this bug. ***