[ZBX-12546] maps don't work in dashboard without php-json Created: 2017 Aug 22  Updated: 2024 Apr 10  Resolved: 2017 Sep 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.4.0rc2
Fix Version/s: 3.4.2rc1, 4.0.0alpha1, 4.0 (plan)

Type: Problem report Priority: Critical
Reporter: richlv Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: dashboard, maps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

php 5.4.20
trunk r71462


Team: Team B
Sprint: Sprint 15
Story Points: 0.5

 Description   

if a map is added to the dashboard, it does not work :

PHP Fatal error: Call to undefined function json_decode() in /srv/www/htdocs/zabbix/app/controllers/CControllerWidgetSysmapView.php on line 79, referer: http://192.168.56.10/zabbix/zabbix.php?action=dashboard.view&dashboardid=2

php-json is not listed as a requirement at https://www.zabbix.com/documentation/3.4/manual/installation/requirements#software , and frontend dependency check does not verify for it either.

this dependency should be either removed, or documented and verified in the dependency check



 Comments   
Comment by Valdis Murzins [ 2017 Aug 22 ]

richlv, as per PHP documentation, function json_decode() should be available in PHP from version 5.2.0. As I see from this issue, you are using PHP 5.4.20, where it should be present. Do you have an idea, why you need additional library for this function to work?

Comment by richlv [ 2017 Aug 22 ]

distributions tend to split them out in separate packages. zabbix already checks for quite a few core libs that have been split out by various distros.

Comment by Ivo Kurzemnieks [ 2017 Aug 22 ]

(1) No translation string changes.

vmurzins CLOSED

Comment by Ivo Kurzemnieks [ 2017 Aug 22 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-12546

Comment by Valdis Murzins [ 2017 Aug 23 ]

Code review successful.

Comment by Ivo Kurzemnieks [ 2017 Aug 31 ]

Fixed in:

  • pre-3.4.2rc1 r71969
  • pre-4.0.0alpha1 (trunk) r71970
Generated at Fri Apr 26 01:55:45 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.