JS errors when editing posts from 2.2.1 and later in classic editor
-
Hi,
since we updated the plugin to the latest version (2.2.4) editors couldn’t insert images and changing hyperlink properties anymore when editing in the classic editor. Also the meta box of the plugin was not visible. After looking in the console we saw these errors:
Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at setTitlePreview (snippetpreview.js?ver=2.2.0:1)
at updateAll (snippetpreview.js?ver=2.2.0:1)
at HTMLDocument.<anonymous> (snippetpreview.js?ver=2.2.0:1)
at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:2)
at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:2)
at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery-core,utils&ver=5.5.3:2)I’ve looked at the settings of the plugin to disable the snippet preview but couldn’t find it. So I tried to downgrade the plugin step by step. Version 2.2.0 was the first that didn’t resolve in the errors.
I’ve tested this in WordPress 5.5.3 with Twenty Twenty theme v1.5 running PHP 7.3, all other plugins disabled excepts Classic Editor (v1.6) and Platinum SEO Pack. Admins didn’t had this problem, only editors (I didn’t tested it with other roles than these two).
Here’s a printscreen of the error:
https://www.dropbox.com/s/1x38eb5r3ghlp2x/Platinum%20SEO%20Pack%202.2.1%20js%20errors%20in%20classic%20editor.png?dl=0Hope you can help us out so we can upgrade the plugin.
Regards,
Florian
- The topic ‘JS errors when editing posts from 2.2.1 and later in classic editor’ is closed to new replies.