I receive the following error at the bottom of the page on some but not all nodes when the MoreLikeThis block is enabled:

"Fatal error: Call to a member function removeReference() on a non-object in [redacted]/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Proxy.php on line 609"

Comments

cpliakas’s picture

Priority: Normal » Critical
Issue tags: +6.x-1.0-alpha5

Hi stevetron5k.

Thanks for the bug report. I am unsure as to why this is happening, but I will research and post back.

Thanks for posting the error message,
Chris

cpliakas’s picture

Re-tagging for the beta1 release, as it is the next expected release.

kmv’s picture

I am seeing something very similar, so similar it might be the same bug, a number of my pages they WSOD with the following PHP error:
PHP Fatal error: Call to a member function getValue() on a non-object in [...]/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Search/Query/MultiTerm.php on line 473

Initially I worked around the problem by forcing the MoreLikeThis block to not be displayed on the affected pages. But then I discovered that the problem is peppered throughout the site, so I have had to disable MoreLikeThis altogether.

I can't see anything in the affected nodes that might be causing a problem - heck some of the nodes are just some text with minimal formatting.

cpliakas’s picture

Issue tags: -6.x-1.0-beta1

Unfortunately I can't replicate this. Need some help debugging this one. Going to un-tag the issue until a cause is discovered.

Sorry for the issues,
Chris

MaxWesten’s picture

I've got the same problem.
PHP Fatal error: Call to a member function getValue() on a non-object in [...]/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Search/Query/MultiTerm.php on line 473

I'm using luceneapi_cck too.
If the option "Only return results that are language neutral or in the current language." on the /admin/settings/luceneapi_node page is enabled, it gives beforementioned error.

sevanden’s picture

I have the same issue, only admin can see the node withouth having the error. All other users seem to have problems and get the message.

Maybe it has something to do with persmissions, but i haven't figured it out myself either

sevanden’s picture

Been looking a little on the web for this, bumped into this http://stackoverflow.com/questions/1249112/zend-search-lucene-massive-si...

Could this possibly be the same thing?

daniel wentsch’s picture

Same issue, though even admin user gets the error and can't see the nodes affected by this problem.
Found the issue on 2-3 nodes of several thousand nodes so far, but there might be a lot more affected.

Update: found out that the error seems to disappear when I disable the checkbox "Taxonomy Term" under the fieldset "Node fields" on the MoreLikeThis settings page.

andrew smith’s picture

I think 'non-object's are nodes that no longer exist.
Lucene operates from its 'Index' - not from actual content, as is.
So, attempting to remove a reference to a node - that is not there - causes the error.

'Re-index' or 'Index remaining nodes' at /admin/settings/luceneapi_node/statistics should solve it.
Did for me anyway.

andjeloo’s picture

I had something similar "drupal fatal Call to a member function get_value() on a non-object". In my case it was related to signup node, I sorted out by playing with role permission (User Management\Permissions on, in my case, signup node).

cpliakas’s picture

Status: Active » Closed (won't fix)

Due to end of life announcement.