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: « 17 8 9 10 11 [12] 13 14 15 16 17 » Show All

  1. 315
    Eric Wood says:

    @White Shadow – I know that there can’t be fully automatic plugin updating, I’d just like my plug in to show on the list (have the yellow square)

    Thanks for your help!

  2. [...] OneClick will certainly change the way you install plugin and theme on your WordPress. Once installed and used with OneClick Installer Firefox extension, it simplifies the effort to install both plugin and theme to just one single click without the use of any FTP upload. [...]

  3. [...] One Click Plugin Updater [...]

  4. [...] One Click Plugin Updater ဒါကေတာ့ plugin ေတြကုိ upgrade လုပ္ဖို႕ click တစ္ခ်က္နဲ႕ တင္အဆင္ေျပပါတယ္ … [...]

  5. 319
    Walt says:

    Hi. I’ve used this plugin for quite awhile. However, I’ve noticed quite often when I click on the upgrade option it works for awhile and then I get a 500 error. The new version of the pluigin installs correctly, but the plugin is not activated. This happens about every other time I try a plugin upgrade.

    When I use the built-in WP function (when the One-Click plugin is not active) I never have the problem, and if I use Plugin Central to do the same thing, I never have a problem.

    What can I check to see what’s happening?

  6. 320
    Tanin says:

    The “Delete Cache” button on the wp-admin pages should not be visible for registered users, only for admins.

  7. 321
    Tanin says:

    Oops. My previous comment can be deleted.

    When I meant to say was:

    The “There are new versions available for…” box on the wp-admin pages should not be visible for registered users, only for admins.

  8. 322
    White Shadow says:

    @Walt – You can turn on “Debug mode” in Plugins -> Upgrade Settings and see if you can find any clues in the debug output that will be produced when you try to upgrade a plugin. Other than that I can’t suggest much – error 500 is a very generic error that doesn’t tell us anything about the nature of the problem.

    @Tanin – Good point, I’ll change it.

  9. 323
    Humberto Cruz says:

    Hello,

    I’m trying to use this plugin on a server that is protected by a firewall. What url address I have to setup on the firewall rules to allow it to “detect” plugins updates and install then ?
    Thanks

  10. 324
    White Shadow says:

    @Humberto Cruz – Updates are “detected” via api.wordpress.org and downloaded from an appropriate URL on downloads.wordpress.org

  11. 325
    Walt says:

    OK. I set the debug option on and tried a plugin update. It looked like it ran ok. At the end of the script it had this:

    Extraction succeeded.
    Upgraded plugin was active. It will be reactivated.
    Main loop finished.
    Should redirect to http://(mydomain).com/wp-admin/plugins.php?action=activate&plugin=search-unleashed%2Fsearch-unleashed.php&_wpnonce=83cb376aac
    (Debug version = redirection will not happen. Script execution finished.)

    Normally, at the end it just goes to the 500 “something didn’t happen” error. Do you need more information?

  12. 326
    Walt says:

    By the way, I forgot to mention- even though the script claimed “it would reactivate the plugin”, it did not….

  13. 327
    White Shadow says:

    @Walt – It didn’t reactivate because it was in debug mode, just as it says on the last line of the log. Judging from the part of the log you posted, everything went just fine with the upgrade – or so the plugin thinks. No ideas.

  14. 329
    Navjot Singh says:

    A error comes while updating the plugins: Fatal error: Call to a member function dprint() on a non-object in /home/navjot/public_html/dailysms/wp-content/plugins/one-click-plugin-updater/do_update.php on line 127

  15. 330
    White Shadow says:

    @Navjot Singh – As far as I know it is impossible to get this error [in the current version] except if you somehow manage to launch an installation/upgrade while the updater plugin is deactivated. Which should be impossible. Mhm.

    … Not that this helps anything :P

  16. 331
    Peter Answers says:

    For the last couple of versions I have not been able to install plugins, and to update them I have had to disable the plugin and use standard wordpress. This is the error I am getting when I try to install a plugin and when I turn on debugging I get pretty much the same info when trying to do an update:

    Plugin Installed

    However, I couldn’t verify that it really is a plugin. Hmm.

    View installation log
    Downloading ‘http://downloads.wordpress.org/plugin/cross-linker.1.3.2.zip’…
    Downloaded 15839 bytes.
    Will save the new version archive (zip) to a temporary file ‘/wp-content/plugins/one-click-plugin-updater/plg078c96f15341dbab189f5dd346b2e8e3.zip’.
    About to extract ‘/wp-content/plugins/one-click-plugin-updater/plg078c96f15341dbab189f5dd346b2e8e3.zip’.
    Extracting files from /wp-content/plugins/one-click-plugin-updater/plg078c96f15341dbab189f5dd346b2e8e3.zip…
    So far, the type is set to ‘plugin’.
    gzopen() found, will use PclZip.
    PclZip failed!
    PclZip says : ‘PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature’
    PclZip unavailable, using unzip.
    Extracting files from /wp-content/plugins/one-click-plugin-updater/plg078c96f15341dbab189f5dd346b2e8e3.zip…
    So far, the type is set to ‘plugin’.
    Running the unzip command.
    unzip returned value ‘0′. unzip log :
    Array

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

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

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

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

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

  22. 337
    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…

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

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

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

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

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

  28. 343
    White Shadow says:

    @Fizzgigg – No ETA at the moment, sorry.

  29. 344
    Fizzgigg says:

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

Pages: « 17 8 9 10 11 [12] 13 14 15 16 17 » Show All

Leave a Reply