本帖最后由 清少 于 2024-1-2 18:25 编辑
为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:PAN_VERSION: 8.0.4 系统版本:Ubuntu 22.04.3 LTS x86_64(Py3.7.8) 问题描述:打开 安全-系统防火墙 提示错误,无法显示防火墙信息:出错了,面板运行时发生错误! TypeError: string indices must be integers 相关截图(日志、错误):
REQUEST_DATE: 2023-12-31 23:21:22
PAN_VERSION: 8.0.4
OS_VERSION: Ubuntu 22.04.3 LTS x86_64(Py3.7.8)
REMOTE_ADDR: 119.123.206.212
REQUEST_URI: POST /safe/firewall/get_rules_list?
REQUEST_FORM: {'data': '{"limit":20,"p":1,"query":""}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2106, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2053, in run
result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/panelSafeController.py", line 75, in model
result = PluginLoader.module_run(module_name,def_name,pdata)
File "/www/server/panel/class/safeModel/firewallModel.py", line 256, in get_rules_list
self.get_ufw_list()
File "/www/server/panel/class/safeModel/firewallModel.py", line 2301, in get_ufw_list
port = dt['port']
TypeError: string indices must be integers
|
|