Moderator
t-p
(@t-p)
Wordpress will prompt you for FTP credentials if it does not have permission to write the files it needs to.
I understand but before the upgrade all sites were fine. I am wondering why this issue surface after the upgrade. Any solution to fix the issue? Thanks,
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
How did you upgrade? Did you just click the upgrade button in your dashboard?
The only time that WordPress makes that FTP credentials ask is if the directory or the files is no longer writeable. Just doing an upgrade shouldn’t cause that.
Can you check the file and directory permissions as well as the file and directory ownership?
https://ww.wp.xz.cn/support/article/hardening-wordpress/#file-permissions
Hi,
I understand why you face this.
In some cases, you are not able to update/upgrade your WordPress and plugins to a newer version without providing your FTP connection information.
The quick solution is, add this code on the wp-config.php
define('FS_METHOD','direct');
then try again to update 🙂

Yes, I just clicked UPGRADE button under WP dashboard. Agree, just upgrade / updating WP should not cause this issue as I have been doing this on regular basis. If it is related to single site, I might think something else but 3 sites are having the same issue then it is certainly related to WP 5.3 upgrade.
I have added “define(‘FS_METHOD’,’direct’);” entry to one of my website’s wp-config.php file and have changed permission 755 (folders) and 644(files) to WP installation directory. It fixed the FTP credentials error but now showing “An error occurred while updating Smush: Could not create directory.” error.
-
This reply was modified 6 years, 6 months ago by
The Choice.
Do you have the “upgrade” directory?

Don’t forget to read this https://ww.wp.xz.cn/support/article/changing-file-permissions/
If you can install plugins, Health Check plugin is very useful in troubleshooting.
Hi,
Today I face this issue on my host.
Just change the PHP version 7.2 to 7.3 and solved this issue.