Quantcast
Channel: updates – Digging Into WordPress
Viewing all articles
Browse latest Browse all 8

Getting WordPress Background Updates to Work

$
0
0

The new background updates feature in WordPress 3.7 is great for security and productivity, but it can be tricky getting it to work. This post explains how the same technique posted here also worked for enabling background updates.

After upgrading to WordPress 3.7, I was excited to try out the new background updates feature. But it didn't work out of the box. Instead, a message displayed with something like:

This site is not able to apply these updates automatically. But we’ll email you when there is a new security release.

Informative but not a lot of help in the "why isn't it working" department. Thankfully it didn't take long before a plugin was available to help further diagnose the background update failure. The first time running the plugin provided these results:

WordPress Background Update Tester Plugin Fail

Automatic background updates require a number of conditions to be met.
Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:

PASS: Your WordPress install can communicate with WordPress.org securely.
PASS: No version control systems were detected.
FAIL: Your installation of WordPress prompts for FTP credentials to perform updates. (Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)
This site is not able to apply these updates automatically. But we’ll email when there is a new security release.

If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.

Rather than change anything on the server, I tried adding a few upgrade constants to the site's wp-config file:

define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'localhost');

And it worked! After adding that snippet the results returned this:

WordPress Background Update Tester Plugin Pass Results

I'm looking forward to some auto-update action. Leave a comment if there are other tips or tricks that you have for getting auto-updates to work on your site. Cheers!



Viewing all articles
Browse latest Browse all 8

Trending Articles