出错了,面板运行时发生错误!
AttributeError: 'str' object has no attribute 'items'
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'
很抱歉,面板运行时意外发生错误,请尝试按以下顺序尝试解除此错误:
修复方案一:在[首页]右上角点击修复面板,并退出面板重新登录。
修复方案二:如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助
|