Office- php Error

Hello,

our nextcloud office documents aren’t open every time.
It’s not stabel.

In the logs we have a lot of php-errors:

Trying to access array offset on value of type null at
/var/www/html/xxx/apps/richdocuments/lib/Service/CachedRequestService.php

We use the built-in CODE-Server.

Configuration of the richdocuments app:

 "apps": {
        "richdocuments": {
            "types": "prevent_group_restriction",
            "public_wopi_url": "https:\/\/domain.de",
            "canonical_webroot": "",
            "doc_format": "ooxml",
            "enabled": "yes",
            "wopi_allowlist": "127.0.0.1",
            "disable_certificate_verification": "yes",
            "installed_version": "8.4.9",
            "wopi_url": "https:\/\/domain.de\/apps\/richdocumentscode\/proxy.php?req="

The problem is with our both nextcloud instances:

  • Nextcloud Version 29.0.10 - php Version: 8.2.26 (Ubuntu 20.04)
  • Nextcloud Version 28.0.14 - php Version: 8.2.26 (Ubuntu 20.04)

Thank you very much for your help!

Best regards,
Wolfgang

Do you have the entire actual error message / stack trace?

We use the built-in CODE-Server.

Note that Built-in CODE will always be slower and more prone to failures since it isn’t a permanently installed (and is easily brought down by local matters that are often difficult to diagnose and very environment specific - such as automatic clearing of /tmp, etc.)

While Built-in CODE is quite convenient, I would not rely on it in production (outside of very occasional use).

We get only this messages in the log and very often.

Trying to access array offset on value of type null at
/var/www/html/xxx/apps/richdocuments/lib/Service/CachedRequestService.php

The server is a produktive environment but “nextcloud office” not. Only occasional use.

Could the problems be a wrong cache configuration?

Thank you!