Benvenuto,
Ospite
|
|
Hello,
I have read other topics for this subject but i have always "empty body". pdftotext is ok when i use command line. I tested to put 32 bit and leave blank encoding configuration. I tested to uncomment xpdfrc and i have always "empty body". I attached my config and my PDF file. Thank you. |
Ultima modifica: 25/04/2013 10:42 da Antonio.Motivo: add confidential tag
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi Nico,
your PDF works correctly (see image). Questa immagine è nascosta ai visitatori. Prego accedi o registrati per visualizzarli. In attachment a test PHP script "Adapter_Search_Lucene_Document_PDF.php.txt" Questo allegato è nascosto ai visitatori. Prego accedi o registrati per visualizzarli. 1. Copy in "libraries/ifile/adapter" this script 2. Rename the file "Adapter_Search_Lucene_Document_PDF.php" in "Adapter_Search_Lucene_Document_PDF.php.original" 3. Rename the file "Adapter_Search_Lucene_Document_PDF.php.txt" in "Adapter_Search_Lucene_Document_PDF.php" 4. In JiFile Filesystem section, click on "Manual Index" (floppy icon on the right) See what is written in "text area" and let us know. We have seen that you uses an Windows server, if you use IIS/6.0 you can have a problem with the "popen" function that not works correctly. For more information, if you server is linux or other, open the "Adapter_Search_Lucene_Document_PDF.php.test" and change the string: - 2>/dev/null in - 2>&1 |
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
Ultima modifica: 25/04/2013 14:06 da Giampaolo.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Thank you for your quick response.
I tested the modified file manually indexing. I have the same error "Error recovery Document Empty body". How can I test the proper operation of the popen command? Thank you in advance. |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi Nico,
you can create a new file PHP with this code: <?php
/**
* Verify popen
*/
$handle2 = null;
// scrive su file
$handle2 = popen("dir", 'r');
$contents = '';
if($handle2){
while (!feof($handle2)) {
set_time_limit(0);
$contents .= fread($handle2, 8192);
}
}
echo "CONTENT: ";
echo $contents;
die(); and run this script from browser, for exemple: http://localhost/testpopen.php if the content is empty then your IIS not works correctly with "popen" function. |
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hello,
I tested your file. The browser displays "CONTENT:". What can I do now ? Thank you. |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi,
you can install Apache 2.2 or you must use only IIS? The ability to use 'popen' or 'proc_open' or 'back tics' on Windows appears to be a "Window-/IIS limitation" or "security-feature". Windows IIS not describe this problem and this problem is not described in PHP "popen funcion" manual but you're not the only one who reports this problem. Read this topic: stackoverflow.com/questions/2294034/how-...ec-to-run-on-iis-6-0 The problem is on shell_exec but is equal, the problem is the permission on the folder and .exe files |
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
Facendo click su qualunque link della pagina si accetta il loro utilizzo. Per saperne di piu'