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. 238
    efe Says:

    pls l have this errror when l want to use this plugin. pls what do l do? pls give me step by step how to correct it from scratch. lam using version 2.2.9

    Will save the new version archive (zip) to a temporary file ‘/tmp/PLGWpTIYb’.
    About to extract ‘/tmp/PLGWpTIYb’.
    Extracting files from /tmp/PLGWpTIYb…
    So far, the type is set to ‘theme’.
    Need to load PclZip.
    gzopen() found, will use PclZip.
    PclZip failed!
    PclZip says : ‘PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature’

  2. 237
    White Shadow Says:

    @Grant Barrett - Thanks for letting me know. Fixed.

  3. 236
    Grant Barrett Says:

    There’s a cosmetic issue caused by a conflict between WP Super Cache 0.6.5 and One Click Plugin Updater 2.2.8.

    Any time there is a plugin that needs to be updated, OCPU always says that the name of the plugin is WP Super Cache, even though it places the little alert underneath the correct plugin and even though the updates work just fine. If there’s more than one plugin needing to be updated, then the alerts all say WP Super Cache Here’s a screen grab:

    http://www.waywordradio.org/wp-supercache-conflict.jpg

  4. 235
    White Shadow Says:

    Well, I don’t know. You could hack the plugin to use unzip instead of PclZip if you want - edit the line 831 :

    function extractFile( $zipfile, $type='autodetect', $target = '', $use_pclzip=true

    Change "true" to "false" :

    function extractFile($zipfile, $type='autodetect', $target = '', $use_pclzip=false

    Might help.

  5. 234
    billyduc Says:

    I ‘ve already use the latest version !

  6. 233
    White Shadow Says:

    @billyduc - It looks like PclZip doesn’t work on your server… Do you have the latest version of the plugin (2.2.8)? Some older versions had this problem with PclZip.

  7. 232
    billyduc Says:

    HI white Shadow…Your Plugin is great..It ’s help me save time very much…
    But I have the problem when click to UPGRADE ALL or AUTOMATIC UPGRADE….
    It return me an error…I followed your installation instruction…and have already chmod to 777…you may see my picture http://depchai1vung.googlepages.com/InstallerError.png

  8. 231
    aperture physics Says:

    This is a great plug in

  9. 230
    White Shadow Says:

    @Patrick Curl - The plugin doesn’t intentionally change the file owner, but any files it creates (and possibly files it overwrites, too) will be owned by the same user account under which the webserver/PHP engine are running. There’s nothing I can do about this - it depends entirely on your server configuration. most likely the problem was caused by a configuration change, too.

  10. 229
    Patrick Curl @ There's a Blog in my Soup Says:

    I love this plugin, but over the past few weeks it has been messing things up a bit - since the 2.6 change in wordpress.

    Apparently it is changing the ownership of the files it updates, and the only way I can change them back is to contact my host’s customer support which is extremely lousy to begin with…

    Is there a way to keep the plugin from changing the user?

  11. 228
    White Shadow Says:

    @Marcel - Debug mode should be off by default, and I’m sure it is off in the latest version. Irregardless of how it came to be enabled, you can turn debug mode off in Plugins -> Upgrade Settings. Uncheck the box “Enable debug mode”.

  12. 227
    Marcel Says:

    Problem with the latest 2 versions …

    “Error reporting set to E_ALL.
    .
    .
    .
    (Debug version = redirection will not happen. Script execution finished.)”

    Why is it in a debug version?

  13. 226
    White Shadow Says:

    @nurikabe - Thanks, that is actually a minor, stealthy bug. I’ll fix it right away.

  14. 225
    nurikabe Says:

    Minor annoyance: Warning: mb_stristr() [function.mb-stristr]: Empty delimiter. in /var/www/…/wordpress/wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 253

    I should probably just hide warnings, but thought I’d let you know.

  15. 224
    White Shadow Says:

    @Fizzgigg - Updates are supported for plugins that are hosted on WordPress.org. WordPress.org has an API that my plugin (and WordPress itself) use to find out if a particular plugin has updates available.

    Hosting a plugin on wordpress.org is free; details here.

  16. 223
    Fizzgigg Says:

    I still use some plugins that doesn’t work with this plugin in the sense that the plugin can’t detect if there is an update available. It’s not because of this plugin, mind you, but the other plugins.
    From a developers point of view, is it hard to implement support for update plugins? Is there a faq or information about how to do it? It would be nice to try to convince the developer of the plugins that doesn’t support updating to implement it. The quest for update support, so to speak. :-)

  17. 222
    Chris Masse Says:

    Congrats to you for the latest improvement in this plugin. The bugs have disappeared, and all is working like a charm. Very useful.
    Thanks,
    Chris

  18. 221
    White Shadow Says:

    Hmm. I have wp-super-cache active on this blog, too, and it doesn’t seem to cause any problems.

  19. 220
    Engelium Says:

    Well… I found the problem…. I don’t know why but if ocpu and wp-super cache are both active there is the problem… however I don’t really need wp super cache so this is not a problem for me :)

  20. 219
    Engelium Says:

    Uhmm… I don’t remember if this appens after an update… I can try on another installation (but in the same server) and test it…

  21. 218
    White Shadow Says:

    @Engelium - so this only started happening recently? I haven’t made any changes to the plugin in the last few days, so the source of the problem is likely some other software. Have you upgraded or installed a new plugin right before the problem appeared? Also, changes in server configuration might cause strange bugs to appear.

  22. 217
    Engelium Says:

    Hi

    since a few days if this plugin is active I can’t access to the administration of WP …. I have only a totally blank page (also the sources are blank) O_o

    The only way to access is delete the plugin throught FTP …. Why does this appens and how can I solve?

    Tnx a lot

  23. 216
    一键上传wordpress主题和模板 | 随机博客 Random it Says:

    [...] 插件主页 [...]

  24. 215
    White Shadow Says:

    Originally Posted By Jennifer

    Originally Posted By Mario A. NúñezAfter installing the plugins, all my plugins dissappeared and I do not have access to them. Any help would be appreciated.

    I had the same exact problem.

    Help! Please!

    Can you elaborate on this “disappearance”? Does that mean that you no longer see the “Plugins” item in the dashboard menu, or that you can’t access it (how?), or that the “Plugins” tab is empty (if so, does it show at least something)? Or something else entirely?

    P.S.
    Sorry for not answering earlier - I’m having problems with my ISP.

  25. 214
    Jennifer Says:

    Originally Posted By Mario A. NúñezAfter installing the plugins, all my plugins dissappeared and I do not have access to them. Any help would be appreciated.

    I had the same exact problem.

    Help! Please!

  26. 213
    Mario A. Núñez Says:

    After installing the plugins, all my plugins dissappeared and I do not have access to them. Any help would be appreciated.

  27. 212
    Upgrading WP: Taking The Plunge : Learn How To Do Things Says:

    [...] it turns out I needn’t have worried about updating all the plugins - enter Single Click WordPress Plugin Updater. Where have you been all my WP life! Needless to say this little plugin beauty saved me from [...]

  28. 211
    ovidiu Says:

    thx for the answer. I changed the option to 775 on the plugins settings, but maybe it was too late. I’ll change the permissions again, and as soon as a new update is available I’ll try it out again.

  29. 210
    White Shadow Says:

    @ovidiu - I don’t think this is a bug in the plugin’s access-detection routine. As you can see from the log, the plugin actually can’t write the file in question.

    However, it thinks it can write to the folder. You could check if this is correct by trying to install a new plugin using the installer at Plugins/Install Plugin. If that works the problem is most likely with the specific file(s) that the plugin can’t overwrite.

    It might have something to do with the fact that since recently the plugin will try to chmod 755 any files it extracts (configured on the settings page), but it seems unlikely.

  30. 209
    ovidiu Says:

    oh, and I have one more idea: sometimes when I had problems with your plugin, I used the built in update, via FTP, so that might have reset the rights on the folders?

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

Leave a Reply