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
  • Page:
  • 1
  • 2

TOPIC: unknwon error

unknwon error 06 Sep 2012 13:44 #577

  • nabbo
  • nabbo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hello

I have been installing JiFile on a joomla version 2.5 (Linux Redhat server)

Everytime I index the files, I get this error : "Unknown error"

As I found on your FAQ, I have tried increasing the memory limit to 512 and I set the server bit to 64 (since my server is 64bits)

I still get the same error.
I there anything I need to do (I have successfully chmoded the pdf2text binary to 755) ?

Is there any log somewhere, So I can try troubleshooting the stuff ?

PS : I had no problem using the indexer on my desktop windows-xp machine, for the same documents (most PDFs, some xls/doc)

Thanks
Regards
nabbo
The administrator has disabled public write access.

Re: unknwon error 06 Sep 2012 14:16 #578

  • nabbo
  • nabbo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Some progress :

I tried launching the pdftotext binary directly from shell, and it looks that I had an issue with the 64bits version. So I ran the 32bits one and in CLI it works fine. I replaced the 64bits binary with the 32bits one, but I still get the same error in the joomla GUI.

Also, the "manual indexing" function manages to get the content out of the PDF, but when I save what it find, I get a gif-spinner, and then nothing.

Anything I'm missing ?

Thanks
Last Edit: 06 Sep 2012 14:17 by nabbo.
The administrator has disabled public write access.

Re: unknwon error 06 Sep 2012 15:57 #579

  • nabbo
  • nabbo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
I got something working... dirty way.

I have been looking at the code, without understanding much (and not much time to try to...)

I commented out the lines 168 and 281 in the file IFile_Indexing_Abstract.php.
//$this->__checkIndexingFileFromKey($this->file->getKeyFile());	
//$this->__addDocument($doc);

Now I don't get any error, and it looks like I have the indexing done somehow, and I'm able to search for patterns in my frontend.

I have no idea what the side-effects of that dirty change are.


Any idea ?
The administrator has disabled public write access.

Re: unknwon error 06 Sep 2012 16:08 #580

  • Antonio
  • Antonio's Avatar
  • OFFLINE
  • Administrator
  • Posts: 486
  • Thank you received: 66
Hi,
those two lines are used to index the file, so it is not a good thing for comment :) .

Try using the following link and tell me what is the result
Of course change the first part "localhost/joomla25" and the file "C:\xampp\htdocs\joomla25\ifile\01_02-94.pdf"
http://localhost/joomla25/administrator/index.php?option=com_jifile&task=lucene.indexAjax&file=C:\xampp\htdocs\joomla25\ifile\01_02-94.pdf
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
Last Edit: 06 Sep 2012 16:11 by Antonio.
The administrator has disabled public write access.

Re: unknwon error 06 Sep 2012 16:56 #582

  • nabbo
  • nabbo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hello, and thanks for the quick reply !

I get this following json as a response :

{"file":"<absolute_path_to_my_files>/<myfile>.pdf","div":null,"cb":null,"message":"Indexing completed","result":"true"}

Please note that I changed the real path to <absolute_path_to_my_files>/<myfile> because I can't publish this information publicly.



Now if I uncomment the line (so the original code), I get an error 500 and no output on the screen.
Perharps there is some strange setting on my web server, but I cannot change much (unless I really know what to change).
The administrator has disabled public write access.

Re: unknwon error 07 Sep 2012 10:20 #583

  • Antonio
  • Antonio's Avatar
  • OFFLINE
  • Administrator
  • Posts: 486
  • Thank you received: 66
Have you tried to enable Error Reporting?
To access the page, go to Site > Global Configuration -> Server settings section
Change Error Reporting to Maximum
then retry your url.
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: unknwon error 07 Sep 2012 11:51 #584

  • nabbo
  • nabbo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
Hi

I have activated the reporting. It doesn't change anything. The page remains blank.

However, I don't understand why my documents are still indexed, even if I comment out the lines.
I have noticed that re-indexing becomes the same as indexing : the GUI doesn't tell me that the document is already indexed, but index it anyway.

Not a big deal for me for the moment. But if you have an idea about the problem, it would be great

Thanks
The administrator has disabled public write access.

Re: unknwon error 14 Sep 2012 09:55 #593

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 43
Hi,
you have configured duplicate field in JiFile Configuration (see image)


This image is hidden for guests. Please log in or register to see it.
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.
  • Page:
  • 1
  • 2