nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
350 stars 115 forks source link

Office document previews broken in Activity section #2241

Open tasover opened 2 years ago

tasover commented 2 years ago

Steps To Reproduce

Install Collabora

  1. Go to 'Open Documet'
  2. Click on 'Activity'

On the Activity doesn't show the icon of the Document

Expected Result

Show the ICONs as below from another instance of Nextcloud 24

Screenshot 2022-05-11 at 12 32 39 PM

URL of working instance of icons

https://portal2.MYDOMAIN.com/apps/theming/img/core/filetypes/x-office-document.svg?v=0

the working instance doesn't have "-" on the domain if that helps

Actual Result

Doesn't show the ICONs

Screenshot 2022-05-11 at 12 31 37 PM

URL of not working instance of icons:

https://portal.MY-DOMAIN.com/core/preview.png?file=/Documents/Welcome%20to%20Nextcloud%20Hub.docx&x=150&y=150&c=dd98b52737fa6af6eb3372819b7255c1

The not working instance has "-" in the domain.

Screenshots, Videos, or Pastebins

Working:

Screenshot 2022-05-11 at 12 39 56 PM

Not Working:

Screenshot 2022-05-11 at 12 40 07 PM

No response

Additional Context

No response

Build Version

24.0.0

Environment

By using the scripts

Environment Details

Ubuntu 22.04

enoch85 commented 2 years ago

This is probably a PHP thing in the Nextcloud server itself. We don't control PHP in the GUI.

tasover commented 2 years ago

Just an update

If i disable Nextcloud Office app (richdocuments) the icons are shown.

The issue looks like the following issue:

https://github.com/nextcloud/richdocuments/issues/421

Maybe needed to migrate to richdocuments github issue.

tasover commented 2 years ago

Updated richdocuments to 6.1 and Nextcloud to 24.0.1 and the issue persists.

joshtrichards commented 10 months ago

It sounds like Office previews aren't being generated for you for some reason. What shows up in your Nextcloud server log when you try to access the preview URL directly? - e.g.

https://portal.my-domain.com/core/preview.png?file=/Documents/Welcome%20to%20Nextcloud%20Hub.docx&x=150&y=150&c=dd98b52737fa6af6eb3372819b7255c1

If it was a timeout issue, it may have since been fixed by #2623. So I guess also can you try to reproduce this today with newer versions?

mrbutcher93 commented 4 months ago

I have exactly the same issue. I'm getting an 404 (Not Found)-Error when I try to access the preview URL directly. But it's only not working for Microsoft office files (.docx, .xlsx, ....). Opendocument (.odt) Files are working fine.

I'm running Nextcloud 28.0.5 via Nextcloud-AIO. Nextcloud Office (richdocuments): 8.3.6 My nextcloud Domain is "my-domain" too.