WordPress-Bug: Unable To Locate WordPress Content Directory (wp-content)

During a migration of my WordPress installation to a new domain I came across the following error while installing a new plugin:

Unable To Locate WordPress Content Directory (wp-content)

I found a solution in sprain blog:

Ad the following code snippet to “wp-config.php”:

/** Override default file system method*/
if(is_admin()) {
   add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
   define( 'FS_CHMOD_DIR', 0751 );
}

After that everything worked like a charm.
I used WordPress 3.3 on that.

This page is also available in: German

Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>