李逍遥A 发表于 2024-2-27 12:53:07

【已解答】安全栏目出现错误


李逍遥A 发表于 2024-2-27 14:21:05

出错了,面板运行时发生错误!
TypeError: 'str' object does not support item assignment
REQUEST_DATE: 2024-02-27 14:20:25
VERSION: CentOS7.9.2009 x86_64(Py3.7.9)-   8.0.5
REMOTE_ADDR: 124.152.84.244
REQUEST_URI: POST /safe/firewall/get_rules_list?
REQUEST_FORM: {'data': '{"p":1,"limit":20,"query":""}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.160 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2262, 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 288, in get_rules_list
    res_data['status'] = -1
TypeError: 'str' object does not support item assignment

阿珂 发表于 2024-2-27 15:09:43

mv /www/server/panel/data/db/firewall.db /www/server/panel/data/db/firewall.db_bak
bt 1
执行这两条命令,重新试下
页: [1]
查看完整版本: 【已解答】安全栏目出现错误