• 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

    (@liondedan)

    Any help would be greatly appreciated

    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?

    @fr2632 – if you need help, please start your own thread — it’s rude to hijack someone else’s thread, and it prevents the forum being able to track issues by topic.

    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.