documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

Document won't save - cannot set property '$k' of undefined

Open BornToBeRoot opened this issue 4 years ago • 6 comments

Hello,

i had a document that won't save and now i get this error every time the cron job runs:

[documentserver_community] Error: OCA\DocumentServer\Document\DocumentConversionException: change_code: !0!==this.xz?this.Ua:this.ym[a]);if(!1!==e){var h=d.fa.splice(e,1);d.IW(h);AscCommon.Rd.H4(d,e,1);0<e?e<=d.fa.length-1?(d.fa[e-1].$k=d.fa[e],d.fa[e].pk=d.fa[e-1]):d.fa[e-1].$k=null:e<=d.fa.length-1&&(d.fa[e].pk=null);0<=e&&e<=d.fa.length-1&&(d.sh&&d.sh.Nma(e,1),d.j4(e))}}};ak.prototype.vR=function(d){return this.Oa!==d.Oa||AscDFH.aya!==d.ka&&AscDFH.bya!==d.ka?!1:!0};ak.prototype.Mm=function(){return this.DR(Fr)};kl.prototype=Object.create(AscDFH.nm.prototype);kl.prototype.constructor=kl;kl.prototype.ka=
change: Uncaught TypeError: Cannot set property '$k' of undefined
DoctRenderer:<result><error index="3790" /></result>
 at <<closure>>

0. /var/www/html/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 123
   OCA\DocumentServer\Document\ConverterBinary->run("/tmp/oc_tmp_wpPIBz-.xml", null)
1. /var/www/html/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 78
   OCA\DocumentServer\DocumentConverter->runCommand(OCA\DocumentServ ... {})
2. /var/www/html/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 151
   OCA\DocumentServer\DocumentConverter->saveChanges("*** sensitive parameter replaced ***", ["78;AgAAADEA//8 ... "], "/srv/nextcloud- ... t", "odt")
3. /var/www/html/nextcloud/apps/documentserver_community/lib/LocalAppData.php line 100
   OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document\{closure}("*** sensitive parameters replaced ***")
4. /var/www/html/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 164
   OCA\DocumentServer\LocalAppData->getReadWriteLocalPath(OC\Files\SimpleFS\SimpleFolder {}, Closure {})
5. /var/www/html/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php line 56
   OCA\DocumentServer\Document\DocumentStore->saveChanges(627642030, [OCA\DocumentSer ... }])
6. /var/www/html/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php line 69
   OCA\DocumentServer\Document\SaveHandler->flushChanges(627642030)
7. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 79
   OCA\DocumentServer\BackgroundJob\Cleanup->run(null)
8. /var/www/html/nextcloud/cron.php line 125
   OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

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.

BornToBeRoot avatar Mar 01 '20 15:03 BornToBeRoot