I deinstalled onlyoffice and redownloaded and enabled it. It made no difference.
I found this in the nextcloud log, but I can’t see how I can act on it:
{
"reqId":"t0PQWExbah8cfG5AX9Xz",
"level":3,
"time":"2023-07-25T18:23:10+00:00",
"remoteAddr":"xx.xxx.201.220",
"user":"adam",
"app":"index",
"method":"GET",
"url":"/core/preview?fileId=9850&x=250&y=250",
"message":"Too few arguments to function Firebase\\JWT\\JWT::encode(), 2 passed in /home/carbonc/sites/cloud/apps/onlyoffice/lib/crypt.php on line 53 and at least 3 expected in file '/home/carbonc/sites/cloud/apps/oidc/vendor/firebase/php-jwt/src/JWT.php' line 193",
"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
"version":"25.0.9.2",
"exception":{
"Exception":"Exception",
"Message":"Too few arguments to function Firebase\\JWT\\JWT::encode(), 2 passed in /home/carbonc/sites/cloud/apps/onlyoffice/lib/crypt.php on line 53 and at least 3 expected in file '/home/carbonc/sites/cloud/apps/oidc/vendor/firebase/php-jwt/src/JWT.php' line 193",
"Code":0,
"Trace":[
{
"file":"/home/carbonc/sites/cloud/lib/private/AppFramework/App.php",
"line":172,
"function":"dispatch",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Route/Router.php",
"line":298,
"function":"main",
"class":"OC\\AppFramework\\App",
"type":"::"
},
{
"file":"/home/carbonc/sites/cloud/lib/base.php",
"line":1053,
"function":"match",
"class":"OC\\Route\\Router",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/index.php",
"line":36,
"function":"handleRequest",
"class":"OC",
"type":"::"
}
],
"File":"/home/carbonc/sites/cloud/lib/private/AppFramework/Http/Dispatcher.php",
"Line":165,
"Previous":{
"Exception":"ArgumentCountError",
"Message":"Too few arguments to function Firebase\\JWT\\JWT::encode(), 2 passed in /home/carbonc/sites/cloud/apps/onlyoffice/lib/crypt.php on line 53 and at least 3 expected",
"Code":0,
"Trace":[
{
"file":"/home/carbonc/sites/cloud/apps/onlyoffice/lib/crypt.php",
"line":53,
"function":"encode",
"class":"Firebase\\JWT\\JWT",
"type":"::"
},
{
"file":"/home/carbonc/sites/cloud/apps/onlyoffice/lib/preview.php",
"line":322,
"function":"GetHash",
"class":"OCA\\Onlyoffice\\Crypt",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/apps/onlyoffice/lib/preview.php",
"line":393,
"function":"getUrl",
"class":"OCA\\Onlyoffice\\Preview",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/apps/onlyoffice/lib/preview.php",
"line":261,
"function":"getFileParam",
"class":"OCA\\Onlyoffice\\Preview",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Preview/ProviderV1Adapter.php",
"line":53,
"function":"getThumbnail",
"class":"OCA\\Onlyoffice\\Preview",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Preview/GeneratorHelper.php",
"line":65,
"function":"getThumbnail",
"class":"OC\\Preview\\ProviderV1Adapter",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Preview/Generator.php",
"line":343,
"function":"getThumbnail",
"class":"OC\\Preview\\GeneratorHelper",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Preview/Generator.php",
"line":162,
"function":"getMaxPreview",
"class":"OC\\Preview\\Generator",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Preview/Generator.php",
"line":114,
"function":"generatePreviews",
"class":"OC\\Preview\\Generator",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/PreviewManager.php",
"line":185,
"function":"getPreview",
"class":"OC\\Preview\\Generator",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/core/Controller/PreviewController.php",
"line":144,
"function":"getPreview",
"class":"OC\\PreviewManager",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/core/Controller/PreviewController.php",
"line":113,
"function":"fetchPreview",
"class":"OC\\Core\\Controller\\PreviewController",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":225,
"function":"getPreviewByFileId",
"class":"OC\\Core\\Controller\\PreviewController",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/AppFramework/Http/Dispatcher.php",
"line":133,
"function":"executeController",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/AppFramework/App.php",
"line":172,
"function":"dispatch",
"class":"OC\\AppFramework\\Http\\Dispatcher",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/lib/private/Route/Router.php",
"line":298,
"function":"main",
"class":"OC\\AppFramework\\App",
"type":"::"
},
{
"file":"/home/carbonc/sites/cloud/lib/base.php",
"line":1053,
"function":"match",
"class":"OC\\Route\\Router",
"type":"->"
},
{
"file":"/home/carbonc/sites/cloud/index.php",
"line":36,
"function":"handleRequest",
"class":"OC",
"type":"::"
}
],
"File":"/home/carbonc/sites/cloud/apps/oidc/vendor/firebase/php-jwt/src/JWT.php",
"Line":193
},
"CustomMessage":"--"
}
}