Hi @sachi8220
The error usually occurs when the following code is missing from your wp-config.php file;
Try to add the code in wp-config.php:
define('FS_METHOD','direct');
Regards,
Adnan
Hi Adnan,
Thanks for replying! I already added this code at the end of the wp-config.php file. But still I am getting the same error.
If you still getting this error. Give write permissions to your WordPress directory in recursive as
NOTE. For security, revoke these permissions once you install a plugin.
Are you using MAMP or similar? Or default OSX Apache?
Hi,
Thanks I am using Xampp.
Thanks @jaycbrf,
Problem solved but I hope that this does not create any security issues. Thanks a lot.
I have tried everything above and I can’t find a solution. when I add define(‘FS_METHOD’,’direct’); Could not fully remove the plugin akismet/akismet.php. I get this error and nothing fixes the actual issue. Can you help me? This just started happening with Xampp and wordpress. I just updated Mac and I start getting this issue is so frustrating. I added permissions literally tried everything on the internet related to this issue and nothing fixes it.
-
This reply was modified 1 year, 2 months ago by
vschwart.
@adnanmoqsood
Thanks a lot your provided snippet resolved my problem .
define('FS_METHOD','direct');
Launch Terminal, (Applications/Utilities), and follow the command below:
sudo chown -R _www:_www /Users/myname/Sites/