Normally you do not have to enter any FTP access data if you want to install updates. Either the directory in your hosting is not writable or you have deliberately made a setting for this in wp-config.php.
Have a look under Tools > Site Health to see if anything is reported there.
Also take a look at wp-config.php
to see if there is an entry like define('FS_METHOD','xy');
.
Your actual question could probably be answered with a wrong path, but as I said, you don’t have to go down that path.
Hi there!
My first question on this is where is your site hosted? Asking because I know there is at least one host that often displays a message asking for FTP information because of the way the folder structure and permissions are set.
The other question I have is, since you have that FTP information, have you tried connecting to the site that way to see if you can update the plugins/themes by manually updating those?
Thank you for your response, I work in South Africa so I host through Afrihost, normal cPanel.
i did try update through File Zilla and that didnt work either
@threadi
Thank you for your response, so I’ve been working on the site without issue for several months, I upload blogs and videos 4/5 times a week and most recently uploaded on Monday, but since then I’ve had this issue.
I have three critical issues on my site, all of which are required updates. When I go to update I get this message: Update failed: unable to locate WordPress content directory
I think the issue is from my hosting side, I believe it may have to do with the permissions on their side, as like I said I’ve had no issues with the site for months until now
@threadi I also looked at my config file and didnt find the FS_method any where
If I try make a backup of my site I get this issue:
Fail [/home/(FTPS_Username)/public_html/wp-content/backups-dup-lite]
Fail [/home/FTP_Username/public_html/wp-content/backups-dup-lite/tmp]
Warn [/home/FTP_Username/public_html]
If the root WordPress path is not writable by PHP on some systems this can cause issues.
If Duplicator does not have enough permissions then you will need to manually create the paths above.
Talk to your hoster’s support team about this. Obviously something is set incorrectly there.
@threadi
You were correct, it was a simple fix from something on their end