richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

Fatal Error

Open SylvainLegrand opened this issue 2 years ago • 3 comments

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

SylvainLegrand avatar May 03 '23 11:05 SylvainLegrand

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

joshtrichards avatar May 24 '23 10:05 joshtrichards

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

SylvainLegrand avatar May 25 '23 03:05 SylvainLegrand

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.

phormix avatar Feb 22 '24 00:02 phormix