Blank Editor screen FIX (8.0)
-
Sometimes the editor window goes blank when the lodash javascript library is missing and yoast has to load it itself.
It appears that the cause is the way that the loading is done, which does not honor dependencies and loading order, but just hopes for the best.
To avoid the error you need to be sure that lodash is loaded and that you do not have any scripts in function.php or elsewhere (plugins), which optimize the loading order of javascript. We fixed our site by disabled the javascript defer loader which we put in functions.php. I guess that for the SEO minded site, such speed optimizations are quite common ??
But the real fix is that yoast should replace the offending line 221 in admin/class-admin-asset-manager.php and write a version which honors dependencies and the loading order (i.e put this in a javascript file marked with lodash as a dependency). I mean come on, Inline javascript like that is so 1995.
-B.
- The topic ‘Blank Editor screen FIX (8.0)’ is closed to new replies.