Hello,
Due to a problem we experienced:
We uninstalled some of the applications we installed in AAPANELpro. These are:
- Website Tamper-proof
-Apache WAF
- PHP code security
- System hardening
-Memcached
- Fail2ban Manager
- Log cleanup 1.3
We first installed and then uninstalled many applications such as.
Now I can't enable hotlink protection for the site. We repaired the panel. We logged out as a user and logged in again, but it didn't work.
The error we get is below :
Traceback (most recent call last):
File "/www/server/panel/class_v2/panel_site_v2.py", line 7276, in GetSecurity
data['domains'] = ','.join(list(set(re.search(r"valid_referers\s+none\s+blocked\s+(.+);\n", tmp).groups()[0].split())))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/re/init.py", line 177, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 're.Match'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/init.py", line 2729, in publicObject
return run_exec().run(toObject, defs, get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/BTPanel/init.py", line 2676, in run
result = getattr(toObject, get.action)(get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class_v2/panel_site_v2.py", line 7278, in GetSecurity
data['domains'] = ','.join(list(set(re.search(r"valid_referers\s+(.+);\n", tmp).groups()[0].split())))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/re/init.py", line 177, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 're.Match'
We need urgent help. Is it better for us to reinstall the security applications or to format the server and install it from scratch? We use AAPANEL Pro.