出错了,面板运行时发生错误!
AttributeError: 'str' object has no attribute 'items'
REQUEST_DATE: 2023-12-14 12:54:58
PAN_VERSION: 8.0.4
OS_VERSION: CentOS 7.8.2003 x86_64(Py3.7.9)
REMOTE_ADDR: 113.218.178.170
REQUEST_URI: POST /safe/firewall/get_diff_panel_firewall_rules?
REQUEST_FORM: {}
USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
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 "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 2864, in get_diff_panel_firewall_rules
panel_firewall_rules = self.get_panel_firewall_rules()
File "/www/server/panel/class/safeModel/firewallModel.py", line 2877, in get_panel_firewall_rules
unique_set = set(tuple(sorted(item.items())) for item in all_ports)
File "/www/server/panel/class/safeModel/firewallModel.py", line 2877, in
unique_set = set(tuple(sorted(item.items())) for item in all_ports)
AttributeError: 'str' object has no attribute 'items' 也是类似错误,点击安全后,面板报错,修复后还是这个问题 |