How To Fix WordPress Plugin Install Errors

Published Date Author: , Posted December 14th, 2010 at 7:34:34am

If you are trying to install a WordPress plugin and get this error:

“Unable To Locate WordPress Content Directory (wp-content)”

Add this code at the bottom of {wp_install_dir}/wp-config.php:

if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}

As an added benefit, you will no longer be prompted for an FTP login and password!!!

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.