awesomemotive / all-in-one-seo-pack

All in One SEO plugin for WordPress SEO
https://aioseo.com
339 stars 155 forks source link

aioseop-admin-functions.js Cannot read property 'then' of undefined #3076

Closed wpsmort closed 4 years ago

wpsmort commented 4 years ago

Reported by Todd today.

Todd reported that the front end content editor in WPBakery wouldn't work. I was able to reproduce this and found the cause to be this JS error:

aioseop-admin-functions.js:100 Uncaught TypeError: Cannot read property 'then' of undefined
    at aioseopSetGutenbergEditorEventListener (aioseop-admin-functions.js:100)
    at aioseopInitPreviewSnippet (aioseop-preview-snippet.js:45)
    at HTMLDocument.<anonymous> (aioseop-preview-snippet.js:24)

I confirmed that this affects the new 3.3.4 branch. I discussed with @arnaudbroes and he confirmed that this happens because WPBakery has a front end editor that doesn't load the same as the backend Classic and Block editors. He confirmed that he could fix this in the 3.3.4 release.