Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2469

PHP Fatal error: Cannot break/continue 1 level in /srv/src/zabbix/1.8/frontends/php/api/classes/class.cscreen.php on line 693

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.3
    • None
    • API (A)
    • None

      I tried to use the python API mapping to delete a screen, the trace :

      20: url: http://zabbix.krg/zabbix/api_jsonrpc.php
      10: Trying to login with 'api':'md5(8a5da52ed126447d359e70c05721a8aa)'
      10: json_obj: {'params':

      {'password': 'api', 'user': 'api'}

      , 'jsonrpc': '2.0', 'method': 'user.authenticate', 'auth': '', 'id': 0}
      10: Connection object <httplib.HTTPConnection instance at 0x28b65f0>
      20: Sending: {"params":

      {"password": "api", "user": "api"}

      , "jsonrpc": "2.0", "method": "user.authenticate", "auth": "", "id": 0}
      10: Sending headers:

      {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}

      20: Response Code: 200 OK
      10: Response Body:

      {'jsonrpc': '2.0', 'result': '42e72a52d13b0286ce579af874f8572b', 'id': 0}

      10: json_obj: {'params': {}, 'jsonrpc': '2.0', 'method': 'APIInfo.version', 'auth': '42e72a52d13b0286ce579af874f8572b', 'id': 1}
      10: Connection object <httplib.HTTPConnection instance at 0x28b6878>
      20: Sending: {"params": {}, "jsonrpc": "2.0", "method": "APIInfo.version", "auth": "42e72a52d13b0286ce579af874f8572b", "id": 1}
      10: Sending headers:

      {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}

      20: Response Code: 200 OK
      10: Response Body:

      {'jsonrpc': '2.0', 'result': '1.2', 'id': 1}

      Zabbix API Version: 1.2
      10: json_obj: {'params':

      {'sessionid': '42e72a52d13b0286ce579af874f8572b'}

      , 'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'auth': '42e72a52d13b0286ce579af874f8572b', 'id': 2}
      10: Connection object <httplib.HTTPConnection instance at 0x28b6998>
      20: Sending: {"params":

      {"sessionid": "42e72a52d13b0286ce579af874f8572b"}

      , "jsonrpc": "2.0", "method": "user.checkAuthentication", "auth": "42e72a52d13b0286ce579af874f8572b", "id": 2}
      10: Sending headers:

      {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}

      20: Response Code: 200 OK
      10: Response Body:

      {'jsonrpc': '2.0', 'result': True, 'id': 2}

      Logged in: True
      10: json_obj: {'params':

      {'screenid': '3'}

      , 'jsonrpc': '2.0', 'method': 'screen.delete', 'auth': '42e72a52d13b0286ce579af874f8572b', 'id': 3}
      10: Connection object <httplib.HTTPConnection instance at 0x28b65f0>
      20: Sending: {"params":

      {"screenid": "3"}

      , "jsonrpc": "2.0", "method": "screen.delete", "auth": "42e72a52d13b0286ce579af874f8572b", "id": 3}
      10: Sending headers:

      {'Content-Type': 'application/json-rpc', 'User-Agent': 'python/zabbix_api'}

      20: Response Code: 500 Internal Server Error
      HTTP ERROR 500: Internal Server Error

      Also tried with svn version svn://svn.zabbix.com/branches/1.8/frontends/php, same issue.

      Log in apache :

      [Thu May 27 09:28:40 2010] [error] [client 10.2.23.254] PHP Fatal error: Cannot break/continue 1 level in /srv/src/zabbix/1.8/frontends/php/api/classes/class.cscreen.php on line 693

            Unassigned Unassigned
            maxenced Maxence Dunnewind
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: