Support » Plugin: Classic Editor » Edit Media screen black with 5.0 update

  • Resolved senordeer

    (@senordeer)


    Hi! Just updated to 5.0 and was testing Classic Editor, I can use the Classic Editor fine with posts but I noticed when it is activated, if I upload an image to Media Library and then click on the Edit Media button (eg. to copy image link url) screen is blank. Just letting you know really like that this plugin is an option!

Viewing 10 replies - 1 through 10 (of 10 total)
  • ldesherl

    (@ldesherl)

    I am having this exact same issue. I am craving the CLassic editor because I cannot get comfortable with any of these front-end editors, including the block editor that WordPress 5.0 forces on us. Please help us, plugin creator! IF I cannot fix this, I may be forced to let my website go.

    Lisa DeSherlia
    https://www.missingadultskids.com

    Matt Hodder

    (@matthodder)

    In Settings > Writing, if you change the option “Allow users to switch editors” to no, that fixed the issue for me (for now).

    Plugin Author Andrew Ozz

    (@azaozz)

    These sound like caching issues. Unfortunately caches sometimes don’t clear when they should. Perhaps try holding down Shift and reloading the page few times, it’s known to help. If not, most of these issues will “magically” fix themselves in few hours.

    Tom

    (@edge22)

    I’m getting this issue as well with all custom post types, as well as the media library in “list mode” when trying to open an item.

    Caches cleared and tried incognito mode.

    The issue goes away when you set “Allow users to switch editors” to “no”.

    Herbert

    (@herbie888)

    @matthodder @edge22 Do you have WP_DEBUG enabled? Maybe it’s some sort of a “notice” or debug output which causes this, as long as the setting is “unset” yet or similar? Found also a logic bug with this setting, maybe something went wrong when adding it.

    Tom

    (@edge22)

    Yes, WP_DEBUG is on with these notices:

    [07-Dec-2018 00:36:22 UTC] PHP Notice:  edit_form_after_title is <strong>deprecated</strong> since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor. in D:\dev\library\wp-includes\functions.php on line 4112
    [07-Dec-2018 00:36:22 UTC] PHP Notice:  edit_form_advanced is <strong>deprecated</strong> since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor. in D:\dev\library\wp-includes\functions.php on line 4112

    However, this is on a fresh WP 5.0 install with only the Classic Editor plugin activated.

    The issue persists with WP_DEBUG set to false.

    Thread Starter senordeer

    (@senordeer)

    Switching the Allow User to Switch Editors to No also worked for me, can view and edit media links now thank you!

    Herbert

    (@herbie888)

    @edge22: Seems WordPress 5.0 internally uses those deprecated actions and outputs those two notices via do_action_deprecated() when it renders meta box forms in post.php in the_block_editor_meta_boxes(). WordPress 5.0 also uses the actions in other places like in meta-boxes.php in register_and_do_post_meta_boxes() in case of attachments or in edit-form-advanced.php when rendering the blog page (page_for_posts) without explicit deprecated notices.

    Seems also from your description that WP_DEBUG has no effect within do_action_deprecated(), unsure if that is a bug or not.

    Thanks for your help and @senordeer for feedback. The issue seems to have quite some impact also elsewhere.

    • This reply was modified 3 years ago by Herbert.
    Plugin Author Andrew Ozz

    (@azaozz)

    Yes, found the bug. Just pushed 1.1, should be fixed there.

    Tom

    (@edge22)

    All works nicely for me now 🙂

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Edit Media screen black with 5.0 update’ is closed to new replies.