Posts: 5
Threads: 0
Joined: Sep 2012
Reputation:
0
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.
Posts: 22
Threads: 2
Joined: Jan 2012
Reputation:
0
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.
Posts: 22
Threads: 2
Joined: Jan 2012
Reputation:
0
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...
Posts: 19
Threads: 1
Joined: Feb 2011
Reputation:
0
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 ?
Posts: 5
Threads: 0
Joined: Sep 2012
Reputation:
0
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!
Posts: 19
Threads: 1
Joined: Feb 2011
Reputation:
0
Yes i have Seen it, but it still doesn't work
I think the Popen in line 73 have a problem :-(
Posts: 19
Threads: 1
Joined: Feb 2011
Reputation:
0
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 :-(
Posts: 5
Threads: 0
Joined: Sep 2012
Reputation:
0
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.
Posts: 19
Threads: 1
Joined: Feb 2011
Reputation:
0
Thank you, but I've tried it on WebInterface and php.ini and in both ways it doesn't work :-(