Zend Framework

Problem with Zend_Search_Lucene_Document_Html

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: 1.9.4
  • Component/s: Zend_Search_Lucene
  • Labels:
    None

Description

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.

Activity

Hide
Michael Casey added a comment -

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

Show
Michael Casey added a comment - For reference, this is the .html file I have been testing with.
Hide
Alexander Veremyev added a comment -

Fixed

Show
Alexander Veremyev added a comment - Fixed
Hide
Michael Casey added a comment -

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

Show
Michael Casey added a comment - Thanks. I've installed the patched file and all works perfectly now.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: