If we update the index it always throws error

An error occurred. /batch?id=31&op=do
Fatal error: Class 'Zend_Search_Lucene_Exception' not found in

the index is updated for small portions like 1% then the error occurs.

I have installed the module and download the zend lib then copy the lib to sites/all/modules/luceneapi/lib/Zend as the installation guide.

So can anyone guide me to the right direction to fix this?

thanks in advance

Comments

cpliakas’s picture

Hi duckzland.

If you do a search, you will find similar errors in the issue queue. Unfortunately it is too generic to diagnose remotely, so it has to fall on the person receiving the error to determine why it is happening. Possible causes are permissions issues, other modules conflicting with this one, or edge-case bugs inside Search Lucene API. I wish I could help some more, but without knowing the cause of the error it is tough to provide guidance.

First, let's see if things work in a standard install of Drupal. Then we can start enabling the modules you are using on your site to see if any are conflicting. If no conflicts are discovered, we need to see where the Exception is being thrown so we can determine what happened. The "Class 'Zend_Search_Lucene_Exception' not found" error is a bit disconcerting to me, because there are a lot of checks in the module that make sure this class is loaded even if the ZF components aren't available.

Sorry for your troubles,
Chris

duckzland’s picture

Thanks for the reply,

After long hour debugging, at least in my case :
1. Removing php.ini
2. moving drupal installation to the root folder /public_html instead of /public_html/drupal

fix the problem.

duckzland’s picture

Now the problem is when we call cron.php

Fatal error: Class 'Zend_Search_Lucene_Exception' not found in /home/jargon/public_html/sites/all/modules/luceneapi/lib/Zend/Search/Lucene/Storage/File/Filesystem.php on line 66

I did some hacking by moving the Exception.php content to Filesystem.php and throws another error :

Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/luceneapi/luceneapi.error.inc' (include_path='.:/home/jargon/public_html/sites/all/modules/luceneapi/lib:/usr/local/php52/pear') in /home/jargon/public_html/includes/module.inc on line 274

I believe the 2nd error is coming from module_load_include() which not supposed to happen.

Perhaps a bug in the luceneapi_init()?

razunter’s picture

Same problem on cron

BetaTheta’s picture

Anyone found a solution to the cron problem yet?

cpliakas’s picture

Status: Active » Closed (won't fix)

Due to end of life announcement.