richdocuments
richdocuments copied to clipboard
Office document previews broken in Activity section
Steps To Reproduce
Install Collabora
- Go to 'Open Documet'
- 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

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

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:

Not Working:

No response
Additional Context
No response
Build Version
24.0.0
Environment
By using the scripts
Environment Details
Ubuntu 22.04
This is probably a PHP thing in the Nextcloud server itself. We don't control PHP in the GUI.
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.
Updated richdocuments to 6.1 and Nextcloud to 24.0.1 and the issue persists.
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?
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.