richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Office document previews broken in Activity section

Open tasover opened this issue 2 years ago • 5 comments

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

tasover avatar May 11 '22 09:05 tasover

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

enoch85 avatar May 13 '22 11:05 enoch85

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 avatar May 17 '22 09:05 tasover

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

tasover avatar May 23 '22 07:05 tasover

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?

joshtrichards avatar Nov 09 '23 16:11 joshtrichards

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.

mrbutcher93 avatar May 05 '24 12:05 mrbutcher93