[ZBX-24558] Undefined array key "english_united states.1252" in Reports -> System information Created: 2024 May 28  Updated: 2025 Jun 10

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.31rc1, 6.4.16rc1, 7.0.0rc1, 7.2.8rc1, 7.4.0rc2, 8.0.0alpha1
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Ivo Kurzemnieks Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: frontend, locale, undefinedindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10


Issue Links:
Causes
caused by ZBX-23478 Frontend setup process checks install... Closed
Team: Team B

 Description   

An error appears in Reports -> System information:

6.4 and 7.0 (master) branch:

Undefined array key "english_united states.1252" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerReportStatus->doAction() -> CSystemInfoHelper::getData() -> CFrontendSetup->checkRequirements() -> CFrontendSetup->checkSystemLocale() -> zbx_locale_variants() -> zbx_locale_variants_win() -> CConfigFile->{closure}() in include\locales.inc.php:211]

And similar in 6.0:

Undefined index: english_united kingdom.1252 [zabbix.php:22 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerReportStatus->doAction() -> CSystemInfoHelper::getData() -> CFrontendSetup->checkRequirements() -> CFrontendSetup->checkSystemLocale() -> zbx_locale_variants() -> zbx_locale_variants_win() -> CConfigFile->{closure}() in include\locales.inc.php:214]

If you run setup.php, you can see that it has System locale "English_United States.1252" installed and "OK" indicator is right next to it. Everything else also checks out "OK". So there shouldn't be any problem. Nothing was changed on the system. Nothing was uninstalled.
At some point function "zbx_locale_variants_win()" just gets 'English_United States.1252' instead of expected 'en_US'.

Such run-time errors shouldn't be displayed to user.

Caused by ZBX-23478


Generated at Thu Nov 06 20:40:55 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.