If you’re running WordPress on a Media Temple (dv) server and you’re using this wp-config fix from digwp.com and you’re getting an error when trying to update WordPress to 3.3+, I have a solution.
Let’s recap the scenario:
- You’re on a server such as a Media Temple (dv) that requires a variation of the following wp-config.php hack:
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/var/www/vhosts/jacobdubail.com/httpdocs/');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'host');
define('FTP_SSL', false); - When you try to automatically update WordPress from the admin, you get a variation of the following error:
Downloading update from http://wordpress.org/wordpress-3.3-no-content.zip…
Unpacking the core update
Could not copy files
Installation Failed - You’ve searched google for an hour, screwed up your server security by
chmoding a bunch of directories to777, and you’ve deleted theupgradefolder half a dozen times.
To fix the upgrade issue, all you need to do is change the FTP_BASE definition from:
define('FTP_BASE', '/var/www/vhosts/jacobdubail.com/httpdocs/');
to:
define('FTP_BASE', '/httpdocs/');
It worked for me and I hope it works for you, too.
I’m assuming the problem is that the FTP_USER doesn’t have write access to the var directory so fails. But, if any of you knows the reason, I’d love to read it in the comments.