Error 500 on edit post for Editor users

Hello,
I've got a problem when a user with Editor role needs to edit a post or a page. The user can view all the posts or pages but when he tries to edit one, an error 500 blocks the editing.
I've tried disabling all my plugins but nothing. So I tried activating the Twenty Seventeen theme and everything was fine. I suppose there is something with your theme and maybe your options but I am really not able to find the issue. If I open the edit page of a post as administrator I have no errors.

It's quite urgent, thank you very much

Comments

  • After further investigation, I found a memory limit on the server. I'm sorry for the post.

    Have a nice day
  • Just seen that I've written a post, I found a little bug that spam out some notices with a plugin (Profile Builder for instance). I've solved the problem in this way

    function repair_pb_menu_nav_filter(){
        remove_filter('wp_setup_nav_menu_item', 'mfn_wp_setup_nav_menu_item');
        add_filter( 'wp_setup_nav_menu_item', 'custom_mfn_wp_setup_nav_menu_item' );
    }
    add_action('wp_loaded', 'repair_pb_menu_nav_filter');
    function custom_mfn_wp_setup_nav_menu_item($menu_item) {
        if( !property_exists($menu_item, 'post_content') )
            return $menu_item;

        return mfn_wp_setup_nav_menu_item($menu_item);
    }

    Is it possible to update the theme?

    Thank you in advance
  • If you have changed the files directly the theme update will overrite those changes. If you want to make such custom changes you need to use a child-theme.
    thanks
  • I never touch parent code. Always child theme, my question was if you could add that check directly from the parent theme.
    thanks
  • Only modify the child theme. You only need to update the parent theme.

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.