-
Incident report
-
Resolution: Fixed
-
Major
-
1.8.3rc2
-
None
-
zabbix-1.8.3-alt0.rc1.svn.13556.1 (see http://git.altlinux.org/people/solo/packages/?p=zabbix.git;a=commit;h=b306c6bfc8d80d9c48996368f1a247ffc97eb7d0), ALT Linux Sisyphus
en:
I watch a message like "Undefined variable: config [...]" on many forms:
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/usergrps.php:383]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/media_types.php:242]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/auditlogs.php:235]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/auditlogs.php:247]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hostgroups.php:362]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hostgroups.php:388]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/templates.php:805]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hosts.php:701]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/maintenance.php:629]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/actionconf.php:1332]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/screenconf.php:224]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/sysmaps.php:277]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hostprofiles.php:93]
Common diagnosis: use $config[] without pre-filling function select_config().
List of files where this problem may be present:
$ grep -c 'select_config(' `fgrep -R '$config[' frontends/php | sed -nr '/frontends\/php\//s@(^frontends/php/[^:]):.$@\1@p' | uniq` | sed -nr '/:0$/s/([^:]):.$/\1/p'
frontends/php/hostprofiles.php
frontends/php/templates.php
frontends/php/history.php
frontends/php/actionconf.php
frontends/php/proxies.php
frontends/php/items.php
frontends/php/triggers.php
frontends/php/applications.php
frontends/php/media_types.php
frontends/php/maintenance.php
frontends/php/usergrps.php
frontends/php/auditacts.php
frontends/php/screenconf.php
frontends/php/auditlogs.php
frontends/php/hostgroups.php
frontends/php/graphs.php
frontends/php/sysmaps.php
frontends/php/hosts.php
ru:
???????? ????????? ???? Undefined variable: config[...] ?? ?????? ??????:
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/usergrps.php:383]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/media_types.php:242]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/auditlogs.php:235]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/auditlogs.php:247]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hostgroups.php:362]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hostgroups.php:388]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/templates.php:805]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hosts.php:701]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/maintenance.php:629]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/actionconf.php:1332]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/screenconf.php:224]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/sysmaps.php:277]
- Undefined variable: config[/var/www/webapps/zabbix/frontends/php/hostprofiles.php:93]
????? ???????: ???????????? $config[] ??? ??? ???????????????? ?????????? ???????? select_config().
?????? ?????? ??? ?????? ???????? ????? ??????????????:
$ grep -c 'select_config(' `fgrep -R '$config[' frontends/php | sed -nr '/frontends\/php\//s@(^frontends/php/[^:]):.$@\1@p' | uniq` | sed -nr '/:0$/s/([^:]):.$/\1/p'
frontends/php/hostprofiles.php
frontends/php/templates.php
frontends/php/history.php
frontends/php/actionconf.php
frontends/php/proxies.php
frontends/php/items.php
frontends/php/triggers.php
frontends/php/applications.php
frontends/php/media_types.php
frontends/php/maintenance.php
frontends/php/usergrps.php
frontends/php/auditacts.php
frontends/php/screenconf.php
frontends/php/auditlogs.php
frontends/php/hostgroups.php
frontends/php/graphs.php
frontends/php/sysmaps.php
frontends/php/hosts.php