jfcherng-roundcube / plugin-cloudview

A Roundcube plugin which lets you view documents with cloud viewers.
https://packagist.org/packages/jfcherng-roundcube/cloudview
MIT License
10 stars 5 forks source link

server error (internal server error) Roundcube #15

Closed TheEgyptianDevelopers closed 1 year ago

TheEgyptianDevelopers commented 3 years ago

server error (internal server error) Roundcube

when I click cloudview it gives me this error message

jfcherng commented 3 years ago

Detailed error trace would be needed in order to have it fixed.

TheEgyptianDevelopers commented 3 years ago

how to do the error trace please, or where I can find it?

jfcherng commented 3 years ago

There should be some error messages in RoundCube's log file(s).

TheEgyptianDevelopers commented 3 years ago

it opens the popup now, but it gives this message when I check the FTP I find the file, when I use Microsoft office and even when u choose google to view, it said cant view

File not found The URL of the original file is not valid or the document is not publicly accessible. Verify the URL is correct, then contact the document owner.

https://docs.google.com/viewer?embedded=true&url=https%3A%2F%2Fserver1.***.com%2Fcpsess4273829571%2F3rdparty%2Froundcube%2Fplugins%2Fcloudview%2Ftemp%2F1201%2Fa953a816542427df0a6b9668362e0834.pptx Screen Shot 2021-01-20 at 12 20 14 PM Screen Shot 2021-01-20 at 12 15 24 PM

jfcherng commented 3 years ago

I guess that the temp directory under cloudview's directory is not public accessible due to your server(I mean Apache/NGINX) config. If you can't visit https://server1.***.com/cpsess4273829571/3rdparty/roundcube/plugins/cloudview/temp/1201/a953a816542427df0a6b9668362e0834.pptx from your browser, then it's possibly the case.

TheEgyptianDevelopers commented 3 years ago

so how to give the public access to this folder?

jfcherng commented 3 years ago
TheEgyptianDevelopers commented 3 years ago
* Do you know what web server you are using?

* What if you remove the `temp|` from https://github.com/roundcube/roundcubemail/blob/375d6680647bcd422519fcd4b8f8ee90cec3b0be/.htaccess#L13 ?

I did already remove temp | from htacess file, I use Namecheap servers ( CENTOS 7.9 [server1] ) but still the same, I see the files via filezilla, but I can't browse them via the browser

jfcherng commented 3 years ago

Having no idea what is blocking it from being public at this moment.

TheEgyptianDevelopers commented 3 years ago

Having no idea what is blocking it from being public at this moment.

Thank you so much for ur efforts, I will search again and if it fixed, I will add it here so anyone who has the same issue can find the solution easy

we all appreciate ur work, thank you

rgbGlobus commented 3 years ago

This solution helped me: you need to go to the mail not by the internal ip address (for example 192.168.88.3/mail), but by the external address of your mail, for example https://mail.google.com/mail

TheEgyptianDevelopers commented 3 years ago

This solution helped me: you need to go to the mail not by the internal ip address (for example 192.168.88.3/mail), but by the external address of your mail, for example https://mail.google.com/mail

Thank you so much and I will try it and give u the updates

jfcherng commented 3 years ago

This solution helped me: you need to go to the mail not by the internal ip address (for example 192.168.88.3/mail), but by the external address of your mail, for example mail.google.com/mail

That's a good missing point that I had never thought. I will add it to the readme. Thanks!

jfcherng commented 1 year ago

Can't used with internal IP since public external service can't retrieve the file for rendering.