• Hi, WordPress has recently started asking me to enter ftp credentials when updating/installing plugins. But whatever I try, I always get the error

    Unable to locate WordPress content directory (wp-content).

    I’m using the site owner’s ftp credentials, tried ftp and ftps, but all to no avail. After some googling, I added this to wp_config (names changed to protect the guilty):

    define( 'FTP_USER', 'nottherealusername' );
    define( 'FTP_PASS', 'nottherealpasswordeither' );
    define( 'FTP_HOST', 'ftp.hughtempleton.co.uk' );
    define('FS_METHOD', 'ftpext');
    define('FTP_SSL', true);

    But still get the same error. It’s a pretty vanilla install of WP 5.8.2, wp-content is at /public_html/wp-content, it has 755 permissions. What else can I try?

Viewing 2 replies - 1 through 2 (of 2 total)
  • lisa

    (@contentiskey)

    *it seems unusual to have “WordPress asking for ftp credentials to update/install plugins”.

    *suggestion: if there is a reason to access your wp-content folder — access directly via webhosting cPanel file manager or SFTP client like FileZilla.

    Thread Starter Chris

    (@chunt)

    I can access the site normally with an ftp client, and WordPress seems to connect ok too – if I change the setup to use the wrong password, I get a different error. It just can’t do anything once it’s connected.

    Here’s what the dialog looks like: https://imgur.com/a/or0Cnqz

    • This reply was modified 2 years, 11 months ago by Chris.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to locate WordPress content directory (wp-content) when updating plugins’ is closed to new replies.