WordPress.org

Ready to get started?Download WordPress

Forums

Can we force plugins to fail "gracefully"? (3 posts)

  1. wildmercury
    Member
    Posted 6 months ago #

    Long-time lurker and secret lover of WP finally gets off backside...

    I've adored what the WP team have done over the last 11 years, and I don't want to ruin our relationship, but one thing has really come to upset me as the amazing plugin phenomenon grows, is the way when a plugin fails it is capable of bringing down the whole site, whether it's a 500 error or a blank page.

    Can we force plugins to fail gracefully? Is there something we can put in the core that will "error check"/run a debug on the plugin at runtime and skip it or placeholder it, instead of letting it bring down the site. I know this would add to server resources and load time, but might it be worth doing? Even if it's an "option" admins can turn on when updating plugins?

    Kisses to all xxx

  2. esmi
    Forum Moderator
    Posted 6 months ago #

    Can we force plugins to fail gracefully?

    I'm not sure that this is going to be possible in the foreseeable future. Plugins are so very different that I'm not convinced that an automated error check will ever work. Plus it wouldn't account for things like conflicts between otherwise well-coded plugins.

  3. We've tried it before. In the case of two plugins butting heads, which one wins?

    Also if the plugin breaks the site, how can WP turn it off? :/

    I hate that too.

Reply

You must log in to post.

About this Topic