Title: Theme / Plugin Install
Last modified: August 20, 2016

---

# Theme / Plugin Install

 *  [liondedan](https://wordpress.org/support/users/liondedan/)
 * (@liondedan)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/theme-plugin-install/)
 * Hello,
 * I’ve having an issue whilst trying to install a new theme / plugin. When ever
   I click to install it ends up taking a while to load then produces the following
   error message:
    `Unable to locate WordPress Content directory (wp-content).`
 * Any ideas? I’ve had a look around and changing the permissions of the folders
   has not changed anything.
 * Thank you,
 * Dan 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [liondedan](https://wordpress.org/support/users/liondedan/)
 * (@liondedan)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/theme-plugin-install/#post-3361015)
 * Any help would be greatly appreciated
 *  [fr2632](https://wordpress.org/support/users/fr2632/)
 * (@fr2632)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/theme-plugin-install/#post-3361100)
 * I have exactly the same issue!! I tried to add the following to the wp-config.
   php file:
 *     ```
       if(is_admin()) {
               add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
               define( 'FS_CHMOD_DIR', 0751 );
       }
       ```
   
 * But it doesnt work!! I presume that there is something to do with FTP configuration?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/theme-plugin-install/#post-3361101)
 * [@fr2632](https://wordpress.org/support/users/fr2632/) – if you need help, please
   [start your own thread](http://wordpress.org/support/forum/how-to-and-troubleshooting#postform)—
   it’s rude to hijack someone else’s thread, and it prevents the forum being able
   to track issues by topic.
 *  [fr2632](https://wordpress.org/support/users/fr2632/)
 * (@fr2632)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/theme-plugin-install/#post-3361102)
 * I fix it!
 * I added the following line:
 *     ```
       if(is_admin()) {
               add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
               define( 'FS_CHMOD_DIR', 0751 );
       }
       ```
   
 * Into `wp-settings.php` and not into `wp-config.php`
 * Maybe will be useful for liondedan 😀

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Theme / Plugin Install’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [fr2632](https://wordpress.org/support/users/fr2632/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/theme-plugin-install/#post-3361102)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
