TypeError: string indices must be integers, not 'str' at
Fixing error using Fix button and restarting doesn't help.
No problems with the network
ping google.com also works.
But the databases themselves works.
REQUEST_DATE: 2024-10-08 13:44:14
VERSION: CentOS 7.9.2009 x86_64(Py3.12.3) - 7.0.9
REMOTE_ADDR: 188.163.83.134
REQUEST_URI: POST /v2/database/mongodb/get_list?
REQUEST_FORM: {'data': '{"p":1,"limit":10,"search":"","table":"databases"}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2545, in publicObject
return run_exec().run(toObject, defs, get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/BTPanel/__init__.py", line 2491, in run
result = getattr(toObject, get.action)(get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class_v2/panelDatabaseControllerV2.py", line 103, in model
result = getattr(plugin_object,def_name)(pdata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class_v2/databaseModelV2/mongodbModel.py", line 148, in get_list
return public.return_message(0, 0, self.get_base_list(args, sql_type = 'mongodb'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class_v2/databaseModelV2/base.py", line 67, in get_base_list
sdata['backup_count'] = public.M('backup').where("pid=? AND type=1", (sdata['id'])).count()
~~~~~^^^^^^
TypeError: string indices must be integers, not 'str'