为了能快速了解并处理您的问题,请提供以下基础信息: 系统版本:CentOS Stream 8 x86_64(Py3.7.9) 问题描述:全新安装的宝塔机器,当时没有查看是否可以打开PHP“站点防护”,然后我按照系统的安全检测里的修复方法使用了yum install kernel升级了内核,准备看一下PHP的“站点防护”,发现报错:AttributeError: 'NoneType' object has no attribute 'security_notice_main' 相关截图(日志、错误):报错详情:REQUEST_DATE: 2023-12-23 10:57:11 PAN_VERSION: 8.0.4 OS_VERSION: CentOS Stream 8 x86_64(Py3.7.9) REMOTE_ADDR: 171.93.221.44 REQUEST_URI: POST /plugin%3Faction%3Da%26name%3Dsecurity_notice%26s%3Dget_status REQUEST_FORM: {} USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.2210.64 Traceback (most recent call last): File "class/panelPlugin.py", line 3196, in a p = Plugin(get.name) File "pluginAuth.py", line 64, in pluginAuth.Plugin.__init__ File "pluginAuth.py", line 295, in pluginAuth.Plugin.__compile AttributeError: 'NoneType' object has no attribute 'security_notice_main'
|
|