当前位置:论坛首页 > Linux面板 > 求助

点防盗链提示面板错误

发表在 Linux面板昨天 17:06 [复制链接] 0 28

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:1.7

系统版本

  
问题描述:点击网站1.sxjfw.com防盗链就报错:
出错了,面板运行时发生错误!AttributeError: 'NoneType' object has no attribute 'groups'


  
相关截图(日志、错误):REQUEST_DATE: 2025-09-27 17:02:24
PAN_VERSION: 7.9.0  OS_VERSION: CentOS  7.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()[0].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()[0].split())))AttributeError: 'NoneType' object has no attribute 'groups'

使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表