One Click Updater Plugin 2.0

This version of the WordPress plugin has a lot of new features, and, quite probably, a lot of new bugs, too. In fact, it’s so experimental it even glows in the dark :P

The plugin, which I’ve alternatively called “One Click Updater” and “Single Click Updater” in the past (no doubt to confuse everyone, including me), is now way more than a “plugin updater” plugin. Version 2.0 deals with plugin/theme installation, allows you to determine if and when WordPress checks for updates, and more. It was designed with WP 2.5 in mind, but most of the functions will still work in WP 2.3.

At the moment, the new version is only available from the WordPress.org plugin database.

New Features

  • Displays the number of active plugins and available upgrades right below the “Plugin Management” headline in the “Plugins” tab.
  • An “Upgrade All” option right next to the above (only in WP 2.5). It does exactly what you’d expect – download and install all of the available plugin updates.
  • Plugin and theme installation. I’m encroaching on the OneClick’s territory here… oh well, I haven’t seen a new version of that for a while. You can install a plugin/theme by providing an URL of a .zip file, or uploading the archive file yourself (see Plugins -> Install a Plugin and Themes/Design -> Install a Theme). The installer uses direct filesystem access (for now), so you’ll need proper file permissions for this to work. Eventually, I’ll add support for the new filesystem classes introduced in WP 2.5.
  • Autodetection! The plugin can parse a ZIP file and determine if it’s a plugin or a theme. Some salient data (such as name and version) is also extracted. You can see this in action by going to any of the installer pages (see above) and selecting “Detect automatically” from the “Type” dropdown.
  • Configure how often WordPress checks for plugin updates and new WordPress versions. You can also turn them off (not recommended) and select which “module” to use for plugin upgrades – this plugin, or the built-in updater in WP 2.5. All this is available for the small price of in the Plugins -> Upgrade Settings page.
  • Security. Most functions now use the WordPress nonce mechanism to prevent possible exploits (by the way, the abovementioned OneClick plugin is vulnerable).
  • Compatible with the OneClick Firefox Extension (unfortunately autodetection doesn’t work with this, yet).

Other Changes

  • The new interface is built for WP 2.5 and might not look as good on WP 2.3.x.
  • There are major changes to the internal handling of installation and upgrades – most of the relevant code has been rewritten from scratch. I think it is more elegant now, but new code = new bugs. Beware.
  • The “debug mode” flag is finally available on the “Upgrade Settings” page. Previously you had to change the plugin file itself to get any kind of execution log.
  • Multiple algorithm fallbacks for downloading files – the plugin can use either cURL, fopen() or sockets (via Snoopy) to download something. I only wish I could make filesystem access so robust as well.
  • Better error reporting (I think).
  • Unlike the built-in updater, this plugin calls both the deactivation and activation hooks for every plugin it upgrades.
  • Again, unlike in the WP 2.5 plugin updater, it doesn’t extract the whole archive to memory. I’ve made it extract and analyze archives file-by-file to avoid exceeding PHP memory limits. The limits can be very low on some shared hosting servers and might cause the built-in updater to crash if it encounters a very large ZIP file.
  • Some code (notably the directory creation routine) has been “borrowed” from WP 2.5.

In The Future There Will Be Robots

Or, in other words, where am I going with this plugin? Seeing as WP 2.5 already includes a plugin updater, which will undoubtedly get improved in the next version of WP, it might seem that the One Click Updater is becoming obsolete. After all, it’s a near certainty that WordPress will eventually also include it’s own plugin/theme installer and whatnot.

Does that mean I should just stop developing this plugin? Sure, it might work better than the core updater of WP 2.5 (for some people), but that likely won’t last.

The answer is – I don’t have the slightest idea :P I like my plugins, but I don’t want to “fight” WordPress. What do you think?

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

61 Responses to “One Click Updater Plugin 2.0”

