February 25, 2015
In version 4.1 I recently encountered an update (version and plugin) error where the installer was unable to locate the wp-content directory to complete the update.
Adding these lines of code to wp-config.php (completing the necessary information to match your credentials) bypassed the issue.
define( 'FTP_USER', 'username' ); define( 'FTP_PASS', 'password' ); define( 'FTP_HOST', 'ftp.example.org:21' );
Sourced here.