【WordPress】Warning: ftp_nlist() expects parameter 1 to be resource, null given in

permissions - ftp_nlist() and ftp_pwd() warnings - WordPress Development Stack Exchange

解决方案
只需添加define('FS_METHOD', 'direct');

只要采取一点预防措施!这需要在之前添加require_once( ABSPATH . 'wp-settings.php' );。为什么?再说一遍,不知道。但是,这是对多种配置的要求,正如您可以通过编辑 wp-config.php 文档页面看到的那样

猜你喜欢

转载自blog.csdn.net/weixin_43343144/article/details/133019264