CollaboraOnline / richdocumentscode

Built-in CODE Server app
https://apps.nextcloud.com/apps/richdocumentscode
Apache License 2.0
117 stars 27 forks source link

Fatal Error #223

Open SylvainLegrand opened 1 year ago

SylvainLegrand commented 1 year ago

Nextcloud 26.0.1 Ubuntu 18.04.6 PHP 8.1

Log error PHP : [03-May-2023 11:47:57 Europe/Paris] PHP Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /mnt/web/nextcloud/apps/richdocumentscode/proxy.php:395 Stack trace:

0 /mnt/web/nextcloud/apps/richdocumentscode/proxy.php(395): implode(' ', NULL)

1 {main}

thrown in /mnt/web/nextcloud/apps/richdocumentscode/proxy.php on line 395

joshtrichards commented 1 year ago

@SylvainLegrand What steps, precisely, lead to this error?

SylvainLegrand commented 1 year ago

Nothing in particular, I just try to open some documents.

phormix commented 7 months ago

I'm seeing a similar issue, using the Collabora version built into the current NextCloud snap version (27.1.6snap1)

Essentially, the first time an ODT document is created, any content saved will be lost. This includes when manually choosing to save, which gets the graphical feedback that it has succeeded. Once the document is closed and opened, it will be blank and there is no historical copy with data.

If I create the ODT, save, close, and then re-open then all subsequent saves seem to work as expected. Perhaps there's some issue that doesn't properly associate a reference/ID to the newly created file?

I also note that @SylvainLegrand is referencing something in /mnt. Is your nextcloud+collabora instance using external storage (network or USB etc) of some sort? Maybe it's related to a mounted storage volume (which my instance similarly uses).

I'll also add that I am using Debian (rather than Ubuntu) as my base, and that I also saw this when using a Docker container which is actually one of the reason I decided to see if the Snap behaved better.