Welcome, Guest
Please Login or Register.    Lost Password?

View file is not working properly.
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: View file is not working properly.
#4617
View file is not working properly. 2 Months, 2 Weeks ago Karma: 0
Hi

I installed the Owl 1.00 20100104. Everything is working fine. I already setup my owl.php file. I use CentOS 5.4 64-bit, but the only thing that I don't found in my server is pdftoppm because is not anymore included in the package poppler-utils.x86_64. So when I tried to open any pdf file using Firefox the application is freeze or IE opens a windows but nothing is comes up, and the same case for word 2000, 2003, 2007 documents, the document is open in read-only mode, but is blank.

I forgot something, when I was setup my owl.php I used the option to store the documents in the database.

Please, can you help to figure out this issue?

Thanks

Luis
Luis
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4618
Re:View file is not working properly. 2 Months, 2 Weeks ago Karma: 28
One Thing I can think of is that the owlTmp Dir location in the admin site Feature section is not configured to something apache/php can access.

Have you turned DEBUG on in owl.php to see of more info / errors are shown? Also check your apache error logs.

B0zz
Owl DEV Team
Moderator
Posts: 2220
graph
User Offline Click here to see the profile of this user
Gender: Male b0zzit Location: Ottawa, Ontario, Canada
The administrator has disabled public write access.
 
#4619
Re:View file is not working properly. 2 Months, 2 Weeks ago Karma: 0
Thanks for your quickly answer. I turned DEBUG on, and I get this error messages in the /var/log/httpd/error_log

[Fri Jun 25 11:44:05 2010] [error] [client 10.0.0.53] PHP Warning: Invalid argu
ment supplied for foreach() in /var/www/html/owl-1.00/lib/header.inc on line 184
, referer: intranet/index.php?login=1&currentdb=0
[Fri Jun 25 11:46:10 2010] [error] [client 10.0.0.53] PHP Warning: filesize() [
<a href='function.filesize'>function.filesize</a>]: SAFE MODE Restriction in eff
ect. The script whose uid/gid is 0/0 is not allowed to access /tmp/owltmp.c6efa
189a687f2f60a87803605163387 owned by uid/gid 48/48 in /var/www/html/owl-1.00/vie
w.php on line 114, referer: intranet/view.php?sess=c6efa189a687f2f60a8780
3605163387&parent=16&expand=0&order=name&curview=0&sortname=ASC&id=8&action=file
_details&currentdb=0
[Fri Jun 25 11:46:10 2010] [error] [client 10.0.0.53] PHP Warning: filesize() [
<a href='function.filesize'>function.filesize</a>]: stat failed for /tmp/owltmp.
c6efa189a687f2f60a87803605163387/AGENDA 06-27-08.doc in /var/www/html/owl-1.00/v
iew.php on line 114, referer: intranet/view.php?sess=c6efa189a687f2f60a87
803605163387&parent=16&expand=0&order=name&curview=0&sortname=ASC&id=8&action=fi
le_details&currentdb=0
[Fri Jun 25 11:46:10 2010] [error] [client 10.0.0.53] PHP Warning: readfile() [
<a href='function.readfile'>function.readfile</a>]: Unable to access /tmp/owltmp
.c6efa189a687f2f60a87803605163387/AGENDA 06-27-08.doc in /var/www/html/owl-1.00/
view.php on line 120, referer: intranet/view.php?sess=c6efa189a687f2f60a8
7803605163387&parent=16&expand=0&order=name&curview=0&sortname=ASC&id=8&action=f
ile_details&currentdb=0
[Fri Jun 25 11:46:10 2010] [error] [client 10.0.0.53] PHP Warning: readfile(/tm
p/owltmp.c6efa189a687f2f60a87803605163387/AGENDA 06-27-08.doc) [<a href='functio
n.readfile'>function.readfile</a>]: failed to open stream: No such file or direc
tory in /var/www/html/owl-1.00/view.php on line 120, referer: intranet/vi
ew.php?sess=c6efa189a687f2f60a87803605163387&parent=16&expand=0&order=name&curvi
ew=0&sortname=ASC&id=8&action=file_details&currentdb=0
[Fri Jun 25 11:46:10 2010] [error] [client 10.0.0.53] PHP Warning: unlink() [<a
href='function.unlink'>function.unlink</a>]: SAFE MODE Restriction in effect.
The script whose uid/gid is 0/0 is not allowed to access /tmp/owltmp.c6efa189a68
7f2f60a87803605163387 owned by uid/gid 48/48 in /var/www/html/owl-1.00/view.php
on line 124, referer: intranet/view.php?sess=c6efa189a687f2f60a8780360516
3387&parent=16&expand=0&order=name&curview=0&sortname=ASC&id=8&action=file_detai
ls&currentdb=0

After see that error messages I decided change the /tmp folder inside the site feature. Now I get this message and I can't access the intranet program.

(Site Feature) Owl TmpDir: /tmp/owl/Documents is not accessible or is not writeable
(Create IT, or Changed the location in the admin Site Features Section)

Please, can you give your advise to fix this?
Luis
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4620
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 28
The big issue here is:

"SAFE MODE Restriction in effect."


This causes all kinds of issues with Owl, and you will have to turn it off.


B0zz
Owl DEV Team
Moderator
Posts: 2220
graph
User Offline Click here to see the profile of this user
Gender: Male b0zzit Location: Ottawa, Ontario, Canada
The administrator has disabled public write access.
 
#4621
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 0
I turn off the SAFE MODE but I don't how to fix this:

Site Feature) Owl TmpDir: /tmp/owl/Documents is not accessible or is not writeable
(Create IT, or Changed the location in the admin Site Features Section)
Luis
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4622
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 0
After restart HTTPD service I get access to the intranet, and also I returned the /tmp folder to the original state. But I can't see any file or folder in the browse option.
Do I need to do something else?
Luis
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4623
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 0
Thanks for your help. Now, I can see the PDF files. The site features, I just need to select every option again and every file comes up, but word files continue with the same problem; I can't see none of the content of the file.
Luis
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4625
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 28
HI,

If all the other files work then I don't understand why word files would not work. Are you sure the file is there on the file system?

B0zz
Owl DEV Team
Moderator
Posts: 2220
graph
User Offline Click here to see the profile of this user
Gender: Male b0zzit Location: Ottawa, Ontario, Canada
The administrator has disabled public write access.
 
#4628
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 0
I upload the file. I can see the file in the browse through OWL program, but I use the option to save files in a database. I don't know if that is the problem.
Luis
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4629
Re:View file is not working properly. 2 Months, 1 Week ago Karma: 28
yes the issue can be because you are storing the file to the database. In that case there are a few extra steps to extract the file from the database, and temporarily store it on the file system for viewing...

If that fails, or the temp location for the file is not writeable by the web server process then the view will fail.

Turn debug on in the owl.php and / or check your apache error logs for errors related to this view action.

B0zz
Owl DEV Team
Moderator
Posts: 2220
graph
User Offline Click here to see the profile of this user
Gender: Male b0zzit Location: Ottawa, Ontario, Canada
The administrator has disabled public write access.
 
Go to topPage: 12

Ad Block