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> <a class='InputfieldFileName' title='test.doc' target='_blank' href='\/fileditor2\/processwire\/site\/assets\/files\/1033\/test.doc'>test.doc<\/a> <span class='InputfieldFileStats'>26 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…' 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.