Custom fields disappear after saving emtpy group
-
Hello.
After pressing Publish creating a Custom Fields group and mistakenly adding no fields to the group, WordPress displays: “There has been a critical error on this website. Please check your site admin email inbox for instructions”.
Email excerpt:
Error Details
An error of type E_ERROR was caused in line 281 of the file …/wp-content/plugins/custom-post-types/inc/loader-fields.php. Error message: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, string given in …/wp-content/plugins/custom-post-types/inc/loader-fields.php:281
WordPress /wp-admin does load, but now the custom post types in the left menu only show the New Item submenu, custom field groups are missing.
Tried disabling and reenabeling the plugin, but custom field groups still don’t show up under custom post types.
Also tried removing the custom fields group assignment to the custom post type and put it back, but no change either.
Is there a way to fix this?
Thanks
- The topic ‘Custom fields disappear after saving emtpy group’ is closed to new replies.