Excel files are not displayed correctly in OnlyOffice

The Basics

  • Nextcloud 30.0.7
  • Oracle Linux 9.5
  • Apache 2.4.62
  • PHP 8.3.19
  • OnlyOffice Server 8.3.0
  • OnlyOffice App 9.7.0
  • Is this the first time you’ve seen this error? - No
  • When did this problem seem to first start? - on Nextcloud 29.0.12
  • Installation method - Self-hosted VM
  • Are you using Cloudflare, mod_security, or similar? - No

Summary of the issue you are facing:

Excel files are not displayed correctly.
There is a frame around the document. Scrolling and tabs are missing at the bottom.
The problem is observed only through a shared link (password access).

Steps to replicate it (hint: details matter!):

We used the old version Nextcloud 26.0.13 where there was no such problem. The documents were opened correctly.
We have completed the update to Nextcloud 29.0.12. This is where we noticed this problem.
Then updated to version 30.0.7. But there is a problem here too.

I contacted the technical support of OnlyOffice. We received the following response:

On your instance, the style created with this server/core/src/public.ts at master · nextcloud/server · GitHub is not available and this is what causes the issue. You can install Nextcloud in a test environment and search for the style in the Elements tab of the browser dev tools (press Ctrl+F after opening the tab and search for --footer-hight) - this style should be available even without enabling the ONLYOFFICE app, like on the screenshot below:

When the ONLYOFFICE app is enabled, the style must look like this:
<body id="body-public" data-themes="" class="onlyoffice-inline" style="--footer-height: 0px;">
and in your case it looks like this
<body id="body-public" data-themes="" class="onlyoffice-inline">

I’d recommend contacting the Nextcloud support to check what may cause the style being formed incorrectly.