Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error after upload
11-28-2012, 03:15 PM, (This post was last modified: 11-28-2012, 03:16 PM by axel76.)
#1
Error after upload
Hello,
I have installed last version of software.
The script is correctly installed and works, only when I upload documents I have white page after completation.
The doc are correclty upload, but in the apache log file I see this error:

[Wed Nov 28 08:32:53 2012] [error] [client 195.62.xxx.xxx] PHP Fatal error: Class 'Zend_Search_Lucene_Document' not found in /var/www/login/lucene/Lucene/IndexedDocument.php on line 25, referer: http://www.xxxsite.com/login/out/out.Add...showtree=0

I have open /lucene/Lucene/IndexedDocument.php and I can see the class
Zend_Search_Lucene_Document in the page..

What can be ?

I have Ubuntu 10

Regards,
Alex
Reply
11-28-2012, 04:07 PM,
#2
RE: Error after upload
(11-28-2012, 03:15 PM)axel76 Wrote: Hello,
I have installed last version of software.
The script is correctly installed and works, only when I upload documents I have white page after completation.
The doc are correclty upload, but in the apache log file I see this error:

[Wed Nov 28 08:32:53 2012] [error] [client 195.62.xxx.xxx] PHP Fatal error: Class 'Zend_Search_Lucene_Document' not found in /var/www/login/lucene/Lucene/IndexedDocument.php on line 25, referer: http://www.xxxsite.com/login/out/out.Add...showtree=0

I have open /lucene/Lucene/IndexedDocument.php and I can see the class
Zend_Search_Lucene_Document in the page..

In LetoDMS_Lucene/Lucene.php the parent class Zend_Search_Lucene_Document is included with

PHP Code:
require_once('Zend/Search/Lucene.php'); 

make sure is is installed and in your php include path.

Uwe
Reply
11-28-2012, 04:19 PM,
#3
RE: Error after upload
TNX,
but where can I set the php include path ?

Regards,

Alex
Reply
11-28-2012, 04:23 PM,
#4
RE: Error after upload
(11-28-2012, 04:19 PM)axel76 Wrote: TNX,
but where can I set the php include path ?

Just add

echo ini_get('include_path');

at the beginning of inc/inc.DBInit.php and call any page in letodms.
It will print it on the very top of the page.

Uwe
Reply
11-29-2012, 12:56 AM,
#5
RE: Error after upload
Hello, I have try but not work again..
My path is:

/var/www/login/:.:/usr/share/php:/usr/local/ZendFramework/library

I have changed /lucene/Lucene.php with this configuration:

----------------------------------------------------------------------------------------------

// require_once('Zend/Search/Lucene.php');

require_once('/var/www/login/lucene/Lucene.php');

/**
* @uses Zend_Search_Lucene_Analysis_TokenFilter_Stopwords
*/
// require_once("Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php");

require_once("/var/www/login/lucene/Lucene/Analysis/TokenFilter/StopWords.php");

/**
* @uses LetoDMS_Lucene_Indexer
*/
require_once('Lucene/Indexer.php');

/**
* @uses LetoDMS_Lucene_Search
*/
require_once('Lucene/Search.php');

/**
* @uses LetoDMS_Lucene_IndexedDocument
*/
require_once('Lucene/IndexedDocument.php')

-------------------------------------------------------------------------------------------------

Now in log file I have the follow:

PHP Fatal error: require_once(): Failed opening required '/var/www/login/lucene/Lucene/Analysis/TokenFilter/StopWords.php' (include_path='/var/www/login/:.:/usr/share/php:/usr/local/ZendFramework/library') in /var/www/login/lucene/Lucene.php on line 32, referer: http://www.archiviato.net/login/out/out....showtree=0

In the folder Lucene, I have no folder called Analisys..

Best Regards,

Alex
Reply
11-29-2012, 01:31 AM,
#6
RE: Error after upload
(11-29-2012, 12:56 AM)axel76 Wrote: Hello, I have try but not work again..
My path is:

/var/www/login/:.:/usr/share/php:/usr/local/ZendFramework/library

I have changed /lucene/Lucene.php with this configuration:

----------------------------------------------------------------------------------------------

// require_once('Zend/Search/Lucene.php');

require_once('/var/www/login/lucene/Lucene.php');

/**
* @uses Zend_Search_Lucene_Analysis_TokenFilter_Stopwords
*/
// require_once("Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php");

