• 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)
  • Hi, I had the same issue. This works fine! thank you for sharing.

    Same probelm, I have solvet disable a quick edit mode in Ceceppa advanced option.

    But I would like to solve better.
    Can you explane where modify that code? Or Plugin Author can explane on create an update for plugin?

    Thanks.

    Thread Starter Marcus Kober

    (@marcuskober)

    @treart:

    As another poster (https://www.ads-software.com/support/topic/website-down-74/) points out, the site of the owner of this plugin is down, so there’s some chance, that this plugin is abandoned. So I would suggest switching to a an other multilanguage plugin…

    If you’re not able to switch please see my comment above. You can find the file admin-posts.php in the folder “admin” in the plugin’s folder. On line 377 and following is the code located.

    Please note that I am NOT the owner of this plugin, I just created a workaround for this specific problem!

    Craig

    (@divithemeexamples)

    im getting this after updating WP core

    Fatal error: Call to a member function apply_filters() on array in /home/wwwdok/public_html/wp-includes/plugin.php on line 203

    is this likely to be the same issue? same solution?

    thanks…

    has the plugin developer gone AWOL or still answering some Q’s here?

    Thread Starter Marcus Kober

    (@marcuskober)

    @divithemeexamples:

    Yeah, maybe that’s the same issue. Try my solution posted above and see what happens… It’s not a hack or something that can cause troubles. It’s just sticking to the WordPress way.

    Would be nice to hear if it worked for you too.

    AWOL of the dev is likely…

    Craig

    (@divithemeexamples)

    ok, just updated with your code and the error is no longer showing…
    many thanks Marcus ??
    and thanks for assuring this is not a hack that will break other things as that was on my mind ??
    cheers

    Thread Starter Marcus Kober

    (@marcuskober)

    @divithemeexamples:

    Great to hear that, thank you. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘500 Server Error on updating post’ is closed to new replies.