Error upon switching to Code Editor in Firefox
-
With this plugin enabled, I get “The editor has encountered an unexpected error” when attempting to switch from the Visual Editor to the Code Editor.
This only happens in Firefox (151.0.3), not in Chrome. WordPress version is 7.0.0. Plugin version is 1.4.22. The problem occurs with both local Windows 10 server, and remote Linux server (with the latter I often just get a WSOD in the editor area).
The error is
NS_ERROR_NOT_INITIALIZEDand occurs at line 76 ofeditor-init-masonry.js, with the call tosetTimeout(). Putting atry…catchblock around it resolves the issue. It may not be a complete fix, but is better than having it crash, though there seem to be plenty of calls toapplyMasonry()at regular intervals, so it may be all that is needed.The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.