Ad Widget

Collapse

Undefined index: serviceid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcherren
    Junior Member
    • Mar 2011
    • 28

    #1

    Undefined index: serviceid

    Hi,

    I've just upgraded from 2.0.0rc3 -> rc4 and now I got the following message in the web-frontend.

    Undefined index: serviceid [include/classes/class.ctree.php:174]

    I've checked it with the previous version and indeed the code has changed.

    "if ($rows['id'] == '0')" has changed to "if ($rows['serviceid'] == '0')" in the function countDepth().

    Does anyone else has this problem? I could not find any upgrade instructions nor bug report yet.

    Best regards,

    Marc
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    Read this
    Join the friendly and open Zabbix community on our forums and social media platforms.

    and this:
    So far, upgrading from one development 1.9 release or 2.0.0 release candidate to another was not officially supported. Only unofficial patches and only for MySQL were available. Starting  with 2.0.0rc3, all database upgrades for all supported databases will be fully supported. This should be great news for those who would like to do extended testing, […]


    I've just checked and there no changes betven rc3 and rc4 which require DB patching.

    Also, I do not have these problems in Zabbix 2.0.0rc4 revision 27523.

    Comment

    • marcherren
      Junior Member
      • Mar 2011
      • 28

      #3
      Ok,

      I found the issue. I completely erased the db and create from fresh and there it work. But as soon as I configured DM it showed up again.

      # ./zabbix_server -n 1 -c /data/zabbix/etc/zabbix_server.conf
      Dropping foreign keys .................................................. .................................................. ..................... done.
      Converting tables .................................................. .................................................. ... done.
      Creating foreign keys .................................................. .................................................. ..................... done.
      Conversion completed successfully.

      Then again I have the following message:

      Undefined index: serviceid [include/classes/class.ctree.php:174]

      I'll gonna open a bug issue for this.


      Created ZBX-5002
      Last edited by marcherren; 15-05-2012, 16:32. Reason: Created bug entry

      Comment

      Working...