Open sivann opened 3 years ago
After last update, we have same issue here.
Chrome Browser Java-Console shows errors:
jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 jQuery.Deferred exception: Cannot read property 'hasOwnProperty' of undefined TypeError: Cannot read property 'hasOwnProperty' of undefined at Object.edittable.getMerges (https://support.casymir.ch/wiki/lib/exe/js.php?t=dokuwiki&tseed=5dadee65381aa3f1f994ad63f7794eac:1:1032356) at HTMLDocument.edittable.loadEditor (https://support.casymir.ch/wiki/lib/exe/js.php?t=dokuwiki&tseed=5dadee65381aa3f1f994ad63f7794eac:1:1033241) at e (https://support.casymir.ch/wiki/lib/exe/jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2:30005) at t (https://support.casymir.ch/wiki/lib/exe/jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2:30307) undefined S.Deferred.exceptionHook @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 t @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 setTimeout (async) (anonymous) @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 c @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fireWith @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fire @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 c @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fireWith @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 ready @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 B @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined at Object.edittable.getMerges (js.php?t=dokuwiki&tseed=5dadee65381aa3f1f994ad63f7794eac:1) at HTMLDocument.edittable.loadEditor (js.php?t=dokuwiki&tseed=5dadee65381aa3f1f994ad63f7794eac:1) at e (jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2) at t (jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2) edittable.getMerges @ js.php?t=dokuwiki&tseed=5dadee65381aa3f1f994ad63f7794eac:1 edittable.loadEditor @ js.php?t=dokuwiki&tseed=5dadee65381aa3f1f994ad63f7794eac:1 e @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 t @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 setTimeout (async) S.readyException @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 (anonymous) @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 e @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 t @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 setTimeout (async) (anonymous) @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 c @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fireWith @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fire @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 c @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fireWith @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 t @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 setTimeout (async) (anonymous) @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 c @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fireWith @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fire @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 c @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 fireWith @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 ready @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2 B @ jquery.php?tseed=34a552433bc33cc9c3bc32527289a0b2:2
This problem only appears on some pages of our wiki. On most of the pages, the plugin is working fine.
So it must be related to page contents, access rights or other content differences.
The problem can be reproduced by adding an incomplete empty line to the table:
The problem can be reproduced with this small example:
^A ^B ^C ^D ^E ^F ^
|A |B |C |D | E| F|
||
Table editor works fine when putting a space between the bars:
^A ^B ^C ^D ^E ^F ^
|A |B |C |D | E| F|
| |
To be more precise, put at least one space after the first bar of an empty line.
I disabled the plugin before and after enabling the edit screen was empty. Pressing the re-install fixed it for me.
Hitting the edit below any table loads this (buttons say: save, preview, cancel):
The url is /doku.php and no errors in browser tools console or network tab. Suggestions?
Version was the one from "2020-11-09" and dokuwiki version is 2020-07-29 "Hogfather"