Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: LuceneServerCheck.php

LuceneServerCheck.php 18 May 2012 20:51 #416

Dear Team,

I tried more pdf indexers. There is not really good one. This why I would like to force JiFile 1.0.7 work on our server.

After install I have this error message:

Warning: fileperms() [function.fileperms]: stat failed for ...../libraries/ifile/servercheck/..//usr/bin/pdftotext in ...../libraries/ifile/servercheck/LuceneServerCheck.php on line 561

I can not index pdfs. I have success with an other program to index pdf files.

Server details:
Database Version 5.0.51a-3ubuntu5.8
Database Collation utf8_general_ci
PHP Version 5.2.4-2ubuntu5.18
Web Server Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.18 with Suhosin-Patch
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 2.5.4 Stable [ Ember ] 2-April-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

The report is good, only this line is failed:
XPDF Binaries File Unexecutable CHMOD 0755 Permission XPDF Binaries File (/usr/bin/pdftotext): - Please set to 0755 for binaries XPDF in LIN Used only for PDF file parser

WebSite: www.foolabs.com

I would like to ask for your help, please.
The administrator has disabled public write access.

Re: LuceneServerCheck.php 18 May 2012 21:31 #418

  • Antonio
  • Antonio's Avatar
  • OFFLINE
  • Administrator
  • Posts: 486
  • Thank you received: 66
Hi,
try this work around www.isapp.it/en/forum-en/7-component/166...?limit=8&start=8#405
and set permissions to 755 on the file libraries/ifile/adapter/helpers/binaries/linux/pdftotext
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.

Re: LuceneServerCheck.php 18 May 2012 23:33 #419

Dear Antonio,

Thank You very much for your fast answer.

I tried these things but these didn't help.

If I delete this part of LuceneServerCheck.php, then my failure notice disappears:
// alcuni sistemi operativi ritornano il valore n ottale
// vedi Macintosh o FreeBSD
if (!$oct) {
$configmod = substr(sprintf('%o', fileperms($path)), -4);
$trcss = (($configmod == $perm || $configmod == "0777") ? true : false) ;
} else {
$configmod = octdec(substr(sprintf('%o', fileperms($path)), -4));
$trcss = (($configmod == $perm || $configmod == "777") ? true : false) ;
}

After this the problem is during indexing: XPDF_not_executable.

So I checked the /usr/bin/pdftotex file and it was 0755
I also changed libraries/ifile/adapter/helpers/binaries/linux/pdftotext to 0755. It didn't help as well.

The "Report Check System" shows this still:
XPDF Binaries File Unexecutable CHMOD 0755 Permission XPDF Binaries File (/usr/bin/pdftotext): - Please set to 0755 for binaries XPDF in LIN Used only for PDF file parser

WebSite: www.foolabs.com

What can cause this problem?
The administrator has disabled public write access.

Re: LuceneServerCheck.php 18 May 2012 23:36 #420

I have an other problem: When I save Configuration it says that Configuration saved but above that it says: "Copy failed" twice. Can this info help to solve the problem?
The administrator has disabled public write access.

Re: LuceneServerCheck.php 05 Sep 2012 08:05 #571

I am having a similar problem. It seems to be looking up a relative file path when it should be absolute. I have tried the fixes above but it didn't make any difference. The files are 755.

Warning: fileperms() [function.fileperms]: stat failed for /var/www/hosted/demo3/public_html/recfishwest/libraries/ifile/servercheck/..//usr/bin/pdftotext in /var/www/hosted/demo3/public_html/recfishwest/libraries/ifile/servercheck/LuceneServerCheck.php on line 561

#TimeMemoryFunctionLocation
10.000387908{main}( )../index.php:0
20.05504656664JAdministrator->dispatch( )../index.php:46
30.05864986712JComponentHelper::renderComponent( )../application.php:153
40.06255028108JComponentHelper::executeComponent( )../helper.php:351
50.06265079724require_once( '/var/www/hosted/demo3/public_html/recfishwest/administrator/components/com_jifile/jifile.php' )../helper.php:383
60.06805618464JifileController->execute( )../jifile.php:36
70.06805618464JifileController->display( )../controller.php:36
80.07686422000JController->getModel( )../controller.php:108
90.07686422000JController->createModel( )../controller.php:792
100.07686422000JModel::getInstance( )../controller.php:599
110.07796532400JifileModelLucene->__construct( )../model.php:201
120.07796532996IFileFactory->getIFileIndexing( )../lucene.php:36
130.08377158148ReflectionClass->newInstance( )../IFileFactory.php:110
140.08377158852IFile_Indexing_Lucene->__construct( )../IFile_Indexing_Lucene.php:0
150.08377158904IFile_Indexing_Lucene->__createIndex( )../IFile_Indexing_Lucene.php:50
160.08377159168LuceneServerCheck->serverCheck( )../IFile_Indexing_Lucene.php:63
170.08417172988LuceneServerCheck->checkPermissionXPDF( )../LuceneServerCheck.php:130
180.08417173840LuceneServerCheck->checkPermits( )../LuceneServerCheck.php:285
190.08417174144fileperms ( )../LuceneServerCheck.php:561
The administrator has disabled public write access.

Re: LuceneServerCheck.php 05 Sep 2012 09:10 #572

Actually I 'fixed' this by editing libraries/ifile/servercheck/LuceneServerCheck.php:
FROM:
56: const BINARIES_DEFAULT = '/usr/bin/pdftotext';
TO:
56: const BINARIES_DEFAULT = 'adapter/helpers/binaries/linux/pdftotext';

PDF files seem to be indexing OK now, but I get this when viewing index detail:

( ! ) Notice: Undefined index: encoding in /var/www/hosted/demo3/public_html/recfishwest/administrator/components/com_jifile/views/filedetail/view.html.php on line 47
Call Stack
#TimeMemoryFunctionLocation
10.000389476{main}( )../index.php:0
20.05514658612JAdministrator->dispatch( )../index.php:46
30.05874988760JComponentHelper::renderComponent( )../application.php:153
40.06285030944JComponentHelper::executeComponent( )../helper.php:351
50.06295082404require_once( '/var/www/hosted/demo3/public_html/recfishwest/administrator/components/com_jifile/jifile.php' )../helper.php:383
60.06875656952JifileControllerLucene->execute( )../jifile.php:36
70.06875656952JifileControllerLucene->display( )../lucene.php:62
80.14999792488JController->display( )../lucene.php:88
90.15029793744JifileViewFiledetail->display( )../controller.php:721
The administrator has disabled public write access.

Re: LuceneServerCheck.php 05 Sep 2012 11:30 #575

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi,
the notice is not important.
Joomla in the production environment must be configured to not display errors ;)
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.