500 Server Error on updating post
-
Hi there,
suddenly (I can’t define wether it was the WordPress update or some plugin updates causing this) my installation broke on updating posts, giving a 500 server error.
After some debugging I found out, that you are “deregistering” some hooks in admin/admin-posts.php in the function cml_store_quick_edit_translations (line 377 ff.):
$GLOBALS['wp_filter']['post_updated'] = array(); $GLOBALS['wp_filter']['publish_post'] = array(); $GLOBALS['wp_filter']['transition_post_status'] = array(); $GLOBALS['wp_filter']['update_post_metadata'] = array(); $GLOBALS['wp_filter']['publish_my_custom_post_type'] = array(); $GLOBALS['wp_filter']['edit_page_form'] = array(); $GLOBALS['wp_filter']['edit_post'] = array(); $GLOBALS['wp_filter']['save_post'] = array(); $GLOBALS['wp_filter']['add_post_metadata'] = array(); $GLOBALS['wp_filter']['wp_insert_post'] = array(); $GLOBALS['wp_filter']['wp_update_post'] = array();
I replaced it with the following and everything worked fine:
remove_all_filters('post_updated'); remove_all_filters('publish_post'); remove_all_filters('transition_post_status'); remove_all_filters('update_post_metadata'); remove_all_filters('publish_my_custom_post_type'); remove_all_filters('edit_page_form'); remove_all_filters('edit_post'); remove_all_filters('save_post'); remove_all_filters('add_post_metadata'); remove_all_filters('wp_insert_post'); remove_all_filters('wp_update_post');
Now everything works fine.
Just if anyone runs into the same problems…
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘500 Server Error on updating post’ is closed to new replies.