Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Full Text Index
#11
To unset the variable, you only have to uncomment the line in the php.ini

[...]
;safe_mode_exec_dir
[...]

Now php uses the standard value.
But I think this is a special "Problem" of the SynoBox.
Reply
#12
thank you. i will try that on my ds 212+
i think my problem with lampp is some lampp specific, because installing letoDMS on debian squeeze works fine and pdftotext is called properly.
Reply
#13
hi, can you help me how you get pdftotext working?
i am using xpdf ipkg file and extracted those pdf* binarys to /usr/syno/bin.
using that pdftotext command on console works great (it realy created some tct files. but how do i use that pdftotext used by letoDMS ?
i tryed it with safe_mode_exec_dir set to /usr/syno/bin, tryed uncomment that line. no luck...
Reply
#14
Hello,

i'm also a Synology-User and i have the same problem.
After a "few" installationproblems and a lot of help from atarifreak it works nearly perfect :-)

Now I have the same problem with the pdftotext.
I think it is located in the IndexedDocument.php on line 73-78.
The "if $fp" works, but the "$content"-variable at line 78 is always empty.

I don't understand why the open from $fp works and the read doesn't work.

Do you have an idea ?
Reply
#15
As I described in the post dated 10-03-2012, you can disable the variable via the web interface:

DSM -> Control Panel -> Web Services -> PHP Settings -> Unset the Value "Enable PHP safe_mode_exec_dir access limitations"

Remember, that this is a security-risk if your box is available for other users!
Reply
#16
Yes i have Seen it, but it still doesn't work
I think the Popen in line 73 have a problem :-(
Reply
#17
Next Test :
The count of line which will be read in Line 75 is always 1.
I've tested it with normal "safe_mode_exec_dir", with empty ""safe_mode_exec_dir" and with ""safe_mode_exec_dir" set directly to the pdftotext-directory.

It's always the same, it can't read the extracted text-file :-(
Reply
#18
(10-22-2012, 11:48 AM)Tscheggi Wrote: Next Test :
The count of line which will be read in Line 75 is always 1.
I've tested it with normal "safe_mode_exec_dir", with empty ""safe_mode_exec_dir" and with ""safe_mode_exec_dir" set directly to the pdftotext-directory.

It's always the same, it can't read the extracted text-file :-(

Have you tried to wrte a simple php script which does the same thing outside of letodms and test it with several pdf files? It may help to isolated the problem.

Uwe
Reply
#19
It looks like you changed the safe_mode_exec_dir in the php.ini - this doesn't help. You have to set it via webfrontend.

Because it is not allowed php to execute the pdftotext-binary, the result is always empty. This is not a bug in the program.
Maybe a programmer could check and catch this state and print a readable error-message.
Reply
#20
Thank you, but I've tried it on WebInterface and php.ini and in both ways it doesn't work :-(
Reply


Forum Jump:


Users browsing this thread: