• Resolved Ben Greeley

    (@bengreeley)


    When upgrading a website to WP 5.0 with the Gutenberg plugin active, the Gutenberg editor no longer loads on the post editor page, outputting the following javascript errors. For compatibility with users who update to 5.0, would it be possible to either automatically disable the plugin functionality to prevent these conflicts?

    Uncaught TypeError: Cannot read property 'then' of undefined
        at post-new.php:1616
    (anonymous) @ post-new.php:1616
    format-library.min.js?ver=5.0-beta2:1 Uncaught TypeError: Object(...) is not a function
        at format-library.min.js?ver=5.0-beta2:1
        at Array.forEach (<anonymous>)
        at Module.313 (format-library.min.js?ver=5.0-beta2:1)
        at n (format-library.min.js?ver=5.0-beta2:1)
        at wp.formatLibrary.0 (format-library.min.js?ver=5.0-beta2:1)
        at format-library.min.js?ver=5.0-beta2:1
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    We’ve already got code in to handle those situations, are you using the latest version of the Gutenberg plugin, as there are known incompatibility with older versions of the plugin?

    Thread Starter Ben Greeley

    (@bengreeley)

    Hey Marius thanks for the reply! I just verified that I am using the latest version of the plugin (4.1.1). See screenshot at https://drive.google.com/open?id=1GV8UYfoehBa3SfxK4fjPqG7rZvW35lOe

    Moderator Marius L. J.

    (@clorith)

    Hmm, that is peculiar… do you have any browser extensions that may be affecting things, as I am unable to reproduce the issue?

    Thread Starter Ben Greeley

    (@bengreeley)

    To make sure it wasn’t browser extensions, I disabled all extensions and tried a couple of other browsers with the same results of the following errors when I go to http://gutenberg.test/wp-admin/post-new.php :

    TypeError: undefined is not an object (evaluating 'window._wpLoadBlockEditor.then')
    and
    TypeError: Object(a.registerFormatType) is not a function. (In 'Object(a.registerFormatType)(e,n)', 'Object(a.registerFormatType)' is an instance of Object)

    No other errors or missing assets or anything either. I am working from my local environment, but don’t have any issues with Gutenberg if the plugin is disabled.

    Thread Starter Ben Greeley

    (@bengreeley)

    Marius, FWIW I rebooted my local environment and no longer am having the issues. There must have been something cached from a previous version of Gutenberg or something like that. I appreciate you looking into it, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with WP5.0-beta2’ is closed to new replies.