WordPress.org

Ready to get started?Download WordPress

Ideas

Protection against plugins with parse errors

  1. Mark Jaquith
    Moderator

    12345

    Right now, activating a plugin that causes a PHP fatal error means that you have to fire up FTP and delete the plugin file, which is cumbersome and technically intimidating for some people.

    Upon plugin activation, we should conditionally load the plugin the user is activating, and only if it loads with no issues will it actually be activated.

    Idea 1: (simple) submit a nonced form with the plugin file name, verify the nonce, and include the plugin. On footer/shutdown, activate the plugin. If there is an error, it won't be activated.

    Idea 2: (sexy) Conditionally include the plugin in an AJAX request. If you don't get a valid response, shoot back the error in a dialog or on-page error box. Revert to 1 for JS-less people.

    Posted: 7 years ago #
  2. sunburntkamel
    Member

    12345

    would this mean no more editting plugins via the admin interface? or would they have to be revalidated on save?

    Posted: 7 years ago #
  3. No reason to get rid of the editor, it'd probably just recheck it.

    Posted: 7 years ago #
  4. ttech5593
    Member

    Yeah, I like this idea.. It would save alot of time..

    Posted: 7 years ago #
  5. John Blackbourn
    Member

    12345

    Nice. No need for Idea 2 though, Idea 1 should work like a treat.

    Posted: 7 years ago #
  6. ttech5593
    Member

    Good point.

    Posted: 7 years ago #
  7. m0n5t3r
    Member

    12345

    Idea 1 is already implemented in SVN :)

    Posted: 7 years ago #
  8. WedgeMcCloud
    Member

    12345

    There is no comment that is needed to be added to this.

    This is a MUST for plugin users!

    Posted: 7 years ago #
  9. alexchoo
    Member

    12345

    Hello,

    Try this plugin. It does what you want.

    http://www.wptextads.com/blog/2007/05/07/wordpress-plugin-syntax-checker/

    Posted: 7 years ago #
  10. migol
    Member

    12345

    I don't like idea. It isn't much job to remove a file from FTP because you've put it there. If there would be option to automaticaly install plugin from a .zip file, then yes, it would have advantage. But there isn't, so...

    Posted: 6 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    140 Votes
  • Status

    This idea has been implemented