ZF-7856: Problem with Zend_Search_Lucene_Document_Html

Issue Type: Bug Created: 2009-09-16T03:05:20.000+0000 Last Updated: 2009-10-08T05:12:59.000+0000 Status: Resolved Fix version(s): - 1.9.4 (13/Oct/09)

Reporter: Michael Casey (junglefish) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments: - testHTMLfile.html


This issue concerns indexing .html files. My code looks like this:

$doc = Zend_Search_Lucene_Document_Html::loadHTMLFile($doc_filenameandpath, true); $index->addDocument($doc);

and generates this error:

Fatal error: Call to a member function removeChild() on a non-object in D:\wamp\www\ZendFramework-1.9.1\library\Zend\Search\Lucene\Document\Html.php on line 106

So, I go to line 106 of that file and comment out the following line:

// $head->parentNode->removeChild($head);

and all works fine. But obviously, this can't be the correct fix.


Posted by Michael Casey (junglefish) on 2009-09-16T03:06:33.000+0000

For reference, this is the .html file I have been testing with.

Posted by Alexander Veremyev (alexander) on 2009-10-05T10:12:38.000+0000


Posted by Michael Casey (junglefish) on 2009-10-08T05:12:57.000+0000

Thanks. I've installed the patched file and all works perfectly now. :-)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.