![]() |
Error after upload - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11) +--- Thread: Error after upload (/showthread.php?tid=598) |
Error after upload - axel76 - 11-28-2012 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.AddDocument.php?folderid=5&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 RE: Error after upload - steinm - 11-28-2012 (11-28-2012, 03:15 PM)axel76 Wrote: Hello, 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 RE: Error after upload - axel76 - 11-28-2012 TNX, but where can I set the php include path ? Regards, Alex RE: Error after upload - steinm - 11-28-2012 (11-28-2012, 04:19 PM)axel76 Wrote: TNX, 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 RE: Error after upload - axel76 - 11-29-2012 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.AddDocument.php?folderid=5&showtree=0 In the folder Lucene, I have no folder called Analisys.. Best Regards, Alex RE: Error after upload - Daniel - 11-29-2012 (11-29-2012, 12:56 AM)axel76 Wrote: Hello, I have try but not work again.. 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 RE: Error after upload - axel76 - 11-29-2012 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.AddDocument.php?folderid=5&showtree=0 Search in this Forum, and I find Solution ! Login as Admin --> Admin tools --> Create Full text index IT WORKS ![]() TNX A LOT !! RE: Error after upload - steinm - 11-29-2012 (11-29-2012, 02:45 AM)axel76 Wrote: I have search "Zend" and find this folders: Setting absolute paths is always an option but better would be to set you php include_dir propperly. Uwe RE: Error after upload - Daniel - 11-29-2012 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 |