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 :
- If the plugin that needs to be updated is active, it is deactivated.
- The Plugin Updater retrieves the plugin’s page from WordPress.org and finds the download link.
- The new version is downloaded and extracted to the wp-content/plugins directory (this directory must be writable by the Updater plugin).
- 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)
Just to clarify, the “Add New” page is part of the WP core, not this plugin.
WordPress asks for your FTP credentials because it can’t directly create files in the ‘plugins’ directory (or at least it thinks so). You need to set the file permissions to allow PHP write access to that directory. Depending on your configuration, this might be 755 or 777.
If you can install plugins via the page created by this plugin (“Plugins -> Install a Plugin”) but the “Add New” page still asks you for your FTP info, it’s probably a bug in WordPress.
I have found an interesting discussion on
http://wordpress.org/support/topic/223144
regarding the checks made by wordpress.
I finally found what was the problem. WP is searching for the owner of the file, and I’m using it on a multiuser environment, so that’s why it wasn’t working.
Thank you! Without your help I wouldn’t have fixed it!
Regards
[…] One Click Plugin Updater (allows one click theme and plugin […]
This will make life a whole lot easier Janice…many thanks because I need to install about 100 blogs
I’m gonna refer to you from now on as Janice “makes life easy” Elts. Seriously,thanks for a very useful plugin
Thanks, though it really is “Janis” (a Latvian name) 😉
I can’t update Contact Form 7. Other plug-ins seem to update easily. This one won’t. I get this:
Can’t create file ‘contact-form-7/README.txt’ in ‘/home/hintysen/public_html/wp-content/plugins/’
The full installation log is below :
Plugin directory is ‘/home/hintysen/public_html/wp-content/plugins/’
Checking to see if /home/hintysen/public_html/wp-content/plugins/ is writable.
Okay.
Nonce verification passed.
About to upgrade 1 plugins.
Upgrading ‘contact-form-7/wp-contact-form-7.php’, download URL is ‘http://downloads.wordpress.org/plugin/contact-form-7.1.9.3.zip’.
The plugin that needs to be upgraded is active. Deactivating.
Downloading ‘http://downloads.wordpress.org/plugin/contact-form-7.1.9.3.zip’…
Downloaded 1242613 bytes.
Will save the new version archive (zip) to a temporary file ‘/home/hintysen/public_html/wp-content/plugins/one-click-plugin-updater/plg4c8030b73a4924b65347ec144cbce2e8.zip’.
About to extract ‘/home/hintysen/public_html/wp-content/plugins/one-click-plugin-updater/plg4c8030b73a4924b65347ec144cbce2e8.zip’.
Extracting files from /home/hintysen/public_html/wp-content/plugins/one-click-plugin-updater/plg4c8030b73a4924b65347ec144cbce2e8.zip…
So far, the type is set to ‘plugin’.
Need to load PclZip.
gzopen() found, will use PclZip.
Starting extraction to folder ‘/home/hintysen/public_html/wp-content/plugins/’.
Extracting contact-form-7/README.txt
Can’t create file contact-form-7/README.txt in /home/hintysen/public_html/wp-content/plugins/!
Main loop finished.
Check if the file/folder have a different owner or file permissions than the rest of the plugins. This can happen if the server configuration was changed since Contact Form 7 was first installed.
Also, the all-uppercase filename looks… suspicious. Is your server running Windows, or some flavour of Linux?
[…] OneClick Installer Plugin by Anirudh Sanjeev & Janis […]
[…] bórrelo y por último reinstálelo. Para las últimas dos operaciones resulta muy útil el plugin One Click Plugin Updater, pues permite el borrado y las instalaciones de plugins con un solo clic (además de que notifica […]
[…] One Click Plugin Updater Um dos mais úteis na minha opinião. Ele permite que plugins e temas sejam instalados pela própria interface administrativa do WordPress, não sendo necessário o processo manual. […]
my web host tells me OneClick Plugin Updater is a SECURITY RISK.
they say the file:
do_update.php
and the variable:
$download_url
could be used for a successful exploit.
I doubt it. The script in question checks whether the user is logged in and has the required security privileges before doing anything. It also requires a so-called “nonce” variable to be set, which makes cross-site attacks impossible. It should be safe.
[…] Single Click Plugin Updater WordPress Plugin makes installing and upgrading plugins easy. You still have to install this plug-in but after that, […]
I just wanted to comment. Your content was informative to me and thanks.
hi, I recently did a backup on my WPDB and when I restored it and turned on my plugins I started receiving this error when going to the plugin page:
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 652
Warning: Attempt to assign property of non-object in /wp-content/plugins/one-click-plugin-updater/oneclick-plugin-updater.php on line 668
any idea?
Looks like an option wasn’t properly initialized. Should be fixed now.
I decided to just remove and reinstall the plugin. It’s working fine again =)
Thanks for this plugin, works great.
[…] plugin one by one? Try One Click Plugin Updater that helps you to update all your SEO plugin for […]