Getting error when uploading document on edit page

Hello all, this is my first time trying to install the Lool Editor and get it working. I’ve been following the tutorial step by step from the processwire lool editor guide.
When I upload a .doc document to my edit page template for the file field, it just sits here loading, like this:

So I looked at the console and was getting PHP errors in my JSON response in InputfieldFile.js. After printing the value of xhr.responseText from the InputfieldFile.js, I see this text, followed by the JSON:

Warning: Trying to access array offset on value of type bool in {{path}}\processwire\site\modules\LoolEditor-master\LoolEditor.module on line 416

Warning: Trying to access array offset on value of type null in {{path}}\processwire\site\modules\LoolEditor-master\LoolEditor.module on line 416

Warning: foreach() argument must be of type array|object, null given in {{path}}\processwire\site\modules\LoolEditor-master\LoolEditor.module on line 416

[{"error":false,"message":"Added file: test.doc","file":"\/fileditor2\/processwire\/site\/assets\/files\/1033\/test.doc","size":26624,"markup":"<li id='file_ee200303f52275647138898037a80e0e' class='InputfieldFileItem ui-widget ui-widget-content'><p class='InputfieldFileInfo InputfieldItemHeader ui-state-default ui-widget-header'><i class='fa fa-file-word-o fa-fw HideIfEmpty'><\/i>&nbsp;<a class='InputfieldFileName' title='test.doc' target='_blank' href='\/fileditor2\/processwire\/site\/assets\/files\/1033\/test.doc'>test.doc<\/a> <span class='InputfieldFileStats'>26&nbsp;kB<\/span> <label class='InputfieldFileDelete'><input type='checkbox' name='delete_filetest_ee200303f52275647138898037a80e0e' value='1' title='Delete' \/><i class='fa fa-fw fa-trash'><\/i><\/label><\/p><div class='InputfieldFileData description ui-widget-content'><div class='InputfieldFileDescription'><label for='description_filetest_ee200303f52275647138898037a80e0e' class='detail pw-hidden'>Description<\/label><input type='text' name='description_filetest_ee200303f52275647138898037a80e0e' id='description_filetest_ee200303f52275647138898037a80e0e' placeholder='Description&hellip;' value='' \/><\/div><input class='InputfieldFileSort' type='text' name='sort_filetest_ee200303f52275647138898037a80e0e' value='0' \/><\/div><\/li>","replace":false,"overwrite":0}]

I have been following the tutorial step-by-step and I really have no idea what to do now. If anyone has any ideas I would be very grateful. Thank you.

Hey @ilikeike ,

Welcome to the forum. :slight_smile:

Can you link to which guide you are talking about?

If it was called “Lool”, that was probably an older tutorial for “LibreOffice Online”!

(I did a search for “processwire”“looleditor” and found a tutorial from around 2018?)

There’s been a lot that changed since 2018! So you may want to follow a lot more recent instructions for downloading/building Collabora Online instead!

Side Note: For a little more info comparing the old “LibreOffice Online” vs. “Collabora Online”, check out this article:

From ~2014–2020, a lot of the “LibreOffice Online” work (>90%) was being done by Collabora.

Then around 2020 Collabora decided to officially split off as “Collabora Online” and continue development/support as their own brand.