{"action":"created","issue":{"url":"https://api.github.com/repos/centreon/centreon/issues/3918","labels_url":"https://api.github.com/repos/centreon/centreon/issues/3918/labels{/name}","comments_url":"https://api.github.com/repos/centreon/centreon/issues/3918/comments","events_url":"https://api.github.com/repos/centreon/centreon/issues/3918/events","html_url":"https://github.com/centreon/centreon/issues/3918","id":120135800,"number":3918,"title":"[2.7.0-rc1] Error with graph widgets","user":{"login":"qdelance","id":2544611,"avatar_url":"https://avatars.githubusercontent.com/u/2544611?v=3","gravatar_id":"","url":"https://api.github.com/users/qdelance","html_url":"https://github.com/qdelance","followers_url":"https://api.github.com/users/qdelance/followers","following_url":"https://api.github.com/users/qdelance/following{/other_user}","gists_url":"https://api.github.com/users/qdelance/gists{/gist_id}","starred_url":"https://api.github.com/users/qdelance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qdelance/subscriptions","organizations_url":"https://api.github.com/users/qdelance/orgs","repos_url":"https://api.github.com/users/qdelance/repos","events_url":"https://api.github.com/users/qdelance/events{/privacy}","received_events_url":"https://api.github.com/users/qdelance/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T10:14:11Z","updated_at":"2015-12-03T22:34:55Z","closed_at":null,"body":"Image is not generated with graph widget (centreon-widget-graph-monitoring-1.3.0-1.el6.noarch), this error in logs : \r\n\r\n[Thu Dec 03 11:02:16 2015] [error] [client 192.168.56.1] PHP Fatal error:  Call to undefined method DB_Error::fetchRow() in /usr/share/centreon/www/class/centreonGMT.class.php on line 220, referer: http://192.168.56.252/centreon/widgets/graph-monitoring/index.php?widgetId=3\r\n\r\nThis seems to fix it (no time to diff against Git): \r\n\r\n    function getMyGTMFromUser($userId, $DB = null)\r\n    {\r\n        global $pearDB;\r\n\r\n        if (!isset($pearDB) && isset($DB)) {\r\n            $pearDB = $DB;\r\n        }\r\n\r\n        $DBRESULT = $pearDB->query(\"SELECT `contact_location` FROM `contact` \" .\r\n                \"WHERE `contact`.`contact_id` = \" . $userId .\r\n                \" LIMIT 1\");\r\n        if (PEAR::isError($DBRESULT)) {\r\n            $this->myGMT = 0;\r\n        } else {\r\n        $info = $DBRESULT->fetchRow();\r\n        $DBRESULT->free();\r\n        $this->myGMT = $info[\"contact_location\"];\r\n}\r\n    }\r\n\r\nWith this, graphs images are generated."},"comment":{"url":"https://api.github.com/repos/centreon/centreon/issues/comments/161810117","html_url":"https://github.com/centreon/centreon/issues/3918#issuecomment-161810117","issue_url":"https://api.github.com/repos/centreon/centreon/issues/3918","id":161810117,"user":{"login":"julienmathis","id":2294502,"avatar_url":"https://avatars.githubusercontent.com/u/2294502?v=3","gravatar_id":"","url":"https://api.github.com/users/julienmathis","html_url":"https://github.com/julienmathis","followers_url":"https://api.github.com/users/julienmathis/followers","following_url":"https://api.github.com/users/julienmathis/following{/other_user}","gists_url":"https://api.github.com/users/julienmathis/gists{/gist_id}","starred_url":"https://api.github.com/users/julienmathis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienmathis/subscriptions","organizations_url":"https://api.github.com/users/julienmathis/orgs","repos_url":"https://api.github.com/users/julienmathis/repos","events_url":"https://api.github.com/users/julienmathis/events{/privacy}","received_events_url":"https://api.github.com/users/julienmathis/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T22:34:54Z","updated_at":"2015-12-03T22:34:54Z","body":"Hello, \r\n\r\nDid you use the last version of the widget graph ?\r\n\r\nThanks\r\n"}}