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
In Settings > Writing, if you change the option “Allow users to switch editors” to no, that fixed the issue for me (for now).
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.
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”.
@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.
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.
Switching the Allow User to Switch Editors to No also worked for me, can view and edit media links now thank you!
@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 4 years, 3 months ago by
herbie888.
Yes, found the bug. Just pushed 1.1, should be fixed there.
All works nicely for me now 🙂
Thanks!