Pages: « 1 2 [3] Show All

  1. 32
    sherm cohen says:

    Originally Posted By White Shadow1) What version of WordPress do you have?
    2) Where are you getting this error : when replying through the admin dashboard, or directly on a post?

    Hey, Shadow…I am using WordPress 2.6, and the error comes when replying through the admin dashboard. Thanks.

  2. 33
    White Shadow says:

    @sherm cohen – I think this means you are using a plugin to reply to comments. Most likely the problem is caused by some kind of plugin incompatibility. If you tell me what plugin you’re using I might be able to modify my plugin to work with it, but no promises.

  3. 34
    cekay says:

    So, here we go with debug enabled. It looks like the plugin uses routines that are not used as the earlier version. Or did I miss to set up something manual in a file ?
    Here is what I want to install with a right click in firefox on the download button:
    http://wordpress.org/extend/plugins/sitemap-generator/

    The error was: The plugin was already installed in the same directory (but wasnt activated), so maybe there should be a collision detection in the plugin. But anyway I wonder why it can’t overwrite. When I deleted the directory via ftp and did this one click thingy again, it worked like a charm and asked me if I want to activate it.

    Result:
    Downloading ‘http://downloads.wordpress.org/plugin/sitemap-generator.zip’…
    Downloaded 48288 bytes.
    Will save the new version archive (zip) to a temporary file ‘/tmp/PLGVtGfXW’.
    About to extract ‘/tmp/PLGVtGfXW’.
    Extracting files from /tmp/PLGVtGfXW…
    So far, the type is set to ‘autodetect’.
    Need to load PclZip.
    gzopen() found, will use PclZip.
    Starting autodetection.
    Checking sitemap-generator/sitemap-generator.php
    Found a plugin header! The plugin is : Dagon Design Sitemap Generator
    Starting extraction to folder ‘/www/htdocs/XXXX/wp-content/plugins/’.
    Extracting sitemap-generator/readme.txt

    Warning: file_put_contents(/www/htdocs/XXXX/wp-content/plugins/sitemap-generator/readme.txt) [function.file-put-contents]: failed to open stream: Permission denied in /www/htdocs/XXXX/wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 1047
    Can’t create file sitemap-generator/readme.txt in /www/htdocs/w0098a5f/wp-content/plugins/!

  4. 35
    White Shadow says:

    @cekay – It should normally be able to overwrite existing files. Maybe you have some kind of suPHP/Suhosin on your server and the updater and the target file/directory have different owner/group? That’s probably the last non-arcane guess I have.

  5. 36
    Chris Masse says:

    Hi there,
    Problem when trying to update this pludin:
    -
    Fatal error: Call to a member function dprint() on a non-object in xxxx.org/wp-content/plugins/one-click-plugin-updater/do_update.php on line 49

  6. 37
    White Shadow says:

    @Chris Masse – Did you upgrade it alone or with “Upgrade All”? The upgrade should work on it’s own, but not when upgraded together with other plugins – that’s a known issue and I’ll eventually fix it.

  7. 38
    Lizz says:

    I have 5 wordpress websites. They all give this error when clicking on ‘Upgrade All’ after the notice, ‘XX active plugins, X upgrades available’

    Server error!The server encountered an internal error and was unable to complete your request.
    Error message:
    Premature end of script headers: do_update.php
    If you think this is a server error, please contact the webmaster.
    Error 500

  8. 39
    Lizz says:

    If I try to update only one plugin through the ‘upgrade automatically’ link, I receive the following error:

    Your attempt to activate this plugin: “” has failed.
    Please try again

    BTW: Wordpress version is 2.6.1, and One Click Updater version is 2.4.3 for these last 2 comments. Thanks.

  9. 40
    White Shadow says:

    @Lizz – Ah, the infamous “Error 500″. It basically says “something went wrong!” and there’s no easy way to tell what that “something” was.

    See if there are any error_log, php_error_log or similar files in the plugin folder or your WP root directory, maybe those will contain some clues. Otherwise I simply have nothing to go on.

  10. [...] 2、OneClick Plugin Updater OneClick 是一个WordPress Plugin + Firefox Extension 的组合,能让我们一键快速上传安装插件或者模板,除了可从硬盘的ZIP压缩文件安装任何插件或主题外,还能从任一网址下载ZIP压缩文件来安装插件或主题而无需下载到本地。 [...]

  11. [...] OneClick Plugin Updater OneClick is a Wordpress Plugin+Firefox Extension combo which will change the way you look at [...]

  12. [...] OneClick Plugin Updater OneClick is a Wordpress Plugin+Firefox Extension combo which will change the way you look at [...]

  13. 44
    Sergey says:

    Hi!

    I use One Click Updater Plugin 2.4.4, and lov it. Very like install from url plugins/themes.

    But — it dont work :) — every time after i press «install», i redirect to login form. And after this nothing help :(

    Whats wrong?

    I use WP 2.7

    Thank You in any case!

  14. 45
    White Shadow says:

    Hmm, I’ve used it with WP 2.7 with no problems, so it’s probably not version incompatibility… Try clearing your cookies and reloading the page, perhaps that would help. Have you changed anything else in your blog’s configuration except updating to WP 2.7?

  15. [...] 2、OneClick Plugin Updater OneClick 是一个WordPress Plugin + Firefox Extension 的组合,能让我们一键快速上传安装插件或者模板,除了可从硬盘的ZIP压缩文件安装任何插件或主题外,还能从任一网址下载ZIP压缩文件来安装插件或主题而无需下载到本地。 [...]

  16. [...] This plugin extends the plugin update notification established on the basis of WordPress 2.3, using an “update automatically” Link Update Notification. If you click on the link, the new version of the plugin 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. [...]

  17. 48
    ryan says:

    tell me how to delete my themes, i cant find the delete button or tab :(

  18. 49
    White Shadow says:

    @ryan – The “Delete” links should appear on the Themes page, in the top-right corner of each theme screenshot. The placement is slightly off in WP 2.7, but they should still be there.

  19. 50
    ryan says:

    i find it, thanks

  20. 51
    ryan says:

    I find the delete link when accessing my dashboard with opera mini, but there is no delete link if using desktop browser,, this should be fixed

  21. 52
    White Shadow says:

    @ryan – I presume you are using a different browser on your desktop? The links work in my Opera 9.62.

  22. I guess the only problem I have is when I click the 2.7.1 is available! Please Upgrade Now and when I click I get “You do not have sufficient permissions to update plugins for this blog” I made sure my admin thingy wasn’t fitzed. Tried both of my machines.

    Worked great on 2 other updates. SO not sure if anything else is not working till it lets me do the UG.

    Thanks for your help.

  23. 54
    White Shadow says:

    That 2.7.1 thing is a WordPress core upgrade (not a plugin thing), so it’s not handled by this plugin. If you’re having a problem with the 2.7.1 upgrade… well, some other plugin might be causing it, like the “WordPress Automatic Upgrade” one.

  24. [...] OneClick Plugin Updater [...]

  25. 56
    Top says:

    This plugin working fine for from last two months but no when I install mini stat wordpress theme it unble to update stats new version, ho do i fix it?

  26. 57
    White Shadow says:

    Hmm? This plugin doesn’t have a feature for upgrading themes.

  27. 58
    rezaprof says:

    why when i click upgrade automatically or upgrade all, i got message error

    Not Found

    Sorry, but you are looking for something that isn’t here.

    how do i to fix it?
    im currently using WP 2.7.1

    Thanks for your help :)

  28. 59
    White Shadow says:

    Maybe the plugin isn’t installed correctly. One common mistake is putting the .php files directly into the “plugins” directory. They need to be in their own sub-directory, like “/wp-content/plugins/one-click-updater/”.

  29. [...] OneClick Plugin Updater OneClick is a Wordpress Plugin+Firefox Extension combo which will change the way you look at [...]

  30. [...] 2、OneClick Plugin Updater OneClick 是一个WordPress Plugin + Firefox Extension 的组合,能让我们一键快速上传安装插件或者模板,除了可从硬盘的ZIP压缩文件安装任何插件或主题外,还能从任一网址下载ZIP压缩文件来安装插件或主题而无需下载到本地。 [...]

Pages: « 1 2 [3] Show All

Leave a Reply