Here's an error that seems to affect at least last release.
This excerpt is taken from the demo online. I am able to replay this error
when creating a new Task. After selecting a different Project this error is
shown in the "Possible Duplicates" section.
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'Index doesn't exists in the specified directory.' in
/var/www/alloc_source/zend/Zend/Search/Lucene.php:566 Stack trace: #0
/var/www/alloc_source/task/updateTaskDupes.php(27):
Zend_Search_Lucene->__construct('/var/www/demo.a...') #1 {main} thrown in
/var/www/alloc_source/zend/Zend/Search/Lucene.php on line 566
A similar error happens when saving a Task:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'Index doesn't exists in the specified directory.' in
/var/www/alloc_source/zend/Zend/Search/Lucene.php:566 Stack trace: #0
/var/www/alloc_source/zend/Zend/Search/Lucene.php(225):
Zend_Search_Lucene->__construct('/var/www/demo.a...', false) #1
/var/www/alloc_source/shared/lib/db_entity.inc.php(372):
Zend_Search_Lucene::open('/var/www/demo.a...') #2
/var/www/alloc_source/task/lib/task.inc.php(113): db_entity->save() #3
/var/www/alloc_source/task/task.php(163): task->save() #4 {main} thrown in
/var/www/alloc_source/zend/Zend/Search/Lucene.php on line 566
Hope this helps finding and solving the issue.
Regards,
Dinis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can see it working on the demo site, with the same procedure, so I think it
has something to do with my setup. I'll try to investigate further when I have
the chance and will report a solution (if found obviously).
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Here's an error that seems to affect at least last release.
This excerpt is taken from the demo online. I am able to replay this error
when creating a new Task. After selecting a different Project this error is
shown in the "Possible Duplicates" section.
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'Index doesn't exists in the specified directory.' in
/var/www/alloc_source/zend/Zend/Search/Lucene.php:566 Stack trace: #0
/var/www/alloc_source/task/updateTaskDupes.php(27):
Zend_Search_Lucene->__construct('/var/www/demo.a...') #1 {main} thrown in
/var/www/alloc_source/zend/Zend/Search/Lucene.php on line 566
A similar error happens when saving a Task:
Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message
'Index doesn't exists in the specified directory.' in
/var/www/alloc_source/zend/Zend/Search/Lucene.php:566 Stack trace: #0
/var/www/alloc_source/zend/Zend/Search/Lucene.php(225):
Zend_Search_Lucene->__construct('/var/www/demo.a...', false) #1
/var/www/alloc_source/shared/lib/db_entity.inc.php(372):
Zend_Search_Lucene::open('/var/www/demo.a...') #2
/var/www/alloc_source/task/lib/task.inc.php(113): db_entity->save() #3
/var/www/alloc_source/task/task.php(163): task->save() #4 {main} thrown in
/var/www/alloc_source/zend/Zend/Search/Lucene.php on line 566
Hope this helps finding and solving the issue.
Regards,
Dinis
I was able to circumvent the issue by deleting a folder (task) inside the
attachments_dir/search/
This disables a call to the Zend function that would raise the error so
basically some intended functionality will be ignored.
Hope this might help someone.
The call is done in:
1 /var/www/alloc_source/shared/lib/db_entity.inc.php(372):
Zend_Search_Lucene::open('/var/www/demo.a...')
looking at the if I realized that if I removed the folder, that block would be
ignored by the if...
scorpiondi,
thanks for this update and for the addition to the group-knowledge. Much
appreciated.
-- Con
I'm not sure if this is solved in the head version of alloc so I would like to
bump this issue.
Thank you.
I can't replicate this error at all.
Can you please elaborate on the step by step procedure that you followed to
produce the error?
(ideally on the allocpsa.com demo site).
I can see it working on the demo site, with the same procedure, so I think it
has something to do with my setup. I'll try to investigate further when I have
the chance and will report a solution (if found obviously).
Thank you.
Run this to re-create the task search index:
delete from patchLog where patchName = 'patch-00158-alla.php';
go to http://your_alloc/installation/patch.php
apply patch 158.
see if error re-occurs.
check the perms of the files in the ATTACHMENTS_DIR/search/ directory. The
webserver needs read and write access to that.
Thank you.
That did the trick. There was probably some issue running that patch and it
got flagged as "done" though it didn't run successfully.
View and moderate all "Developer" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
You can avoid the error like this:
$index = new Zend_Search_Lucene($index_file, true);