Works, but also gives error
-
Hello,
Thanks for this easy and useful plugin.
After clicking save, the loading bar shows, but there is a JS error, and the save never seems to complete. If I close the editor and refresh the page, the media is shown updated correctly.
Here is the error from the JS console:
Uncaught TypeError: Cannot read property 'width' of undefined edik.js?ver=3.8:2 (anonymous function) edik.js?ver=3.8:2 c load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:3 p.fireWith load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:3 k load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:5 r load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.8:5
I am a JS developer, so I inspected the error. I believe it is e that is undefined:
e=b.sizes.medium,c=edik.fit_size(e.width,e.height,80,60)
Looking at object b.sizes at the time of error:
b.sizes = { guest-author-32: ..., guest-author-64: ..., guest-author-96: ..., guest-author-128: ...}
Each of the
guest-author-
do have property.width
. Therefore I think the issue may be related to the Co-Author plugin I have installed.HTH!
https://www.ads-software.com/plugins/edik-enhanced-image-editor/
- The topic ‘Works, but also gives error’ is closed to new replies.