Error PHP Undefined variable: instanceId at /var/www/nextcloud/apps/richdocuments/lib/helper.php#38

After updating to Collabora Code 2.1 and to Nextcloud 12 Collabora online everything is working fine but so every time a open a file in nextcloud there is an error generated in Logging in Admin panel

Error PHP Undefined variable: instanceId at /var/www/nextcloud/apps/richdocuments/lib/helper.php#38

and there are some errors in docker logs
here are my logs:

sudo docker logs 3302e3bdc1cf
Generating RSA private key, 2048 bit long modulus
…+++
…+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
…+++
…+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
loolforkit version details: 2.1.0 - b2e736a3
office version details: { “ProductName”: “Collabora Office”, “ProductVersion”: “5.3”, “ProductExtension”: “.10.10”, “BuildId”: “77b0d93c0f6ff6490e909dbd81b1994862a31b3a” }
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
wsd-00026-00034 09:07:15.493428 [ websrv_poll ] ERR Socket #18 SSL error: SYSCALL (5). (errno: Broken pipe)| ./net/SslSocket.hpp:228
wsd-00026-00034 09:07:15.493496 [ websrv_poll ] ERR #18: Wrote outgoing data -1 bytes. (errno: Broken pipe)| ./net/Socket.hpp:851
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
wsd-00026-00034 09:07:37.925286 [ websrv_poll ] ERR Socket #18 SSL error: SYSCALL (5). (errno: Broken pipe)| ./net/SslSocket.hpp:228
wsd-00026-00034 09:07:37.925323 [ websrv_poll ] ERR #18: Wrote outgoing data -1 bytes. (errno: Broken pipe)| ./net/Socket.hpp:851
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
wsd-00026-00034 09:07:40.072083 [ websrv_poll ] ERR Socket #18 SSL error: SYSCALL (5). (errno: Broken pipe)| ./net/SslSocket.hpp:228
wsd-00026-00034 09:07:40.072107 [ websrv_poll ] ERR #18: Wrote outgoing data -1 bytes. (errno: Broken pipe)| ./net/Socket.hpp:851
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #18 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
wsd-00026-00034 09:08:01.711792 [ websrv_poll ] WRN WOPI host did not pass optional access_token_ttl| wsd/FileServer.cpp:327
wsd-00026-00036 09:08:06.301692 [ docbroker_001 ] WRN Missing JSON property [HidePrintOption]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301735 [ docbroker_001 ] WRN Missing JSON property [HideSaveOption]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301789 [ docbroker_001 ] WRN Missing JSON property [HideExportOption]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301837 [ docbroker_001 ] WRN Missing JSON property [EnableOwnerTermination]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301852 [ docbroker_001 ] WRN Missing JSON property [DisablePrint]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301893 [ docbroker_001 ] WRN Missing JSON property [DisableExport]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301921 [ docbroker_001 ] WRN Missing JSON property [DisableCopy]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.301947 [ docbroker_001 ] WRN Missing JSON property [LastModifiedTime]| wsd/Storage.cpp:387
wsd-00026-00036 09:08:06.326361 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #22 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #22 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #22 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #22 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
wsd-00026-00034 09:08:18.961312 [ websrv_poll ] ERR Socket #22 SSL error: SYSCALL (5). (errno: Broken pipe)| ./net/SslSocket.hpp:228
wsd-00026-00034 09:08:18.961340 [ websrv_poll ] ERR #22: Wrote outgoing data -1 bytes. (errno: Broken pipe)| ./net/Socket.hpp:851
…]: Invalid URI.| wsd/LOOLWSD.cpp:1665_poll ] ERR #22 Exception while processing incoming request: [GET /lool/%3Fpermission%3Dedit/ws HTTP/1.1
wsd-00026-00036 09:08:27.218751 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:08:27.218796 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:08:47.241850 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:08:47.241891 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:09:07.398906 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:09:07.398949 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:09:27.422388 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:09:27.422416 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:09:47.446165 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:09:47.446193 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:10:07.470424 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:10:07.470469 [ docbroker_001 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:287
wsd-00026-00036 09:10:21.831547 [ docbroker_001 ] ERR Socket #18 SSL BIO error: closed (0).| ./net/SslSocket.hpp:255
wsd-00026-00036 09:10:21.831684 [ docbroker_001 ] ERR Socket #18 SSL BIO error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown (errno: Success)| ./net/SslSocket.hpp:273
wsd-00026-00036 09:10:21.831769 [ docbroker_001 ] WRN ToClient-003b: Exception while closing socket for docKey [/apps/richdocuments/wopi/files/136750_ocuyeaonhtz6]: error:140D00CF:SSL routines:SSL_write:protocol is shutdown| wsd/ClientSession.cpp:783
wsd-00026-00027 09:10:21.834719 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_001], started: true, finished: true| ./net/Socket.hpp:445
wsd-00026-00027 09:10:21.834757 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_001], started: true, finished: true| ./net/Socket.hpp:445
wsd-00026-00027 09:10:21.834820 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_001], started: false, finished: true| ./net/Socket.hpp:445
wsd-00026-00027 09:10:21.834845 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_001], started: false, finished: true| ./net/Socket.hpp:445