-
Defect (Security)
-
Resolution: Commercial support required
-
Trivial
-
None
-
6.4.1
-
None
-
None
hi,
i have issue with my zabbix web interface .
i have 2 server for zabbix verison 6.4.1:
1. for the zabbix server (useing apache2)
2. for zabbix database.
i changed my ip address for both servers.
of course i give permission for the new ip zabbix server to mysql database.
After the change I made sure I was able to enter zabbix web whit the new ip address
and seeing that everything is fine in the logs i deleted the permisions of the old user@old ip addressee from mysql.
and after that i cant login to the zabbix web with any user.
i get http error 500
apache2 eror log:
[php:warn] [pid 58449] [client 10.10.10.6:51442] PHP Warning: Undefined array key 0 in /usr/share/zabbix/include/classes/api/services/CUser.php on line 1842, referer: https://zabbix/index.php
[Sun Apr 30 12:47:49.806527 2023] [php:error] [pid 58449] [client 10.10.10.6:51442] PHP Fatal error: Uncaught TypeError: CUser::getUserType(): Return value must be of type int, null returned in /usr/share/zabbix/include/classes/api/services/CUser.php:1842\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/services/CUser.php(2065): CUser->getUserType()\n#1 /usr/share/zabbix/include/classes/api/services/CUser.php(1473): CUser->addExtraFields()\n#2 /usr/share/zabbix/include/classes/api/clients/CLocalApiClient.php(121): CUser->login()\n#3 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(97): CLocalApiClient->callMethod()\n#4 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(94): CFrontendApiWrapper->callClientMethod()\n#5 /usr/share/zabbix/include/classes/api/wrappers/CFrontendApiWrapper.php(63): CApiWrapper->callMethod()\n#6 /usr/share/zabbix/include/classes/api/wrappers/CApiWrapper.php(82): CFrontendApiWrapper->callMethod()\n#7 /usr/share/zabbix/include/classes/user/CWebUser.php(51): CApiWrapper->__call()\n#8 /usr/share/zabbix/index.php(68): CWebUser::login()\n#9
\n thrown in /usr/share/zabbix/include/classes/api/services/CUser.php on line 1842, referer: https://zabbix/index.php
how do i resolve the issue?