Unable to locate WordPress Content directory (wp-content)

When you try to update/install a WordPress plugin you get the following error:

“Upgrade Plugin: Unable to locate WordPress Content directory (wp-content)”

Add the following code to the end of your wp-config.php file:
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}

Leave a Reply