I got this error message when I was installing a plugin: "Unable to locate WordPress Content directory (wp-content)".
I found a solution here: http://wordpress.org/support/topic/cannot-find-content-directory-wp-content
They suggested adding the following code to the wp-config.php file:
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}
This solution worked for me. My questions are:
a) What does this code do?
b) If I run into the same error on the production server is it safe to use this code?
Thank you.
-Laxmidi