Single Click Plugin Updater WordPress Plugin

This plugin extends the plugin update notification feature introduced in WordPress 2.3 by adding an “update automatically” link to update notifications. When you click the link, the new version of the corresponding plugin is downloaded and installed automatically. It also lets you know which plugins have update notifications enabled.
Update 06.04.2008 : Version 2.0.1 with much more features is out. More info here.

Download it now! (37 Kb)

How It Works (In Detail)

To be able to display the new link this plugin will hide the original update notification and display a slightly modified one. Here’s what happens when you click the “update automatically” link :

  1. If the plugin that needs to be updated is active, it is deactivated.
  2. The Plugin Updater retrieves the plugin’s page from WordPress.org and finds the download link.
  3. The new version is downloaded and extracted to the wp-content/plugins directory (this directory must be writable by the Updater plugin).
  4. If necessary, the updated plugin is re-activated.

All this happens in the background, so if everything works OK you’ll end up back at the “Plugins” tab. If there are any errors the plugin will display an error message and abort the upgrade.

Requirements

  • WordPress 2.3 or newer.
  • CURL library installed or allow_url_fopen enabled in php.ini. If you don’t know what that means, don’t worry – at least one of these is available on most webservers by default.
  • The /plugins directory must be writable by WordPress. The exact file permissions depend on the server configuration. Read more about file permissions. 666 or 755 may be sufficient, and 777 will always work, though this is not recommended due to security risks.

The plugin has been tested and works under Firefox 2.x, Opera 9.x and, as of version 1.0.5, Internet Explorer.

Installation

To install the plugin, please follow these steps:

  • Download the one-click-plugin-updater.zip file (below) to your computer.
  • Unzip the file.
  • Upload “one-click-plugin-updater” folder to the “/wp-content/plugins/” directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.

That’s it.

Download

one-click-plugin-updater.zip (40 Kb)
CC-GNU GPL

Related posts :

534 Responses to “Single Click Plugin Updater WordPress Plugin”

  1. White Shadow says:

    @Peter Answers – As far as I can tell from the log, it fails because PclZip doesn’t work (can’t tell why that happens). The plugin tries to fall back to using the “unzip” command, which doesn’t work either (according to your comments).

    I don’t know what’s causing it. If it really is pclzip, see if you can get a pclzip.lib.php file from an older version of the plugin and put it in the plugin’s folder. That might help.

  2. Tony Gray says:

    I give up! I have not been able to use this plugin for several versions. Always fails in the unzip. I have tried it on probably six different wordpress installations and same on all. Maybe it will be fixed soon. Great plugin if it only worked.

  3. Juan Manuel says:

    Well, I have the same problem Tim G. described some comments before. The problem Is that I have no access to the server via Putty or something like that and I really would like to use the plugin, since it’s really really useful.

    My question is: considering you already know the problem (files installed by the plugin can’t be deleted because of some kind of user permissions problem). What can I ask to the hosting provider? I mean, which is that server configuration problem?

    Hope you get my english… it sucks ¬¬

    best regards,

  4. White Shadow says:

    @Juan Manuel – The short-term solution (which may actually be sufficient in some cases) is to change the owner of the files in question to the same owner the plugin’s own files (i.e. one-click-plugin-updater.php) have. Or at least that’s what I’d do on my server – frankly, I’m not that skilled in *nix server-adminship to confidently state this solution would work for everyone.

    Also, I have a fairly dim understanding about how to change which user Apache and/or PHP run as. In my case it involved enabling Suhosin when recompiling Apache (IIRC) and some RTFM.

  5. ovidiu says:

    I still use and love your plugin because it shows me which plugins are not automatically checked by it, by the missing yellow bar so I an manually check those πŸ™‚ (using wp 2.7 beta3-something)

  6. White Shadow says:

    @ovidiu – πŸ™‚ I should probably do some work on making it more compatible with 2.7 (strip out redundant functions and so on), but I’m pretty busy…

  7. Upekshapriya says:

    According to a post in WordPress Support http://wordpress.org/support/topic/197125 the problem with the PclZip error is ‘solved’ by disabling WordPress Automatic Upgrade plugin, which worked for me.

  8. Chas says:

    I always get:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Apache/1.3.33 Server at Port 80

  9. Fizzgigg says:

    Maybe it’s just my installation, but since I upgraded to the release version of WP2.7 the indicator graphics thswt’s supposed to show if a plugin support the updating notification doesn’t work. Or it doesn’t show anyway.
    Plus the fact that I’m confused over what upgrade functions comes from this wonderful plugin and what comes from WP itself. But hey, I’m old, it’s probably just me. πŸ™‚

    Have a nice weekend.

  10. White Shadow says:

    @Fizzgigg – Well, the plugin doesn’t “officially” support WP 2.7 yet, so a few bugs are probably to be expected πŸ˜‰ Though this particular feature works fine on my 2.7 blogs.

  11. Fizzgigg says:

    @White Shadow
    Good point. πŸ™‚ I’ll just wait until the updated version. Any guess of an ETA?
    And no, the graphics still doesn’t wok on my site. The rest work for all I know, but the graphic doesn’t for some strange reason.

  12. White Shadow says:

    @Fizzgigg – No ETA at the moment, sorry.

  13. Fizzgigg says:

    I just discovered that the graphics work in Firefox but not in IE7.

  14. White Shadow says:

    @Fizzgigg – I guess that’s another argument against using IE, isn’t it? πŸ˜‰ BTW, they work in Opera, too.

  15. […] with its jazzy interface. Last night I tip toed quietly into WordPress 2.7 which was done by the Single Click Plugin Updater WordPress Plugin which at the click of a keystroke I am done with the upgrade. No code needed either.Β  I am […]

  16. desu says:

    Your plugin created some files owned not by me [the master account] and now i can’t delete or even CHMOD, i just get a permanent 550 error. They’re theme files.

  17. White Shadow says:

    @desu – The plugin runs under the same account as PHP, so the files also belong to that account. This depends on your server configuration and I can’t change it.

    In any case, root (the superuser) should be able to change the owner of those files or delete them. Contact the hosting support if you don’t have access to the root account yourself.

  18. […] One Click Plugin Updater, paling penting mempermudah proses instalasi plugin n themes […]

  19. RightMan says:

    Is this plug-in now required especially in WP ver.2.7 since it does automatically informs of new versions of plugin directly….

  20. White Shadow says:

    @RightMan – No, it’s not required anymore. However, I still use it myself because it lets me install plugins by entering an URL, etc.

Leave a Reply