Error 500 on empty meta field since WordPress 5.7
-
Hi,
I’m the author of Conditionally display featured image on singular posts and pages and due to a support request from @nmjmorgan, I noticed that there is an issue with WP-Recipie Maker if another plugin registers a meta field on the REST API (
register_meta()
). This issue is probably related to the latest release of WordPress (5.7).The Issue
As soon as an other plugin triggersregister_meta()
a save request of a new post returns{"code":"rest_meta_database_error","message":"Could not delete meta value from database.","data":{"key":"wprm-recipe-roundup-name","status":500}}
.Steps to reproduce
– take a fresh WordPress installation
– install and activate plugin WP-Recipie Maker
– install and activate plugin Conditionally display featured image on singular posts and pages
– create a new post and add a featured image and check “Display featured image in post lists only, hide on singular views.”
– save post and check the console.See also
As @nmjmorgan reported, that this issue only appears since WordPress 5.7, it think the issue might be related to the change in the following line of the wordpress core which is part of the this commit.
- The topic ‘Error 500 on empty meta field since WordPress 5.7’ is closed to new replies.