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:

298 Responses to “Single Click Plugin Updater WordPress Plugin”

Pages: « 10 9 8 7 6 5 4 3 2 [1] Show All

  1. 28
    Toby Says:

    @White Shadow “This hasn’t happened to me, but it might be possible when the old & new versions have different directory/file structure. This should be pretty rare.”

    Yeah, that happened to me with a plugin that was once just a file while the update was a folder. The plugin was installed, but Wordpress only recognized the older one until I realized the problem and deleted it.

  2. 27
    Mo Upgrades | commadot.com Says:

    [...] One Click Plugin Updater  - This is supposed to update my plugins with one click.  It notifies me when one of the plugins has a new version, but throws an error when I try to upgrade something. [...]

  3. 26
    Dani Says:

    Very impressive!
    Great piece of software!!

  4. 25
    ø See Which Plugins Have Update Notifications Enabled | W-Shadow.com ø Says:

    [...] added a new feature to my single-click WorPress plugin updater - now you can see which of your plugins are checked for updates. Those plugins that have update [...]

  5. 24
    Plugins that you can’t live without if you’re using WordPress | Makes Me Wonder Says:

    [...] OneClick Plugin Updater adds on to the functionality of the built-in WordPress plugin update notification. It lets you update the plugin with one-click right on the Plugins screen. [...]

  6. 23
    WordPress Plugin - Massor av bra WordPress plugins Says:

    [...] Single Click Plugin Updater WordPress Plugin Detta plugin gör det mycket enkelt att ladda ner och uppdatera dina WordPress plugins. För att detta skall fungera krävs det att du använder version 2.3 eller nyare. [...]

  7. 22
    Some WordPress Plugins Worth Their Salt | iPentimento Says:

    [...] One Click Updater -  Adds an “update automatically” link to plugin update notifications. [...]

  8. 21
    White Shadow Says:

    Yeah, I’ve already heard that idea somewhere else; unfortunately that would be hard to do because the wordpress.org API is undocumented and from the source code of WP I don’t see any suitable functions.

    There is one “hack” I could try; maybe in some future version :)

  9. 20
    Danny Says:

    Hey, I just thought I’d point out how much I love this plugin. Love it!

    Might I offer an idea for a future version, or for a separate plugin? I’d like some visual indicator, on the plugins page, of which plugins are not being checked (i.e., if they are not in the wordpress.org/extend site), so I know to continue checking them manually every so often.

    Thank you!

  10. 19
    White Shadow Says:

    Hey, Krishna, you don’t need to set the permissions for each file/folder in the /plugins directory! Just set the permissions for the /plugins directory itself.

  11. 18
    Krishna Says:

    Not working for me probably due to my not-so-good knowledge of things. It would be great if it could be like the “Automatic Wordpress Upgrade” where I can enter the details of the ftp, etc and let the program do the rest.
    I have so many plugins in the /plugins directory that changing their file attrib takes such a long time that I want to just give it up.

  12. 17
    White Shadow Says:

    This hasn’t happened to me, but it might be possible when the old & new versions have different directory/file structure. This should be pretty rare.

    I could make it delete the old plugin before/after downloading the new one, but that would be dangerous, e.g. there might be some config or cache files in the old plugin’s directory which would get deleted, too. So I won’t be doing that.

  13. 16
    Swift Says:

    Why is it that once I automatically update the plugins, I get duplicates. An old one and the new one. Is it possible that the old one be removed automatically or is it just me?

    Anyways nice plugin, great for lazy people (or shall we say busy =) ) like me.

    Swift

  14. 15
    White Shadow Says:

    It didn’t work in IE because Internet Exploder doesn’t support CSS2 very well. I’ve rewritten the CSS and it now works in IE (as in “it worked the one time I tried it” ;) ).

  15. 14
    Daniel Says:

    and BTW, it works great in FF. Thanks a lot for your time!

  16. 13
    Daniel Says:

    I found a bug! :)

    This does not work in internet explorer 6. ( there is no auto update link when using internet explorer.

    Please, can you fix that?

  17. 12
    Danny Says:

    FWIW, this new version fixed my problem. Thanks!

  18. 11
    White Shadow Says:

    It’s a bug. I got it fixed, but I forgot to upload the newest version, sorry!
    This should work.

    I keep forgetting one needs to be very careful when releasing something that “works for me” to the public :/

  19. 10
    Chriss Pagani Says:

    I just get the error,

    Fatal error: Call to undefined function: is__writable() in /home/pagani/public_html/wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 134

    It doesn’t appear to be a permissions error. No change in permissions gets rid of this undefined call error.

  20. 9
    White Shadow Says:

    In the version 1.0.3 I made slight changes to how this plugin determines whether it can write to the plugins directory. However, if this was the cause for your problem, there should be an explicit error message displayed. All I changed in broken link checker was that it would display an error message if CURL wasn’t available. Have you tried updating it manually? What about automatically updating other plugins?

    I’ll need to do more testing before I can suggest anything.

  21. 8
    Danny Says:

    Hello again,

    It was working very well, even with permissions at 755, which is great. But I just auto updated to the latest version 1.0.3, then an hour later tried to update Broken Link Checker to 2.2.1, and clicking on the update automatically link results in a blank page (like a php error or something).

    They may not be related. Sorry.

  22. 7
    WordPress Plugins Database » Plugin Details » One Click Plugin Updater Says:

    [...] Visit [...]

  23. 6
    White Shadow Says:

    This is probably a file permission issue again. Try temporarily setting your plugins directory to 777 (writable by anyone) and see if it works them. I’ll also upload a minor update of the plugin shortly that should be able to report the problem more accurately.

  24. 5
    Luke Howell Says:

    The plugin does not seem to be updating the others. It seems to run fine but the plugins don’t get updated.

  25. 4
    White Shadow Says:

    Hey,

    Looks like the zlib extension is required by the PclZip library which this plugin uses to unzip files. I didn’t write that library, so I don’t know much about troubleshooting it…

    A Google search tells me you need to restart the webserver for the new php.ini to take effect. You could also try phpinfo() to see if the zlib extension is actually being loaded.

    Meanwhile, I have uploaded a slightly modified version of the plugin that will now correctly fall back to using exec() to run unzip (the unix binary) when zlib is not available.

  26. 3
    Danny Says:

    Hi. Also like the idea of this, but it does seem to require the zlib extensions to php be enabled. I have enabled them (off by default on my host, and yet it still claims they are not available. Does this all ring true? I’m uncommenting the line `extension=zlib.so` in my php.ini file for php5.

    Thanks.

  27. 2
    White Shadow Says:

    File permissions are probably to blame; though if the Oneclick installer works, I’ll have to see how it does that.

  28. 1
    JHS Says:

    Doesn’t work. I have been using the one click installer for some time, but this one does not work at all. It displays the same message every time: “Error : couldn’t unzip the new version of the plugin.”

Pages: « 10 9 8 7 6 5 4 3 2 [1] Show All

Leave a Reply