在网站的错误日志中可以看到如反馈:
2021/09/25 11:45:48 [error] 20129#0: *47 failed to run body_filter_by_lua*: /www/server/btwaf/body.lua:34: attempt to use a closed file
stack traceback:
[C]: in function 'read'
/www/server/btwaf/body.lua:34: in function 'read_file_body'
/www/server/btwaf/body.lua:60: in function 'get_server_name'
/www/server/btwaf/body.lua:200: in function 'body_btwaf'
/www/server/btwaf/body.lua:272: in function </www/server/btwaf/body.lua:1> while sending to client, client: 117.158.252.2, server: 【域名】, request: "POST /wp-admin/admin-ajax.php HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-72.sock:", host: "【域名】", referrer: "https://【域名】/wp-admin/upload.php"
可以看出是宝塔防火墙的原因,想起来以前开启过宝塔防火墙,后来到期就没续费了,也没管,现在试着卸载宝塔防火墙,在宝塔面板中,找到应用,找到宝塔防火墙,卸载[Nginx防火墙-8.9.5]。
卸载成功后
再次添加媒体,上传图片,发现已经可以了。搞定!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。