[wp-trac] [WordPress Trac] #43399: Non-admin roles get error 500 when creating new post
WordPress Trac
noreply at wordpress.org
Sat Feb 24 09:19:10 UTC 2018
#43399: Non-admin roles get error 500 when creating new post
-------------------------------+-----------------------------
Reporter: ninke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.9.4
Severity: normal | Keywords:
Focuses: accessibility |
-------------------------------+-----------------------------
I didn't notice this issue until my client pointed this out to me when she
couldn't create new posts.
I have an admin account and can create posts, but when she creates a new
post or goes to /wp-admin/post-new.php she gets a white screen. To be
clear: the ditor doesn't show up. this is before even saving anything.
When investigating this I found out that admin accounts do not have this
problem, but her account, an editor role, does. I also created a new
editor account, to see if it was perhaps something only related to her
specific account, but the results were the same, no creation possible.
internal server error 500
I fiddled around with post-new.php for a bit and commenting line 70 ($post
= get_default_post_to_edit( $post_type, true );) allows her account to see
and be able to create a new post again. I put it back as it was, because
I'm sure it serves its purpose, but perhaps this tidbit of info will help
others to find out what's going on here.
I have used health check and the core files seem to be the same as
provided by wordpress.org
I haven't found any similar tickets, but if there are please direct me to
them!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43399>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list