齐欣电脑 发表于 2025-9-27 17:06:24

【已解答】点防盗链提示面板错误

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:1.7
系统版本
问题描述:点击网站1.sxjfw.com防盗链就报错:出错了,面板运行时发生错误!AttributeError: 'NoneType' object has no attribute 'groups'


相关截图(日志、错误):REQUEST_DATE: 2025-09-27 17:02:24 PAN_VERSION: 7.9.0OS_VERSION: CentOS7.5.1804 x86_64(Py3.7.9) REMOTE_ADDR: 113.248.32.221 REQUEST_URI: POST /site?action=GetSecurityREQUEST_FORM: {'id': '13', 'name': '1.sxjfw.com'}USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36Traceback (most recent call last):File "class/panelSite.py", line 4830, in GetSecurity    data['domains'] = ','.join(list(set(re.search("valid_referers\s+none\s+blocked\s+(.+);\n",tmp).groups().split())))AttributeError: 'NoneType' object has no attribute 'groups'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 1756, in publicObject    return run_exec().run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 1704, in run    result = getattr(toObject,get.action)(get)File "class/panelSite.py", line 4832, in GetSecurity    data['domains'] = ','.join(list(set(re.search("valid_referers\s+(.+);\n",tmp).groups().split())))AttributeError: 'NoneType' object has no attribute 'groups'

阿珂 发表于 2025-9-28 11:16:17

面板版本太旧了
做好服务器快照
将面板更新至最新版,重试
页: [1]
查看完整版本: 【已解答】点防盗链提示面板错误