An error occurred while the panel was running!
AttributeError: 'str' object has no attribute 'insert'
REQUEST_DATE: 2024-01-08 21:55:36
PAN_VERSION: 6.8.33
OS_VERSION: Ubuntu 20.04.4 LTS x86_64(Py3.7.9)
REMOTE_ADDR: 45.231.141.123
REQUEST_URI: POST /site?action=get_site_types
REQUEST_FORM: {}
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
Traceback (most recent call last):
File "/www/server/panel/BTPanel/init.py", line 1814, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/init.py", line 1766, in run
result = getattr(toObject,get.action)(get)
File "class/panelSite.py", line 5317, in get_site_types
data.insert(0, {"id": 0, "name": public.get_msg_gettext('Default category')})
AttributeError: 'str' object has no attribute 'insert'