require_once("/var/www/login/lucene/Lucene/Analysis/TokenFilter/StopWords.php");

/**
* @uses LetoDMS_Lucene_Indexer
*/
require_once('Lucene/Indexer.php');

/**
* @uses LetoDMS_Lucene_Search
*/
require_once('Lucene/Search.php');

/**
* @uses LetoDMS_Lucene_IndexedDocument
*/
require_once('Lucene/IndexedDocument.php')

-------------------------------------------------------------------------------------------------

Now in log file I have the follow:

PHP Fatal error: require_once(): Failed opening required '/var/www/login/lucene/Lucene/Analysis/TokenFilter/StopWords.php' (include_path='/var/www/login/:.:/usr/share/php:/usr/local/ZendFramework/library') in /var/www/login/lucene/Lucene.php on line 32, referer: http://www.archiviato.net/login/out/out....showtree=0

In the folder Lucene, I have no folder called Analisys..

Best Regards,

Alex

I have the Zend Framework located in a folder Zend. In there i had to go to Search -> Lucene and found the Folder Analysis. This is a part of the Zend Framework.

Do you have access to the directory where Zend Framework resides?

Daniel


Reply
11-29-2012, 02:45 AM, (This post was last modified: 11-29-2012, 03:36 AM by axel76.)
#7
RE: Error after upload
I Have installed Zend Framework with apt, so I think it is default dir of Ubuntu 10.4 LTS server.

I have search "Zend" and find this folders:

/usr/share/php/Zend

and

/usr/share/php/libzend-framwork-php/Zend

The correct path is the first.

I have modify the file as:

----------------------------------------------------------------------------------------------

require_once('/usr/share/php/Zend/Search/Lucene.php');

/**
* @uses Zend_Search_Lucene_Analysis_TokenFilter_Stopwords
*/

require_once("/usr/share/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php");

/**
* @uses LetoDMS_Lucene_Indexer
*/
require_once('Lucene/Indexer.php');

/**
* @uses LetoDMS_Lucene_Search
*/
require_once('Lucene/Search.php');

/**
* @uses LetoDMS_Lucene_IndexedDocument
*/
require_once('Lucene/IndexedDocument.php')

-------------------------------------------------------------------------------------------------

Now there is another log error:

PHP Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'Index doesn't exists in the specified directory.' in /usr/share/php/Zend/Search/Lucene.php:551\nStack trace:\n#0 /usr/share/php/Zend/Search/Lucene.php(225): Zend_Search_Lucene->__construct('/var/data/lucen...', false)\n#1 /var/www/login/lucene/Lucene/Indexer.php(33): Zend_Search_Lucene::open('/var/data/lucen...')\n#2 /var/www/login/op/op.AddDocument.php(194): LetoDMS_Lucene_Indexer::open('/var/data/lucen...')\n#3 {main}\n thrown in /usr/share/php/Zend/Search/Lucene.php on line 551, referer: http://www.webxxxx.net/login/out/out.Add...showtree=0

Search in this Forum, and I find Solution !

Login as Admin --> Admin tools --> Create Full text index

IT WORKS Smile

TNX A LOT !!
Reply
11-29-2012, 01:33 PM,
#8
RE: Error after upload
(11-29-2012, 02:45 AM)axel76 Wrote: I have search "Zend" and find this folders:

/usr/share/php/Zend

and

/usr/share/php/libzend-framwork-php/Zend

The correct path is the first.

I have modify the file as:

----------------------------------------------------------------------------------------------

require_once('/usr/share/php/Zend/Search/Lucene.php');

/**
* @uses Zend_Search_Lucene_Analysis_TokenFilter_Stopwords
*/

require_once("/usr/share/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php");

Setting absolute paths is always an option but better would be to set you php include_dir propperly.

Uwe
Reply
11-29-2012, 10:12 PM,
#9
RE: Error after upload
Hi Uwe,

But why the user is needed to create the fulltext index first to prevent facing this error? I had this also when installing the RC and the solution was to create the Fulltext index.

I did note that in 3.3.x, but i'm not sure if it doesn't happen there.

Maybe there should be a hint in the installation document to create the fulltext index before uploading the first document.

Daniel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Contact Us | LetoDMS Community Forum | Return to Top | | Lite (Archive) Mode | RSS Syndication