I encountered a Python traceback error when trying to change the phpMyAdmin port from the panel GUI settings.
Environment:
- OS: Debian GNU/Linux 12 (bookworm) x86_64
- Python Version: 3.12.3
- aaPanel Version: 8.0.6
Action Triggered:
POST /ajax?action=setPHPMyAdmin
REQUEST_FORM: {'port': '888'}
Error Log:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 3520, in publicObject
return run_exec().run(toObject, defs, get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/BTPanel/__init__.py", line 3466, in run
result = getattr(toObject, get.action)(get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/ajax.py", line 1192, in setPHPMyAdmin
oldPort = re.search(rep,conf).groups()[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'groups'
Cause:
It seems ajax.py fails to match the regex pattern (re.search(rep, conf)) when parsing the current phpMyAdmin configuration file, resulting in None and throwing AttributeError.
Could you please assist with a fix or update for this issue?
Thank you!
Attch:
