Fork me on GitHub

#1 2012-02-06 11:53:50

Jakal
Member
Registered: 2012-02-06
Posts: 11

iPad error view Files

Server: Ubuntu 11.04 + LAMP + LibreOffice

When i enter on server from iPad i can't open PDF or doc Files
.Doc error  Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/eyeOSe627b3ded9/apps/eyeVisor/events.eyecode on line 82 Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/eyeOSe627b3ded9/apps/eyeVisor/events.eyecode on line 83

.PDF Not Open on touch!

Offline

#2 2012-02-06 17:25:38

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

Hi Jakal, welcome to oneye.

Firstly, have you followed the instructions to enable LibreOffice on your server? (http://wiki.eyeos.org/Setting_Up_Office_Linux) This is probably what's causing the errors. (As you're running Ubuntu, you can safely ignore the bit about xvfb)

Secondly, the OOo/LO connector used within oneye is actually a bit dated as it only really works with OpenOffice 2.x series. Lars has considered trying something else called unoconv which should work better, but this is something you'll have to install and set-up separately.

Any further questions, don't hesitate to ask.

Last edited by s0600204 (2012-02-06 17:42:16)

Offline

#3 2012-02-07 04:25:35

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

When I whant open PDF file on touch I got nothing from iPad, but from pc I got Firefox dialog open/save.

Offline

#4 2012-02-07 10:24:50

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

Welcome back, Jakal.

The reason you're getting nothing on the iPad is most likely down to the fact you don't have a browser plugin for reading .pdf's installed on your iPad. And as Apple have disabled file uploads/downloads in Safari on iOS powered devices, you'll not be getting a dialog to save it to the iPad either.

Fortunately, oneye comes with an alternate method for viewing .pdf's, which should also prevent you from having to download the .pdf to read it in Firefox as well:

  • Login to oneye

  • Go to System preferences

  • Select "PDF Reader" in the section "System"

  • Where it says "Render Method", switch it to "HTML5 integrated renderer"

  • Hit "Save Changes"

  • Now try that .pdf

The one caveat of this method is that the 'HTML5 integrated renderer' is still under development and is, as such, somewhat buggy. It may not display your .pdf correctly... but it should display it.

Any further questions?

Offline

#5 2012-02-07 10:33:22

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

How i can change link to PDF from MSG=download&checknum=blablabla to real PDF link like site.com/file/my.pdf ?

Offline

#6 2012-02-07 16:47:02

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

My apologies, but I'm not too sure what you mean... where are you getting "MSG=download&checknum=..." from?

Screenshot, perhaps?

Offline

#7 2012-02-07 18:17:30

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

When I click to PDF file in oneye, in browser address bar I see link site.com/index.php?msg=download&checknum=445667887543 if link will be site.com/file/file.pdf iPad load file in safari or iBook!

Offline

#8 2012-02-08 00:51:21

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

Okay, Jakal, I think I get what you mean.

The simple answer is: "You can't". That "?msg=download&checknum..." thing is part of how oneye works. Normally you shouldn't see it or even be aware of it, but when something goes wrong...

Anyway, I think I've worked out what's happening: if I'm not mistaken, when you click on your .pdf file, Safari attempts to download it instead of using its built-in .pdf viewer. Of course on an iPad the downloading of files is disabled (by Apple) and so it gets stuck (and gives you that "?msg=download&checknum...").

Anyhow, I've looked at the code and it turns out that oneye currently doesn't have support for Safari's built-in .pdf viewer. So I wrote it. Only problem is I don't own an iPad to test the fix. So, if you wouldn't mind, could I humbly ask you to do the following?:

  • Download this file: http://www.mediafire.com/?qzvwe22wjyga6fw

  • Go to your install of oneye on the server (that folder entitled eyeOS****, where the asterisks represent semi-random digits)

  • In this folder navigate to apps/eyePDF/

  • Copy the downloaded file into this folder

  • Try your .pdf file again

  • Tell me what happens, please.

Good luck

(Update: This fix has been committed to svn, r.7345)

Last edited by s0600204 (2012-02-11 18:14:28)

Offline

#9 2012-02-08 05:39:17

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

i update event.eyecode
*When i click on the PDF file from iPad, nothing happens
BUG OR NOT*When i click on iPad Action-->Download as Zip-->Select PDF file i see dialog (Open in iBooks or other program) if i choose iBooks, he no load file!
*When i click on iPad Action-->Download-->Select PDF, nothing happens

Offline

#10 2012-02-08 07:01:33

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

in setting i change Render method from Direct Download to Browser plugin and click to pdf
*from PC PDF open in window COOOL wink
*from iPad i got (Forbidden You don't have permission to access "link to file"
BUG OR NOT*in user/rt4/root/tmp/ folder alway create a new copy pdf

Last edited by Jakal (2012-02-08 07:01:50)

Offline

#11 2012-02-08 12:24:06

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

I got "." dot after my EYEROOT dir on ubuntu

Offline

#12 2012-02-08 12:31:45

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

PDF and DOC files not list in eyeVisor not drag

Offline

#13 2012-02-08 16:47:10

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

Okay, let's see...

BUG OR NOT*When i click on iPad Action-->Download as Zip-->Select PDF file i see dialog (Open in iBooks or other program) if i choose iBooks, he no load file!

I think I understand what's going on here, but this may be a different bug, and so I have made a note and shall return to it later.

from PC PDF open in window COOOL wink

Excellent.

from iPad i got (Forbidden You don't have permission to access "link to file"

Not so excellent. Could you copy-paste the "link to file" (from "eyeOS****" to the end), just so we can check its pointing to roughly the right place?

BUG OR NOT*in user/rt4/root/tmp/ folder alway create a new copy pdf

This is part of how the fix works. Don't worry, anything in the /tmp/ folder should be deleted once you close your login session within oneye. Could I ask you to try opening the pdf on your iPad again and then, on the server, in Terminal/xConsole (using the command line) navigate to this folder and use "ls -l", copy-pasting the result here?

I got "." dot after my EYEROOT dir on ubuntu

Okay... well nevermind...

PDF and DOC files not list in eyeVisor not drag

I'm sorry, but I'm really not too sure what you mean by this.

Offline

#14 2012-02-08 17:27:29

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

*from iPad i got (Forbidden You don't have permission to access "link to file"
I fix it just delete .haccess in root dir but thi no good


*I got "." dot after my EYEROOT dir on ubuntu
I fix it just write  oneye77777777 as oneye77777777/

*PDF and DOC files not list in eyeVisor not drag
Document load but stay on first page I can't drag document from iPad

Offline

#15 2012-02-08 21:23:20

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

Okay, Jakal, apologies for the wait.

*from iPad i got (Forbidden You don't have permission to access "link to file"
I fix it just delete .haccess in root dir but thi no good

.htaccess files are not generated or used by oneye/eyeos. They are used by apache webserver to permit configuration of itself on a per-directory basis. (see http://httpd.apache.org/docs/2.2/howto/htaccess.html ).

*I got "." dot after my EYEROOT dir on ubuntu
I fix it just write  oneye77777777 as oneye77777777/

Fair enough, I guess

*PDF and DOC files not list in eyeVisor not drag
Document load but stay on first page I can't drag document from iPad

If you mean you can't scroll down to the second page - then I'm very sorry but I can't personally help you. Like I said, I don't have an iPad and therefore no way of debugging this myself. So I'm gonna have to leave this to someone else. Sorry.

Offline

#16 2012-02-09 04:24:32

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

*PDF and DOC files not list in eyeVisor not drag
Document load but stay on first page I can't drag document from iPad

When I open .doc and click edit, in text editor text drag on touch very good but in eyevisio text not drag. How do I fix it myself ? In which file edit it?

Offline

#17 2012-02-09 18:45:33

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: iPad error view Files

Jakal,

The files dicatating the appearance and behaviour of eyeVisor are contained within [eyeroot]/apps/eyeVisor. The application that runs when you click 'edit' is eyeDocs, the files of which can be found in [eyeroot]/apps/eyeDocs.

As to how to fix it, you'll have to figure out for yourself. However, you may wish to consider the following:

  • Both eyeVisor and eyeDocs use OpenOffice/LibreOffice to translate .doc into .html format for display. However eyeVisor puts the content in an <iframe>, whilst eyeDocs puts it in a <textarea>.

  • When .pdf files are opened, the application that displays them is eyePdf (not eyeVisor) and this also uses an <iframe> to display it.

  • eyeNav, otherwise known as "Navigator", uses <iframe>s to display content. Does scrolling work here?

  • From your descriptions, it sounds like scrolling is being disabled in <iframe>s in iOS' Safari, but not in textareas. Your task is to find out why.

  • The code that dicatates the appearance and behaviour of <iframe>s in oneye is contained within the file [eyeroot]/system/lib/eyeWidgets/widgets/Iframe.eyecode

Have fun!

Offline

#18 2012-02-10 03:27:51

Jakal
Member
Registered: 2012-02-06
Posts: 11

Re: iPad error view Files

I'll try to fix it myself smile thx

Offline

#19 2012-04-14 03:19:36

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 723
Website

Re: iPad error view Files

Hey guys, what parts of this bug are still left unclear? Please give me some feedback for an overview wink ...


Best regards,
Lars Knickrehm

The oneye project.

Offline

#20 2015-08-15 08:46:16

gondar5678
Member
Registered: 2015-08-14
Posts: 2

Re: iPad error view Files

Firstly, have you followed the instructions to enable LibreOffice on your server?

Offline

Board footer

Powered by FluxBB