Open BornToBeRoot opened 4 years ago
I removed the doc_xxxxxxxxxx
folder in der nextcloud data\appdata_xxx \documentserver_community
Running occ documentserver:flush
now works.
Same bug here.
This error is coming from the onlyoffice/sdkjs/word/Editor/DocumentChanges.js:340.
There are a few other spots where the error is possible. This was for the Load
method specifically, but there are other methods that have very similar code that I didn't fix.
Apparently line 312:
var Pos = oDocument.m_oContentChanges.Check(AscCommon.contentchanges_Remove, true !== this.UseArray ? this.Pos : this.PosArray[nIndex]);
Pos
can be greater than oDocument.Contents.length
; Setting oDocument.Contents[Pos-1].Next = null
will result in an error in these cases.
I was able to fix the issue by changing:
d.fa[a-1].$k=null
to
(d.fa[a-1]&&(d.fa[a-1].$k=null))
at apps/documentserver_community/3rdparty/onlyoffice/documentserver/sdkjs/word/sdk-all.js:7996
.
After this change, everything appears to saving out correctly. This could obviously be a more complex, systemic issue within the sdkjs library. Definitely recommend forwarding the issue along to the ONLYOFFICE folk.
Software | Version |
---|---|
NextCloud | 18.0.4 |
Document Server | v0.1.5 |
ONLYOFFICE | v4.1.4 |
YMMV.
Having the same problem when using images in the document. I can't open the document anymore.
Just had the same bug. I pressed a couple of times enter on a template and suddenly the page disappeared. Reloading did not work and the document opend in libreoffice was empty. I got this error:
change: Uncaught TypeError: Cannot read property 'b8d' of undefined
DoctRenderer:
I removed the
doc_xxxxxxxxxx
folder in dernextcloud data\appdata_xxx \documentserver_community
Running
occ documentserver:flush
now works.
This also worked for me, but for me the error message was about the document Server only Supporting 20 People.
Hello,
i had a document that won't save and now i get this error every time the cron job runs:
I can also reproduce this error with
occ documentserver:flush
Any idea how i can remove the corrupted file? I tried reinstalling documentserver_community + ONLYOFFICE without success.