0

I need to have auto updates on my Wordpress so I've followed the codex here. My need is to have all updates like from 4.2.2 to 4.2.3 and to 4.3 etc.. No FTP credentials are needed on my server. My problem is that my WP has not been updated. Have I done something wrong? How often does my Wordpress check for updates?

This is my wp-config.php, I've just added define('WP_AUTO_UPDATE_CORE', true); to the original file.

define('DB_NAME', 'xXyYzZtT');
define('DB_USER', 'xXyYzZtT');
define('DB_PASSWORD', 'xXyYzZtT');
define('DB_HOST', 'xXyYzZtT');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

$table_prefix  = 'wp_';

define('WPLANG', 'it_IT');
define('WP_DEBUG', false);

/* PHP Memory */
define('WP_MEMORY_LIMIT', '64M');
define('WP_MAX_MEMORY_LIMIT', '256M');

/* WordPress Cache */
define('WP_CACHE', true);

/* Compression */
define('COMPRESS_CSS', true);
define('COMPRESS_SCRIPTS', true);
define('CONCATENATE_SCRIPTS', true);
define('ENFORCE_GZIP', true);

/* Updates */
define('WP_AUTO_UPDATE_CORE', true);
define('FS_METHOD', 'direct');

if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');

require_once(ABSPATH . 'wp-settings.php');

PS: define('FS_METHOD', 'direct'); is not significant since my server doesn't need FTP credentials.

1 Answer 1

0

Have you tried using the Wordpress admin panel to configure your auto-updates? You may have better luck there. It should be found under your "Dashboard > Updates". If you do not see it there, there is also the option of a plugin to help manage it for you:

12
  • 1
    I don't want to follow this way, the more plugins you use the more your site becomes vulnerable Aug 24, 2015 at 14:22
  • Understandably, but I mention it just in the event you're unable to get your WP-Config to honor the update. But regarding the WP-CONFIG file the only thing you need to add to the file is: "define('WP_AUTO_UPDATE_CORE', true);" which I see you've inserted. So I don't think you've done it wrong. The next question I have is when did you set this up? WP background updates are only installed at designated times. For instance, mine are setup at 7am/7pm. Have you had more than 24 hours for this to be processed?
    – Huginn
    Aug 24, 2015 at 14:37
  • If it has gone longer than 24 hours, then we have to confirm a few things. 1. Does your Wordpress install communicate with WordPress.org securely. 2. Your system has no version control in place preventing wordpress' wp-config autoupdate call. 3. All your wordpress files are writable for update.
    – Huginn
    Aug 24, 2015 at 14:39
  • Thats the point, you are right. I've installed a plugin by wordpress that checks if your installation can communicates with wordpress.org and if the file are writable, and all were fine (so I uninstalled it). I will re-check in a complete cycle of 24 hours. How can I know when my background updates are setup? Aug 24, 2015 at 22:35
  • Usually, you will be sent an email alerting you that your site has updated on an automatic update.
    – Huginn
    Aug 25, 2015 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.