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

Share :
  • Reddit
  • del.icio.us
  • Digg
  • StumbleUpon
  • DZone
  • Ping.fm
  • Sphinn
Related posts :

494 Responses to “Single Click Plugin Updater WordPress Plugin”

Pages: « 13 4 5 6 7 [8] 9 10 11 12 1317 » Show All

  1. 195
    Fizzgigg says:

    Originally Posted By White ShadowI’m running WP 2.5.1 as well, and it works on my two blogs.

    View the source of the Plugins page and see if you can find lines like
    //Add a status msg.
    and
    //Add the “Delete” links to inactive plugins

    If you find them both, it’s a JS problem of some kind. If only the first one, it’s probably a permission problem. If neither, then there are some serious issues with that situation – the footer hook isn’t running properly.

    And what is this “dashboard widget” you speak of?

    Sorry about that dashboard thing, I must have mixed up this plugin with some other. I don’t miss it either since I don’t use the dashboard. :)

    I tried updating the java engine to update 6 and that didn’t help.

    I’m not sure I follow (I’m not very good at programming). If I go to http://www.mydomain.com/wp-admin/plugins.php, right click and choose View Source I can see both
    //Add a status msg.
    and
    //Add the “Delete” links to inactive plugins

    It doesn’t work on neither of my computers and nether IE7 or Firefox.

  2. 196
    White Shadow says:

    @Fizzgigg -Yes, you did the right thing. Hmm… Okay, check the source again and see if you can find any mention jquery.js. It’s probably not there. If that’s the case, then I’ve found the bug and will fix it soon.

  3. 197
    Fizzgigg says:

    @White Shadow
    I found it on row 18:

    Another strange thing is that when I click “Save changes” in “Plugins/Upgrade Settings” I get the message “Settings saved” but they aren’t saved.

    BTW, I found the dashboard thing. It’s on the page “Plugins/Upgrade Settings” way down and says “Show the Miniguide submenu on Dashboard”.

  4. 198
    White Shadow says:

    @Fizzgigg – That was unexpected, I thought it would be missing (this would explain the missing Delete link, and more).

    …I’m afraid I can’t offer any more suggestions at the moment. Sorry, out of ideas.

  5. 199
    Fizzgigg says:

    @White Shadow
    Dang, I really want this plugin to work.
    *Thinking* Four out of four of my computers has the same problem, no matter OS and browser. That makes me think there’s something with the server and not with my computers. All the attributes on the directories on the server are correct as far as I know.

  6. 200
    White Shadow says:

    @Fizzgigg – It’s weird. Since jQuery is loaded and the script present, I don’t see why the delete links wouldn’t show up.

    Does at least something work (of the plugin)? E.g. do you see yellow/gray bars for every plugin in the plugin list? And you said the options don’t get saved; do you mean all of the options, or just some specific ones?

  7. 201
    Fizzgigg says:

    @White Shadow
    I can see the grey and yellow bars, I can install plugins from URL, I can delete themes.

    I can se the page “Upgrade settings” but It doesn’t save changes despite the fact it says it does and I can’t delete plugins.

    I haven’t tried to update anything yet because there hasn’t been any updates to any the plugins I use yet.

  8. 202
    White Shadow says:

    As I said, it’s very unusual. The bars are added pretty much the same way that the “Delete” link should be added – using a bit of jQuery/JavaScrip. If one shows up, why not the other? Ah, I don’t know.

  9. 203
    Fizzgigg says:

    @White Shadow
    This is really weird.

    I’ve updated the plugin from v2.2 to v2.2.2 without any change. And I discovered that settings are in fact saved but not all of them. “Show the miniguide…” for example is not saved but most of the others are.
    Could it be different version of php? My servers are using PHP 5.2.5.

  10. 204
    White Shadow says:

    “Show miniguide” should be fixed in 2.2.2. Still no idea about the rest of the problems.

  11. 205
    Fizzgigg says:

    @White Shadow
    Wow, with the new v2.2.3 delete works! :-D Sort of. I think I actually found a bug? When it tried to delete I get the error message that it can’t find and delete “…wp-content/pluginsmydashboard”. Shouldn’t there be a slash betweenplugins and mydashboard?

  12. 206
    White Shadow says:

    Yes, there should be a slash there. Can you give me the exact error message?

  13. 207
    baron says:

    hi. Thanks for plugin

    perfect.

    Regards

  14. 208
    ovidiu says:

    since a couple of version this plugin does not work anymore for me. have you changed anything regarding the detection if a fodler is writable or not?

    here is how my folders are treated: I do a chown -R myuser:www-data on the plugins folder followed by a chmod -R 775 so basically the group: www-data which is the group apache2 and php run as are allowed to read/write/execute so everything should be fine, still when I try a direct upgrade of a plugin, I get somethign like this:

    Warning: file_put_contents(/var/www/web6/web/wordpress/wp-content/plugins/one-click-plugin-updater/do_update.php) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/web6/web/wordpress/wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 979

    Can’t create file ‘one-click-plugin-updater/do_update.php’ in ‘/var/www/web6/web/wordpress/wp-content/plugins/’

    The full installation log is below :
    Checking to see if /var/www/web6/web/wordpress/wp-content/plugins is writable.
    Okay.
    Nonce verification passed.
    About to upgrade 1 plugins.
    Upgrading ‘one-click-plugin-updater/oneclick-plugin-updater.php’, download URL is ‘http://downloads.wordpress.org/plugin/one-click-plugin-updater.2.2.4.zip’.
    The plugin that needs to be upgraded is active. Deactivating.
    Downloading ‘http://downloads.wordpress.org/plugin/one-click-plugin-updater.2.2.4.zip’…
    Downloaded 58916 bytes.
    Will save the new version archive (zip) to a temporary file ‘/tmp/PLGopkHWL’.
    About to extract ‘/tmp/PLGopkHWL’.
    Extracting files from /tmp/PLGopkHWL…
    So far, the type is set to ‘plugin’.
    gzopen() found, will use PclZip.
    Starting extraction to folder ‘/var/www/web6/web/wordpress/wp-content/plugins/’.
    Extracting one-click-plugin-updater/do_update.php
    Can’t create file one-click-plugin-updater/do_update.php in /var/www/web6/web/wordpress/wp-content/plugins/!
    Main loop finished.

  15. 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?

  16. 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.

  17. 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.

  18. [...] 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 [...]

  19. 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.

  20. 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!

  21. 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.

  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. 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.

  24. 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…

  25. 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 :)

  26. 221
    White Shadow says:

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

  27. 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

  28. 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. :-)

  29. 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.

Pages: « 13 4 5 6 7 [8] 9 10 11 12 1317 » Show All

Leave a Reply