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

Error message when open Slide Shows

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.8.1, 1.9.0 (alpha)
    • 1.8.1, 1.9.0 (alpha)
    • Frontend (F)
    • None
    • Linux CentOS 5.4, php-5.1.6, postgresql-8.4.2
      Zabbix Server (daemon) v1.8 (revision 9377) (7 December 2009)

    Description

      I have installed zabbix 1.8.0 rev 9377 (ZABBIX Sources: Pre-1.8.x (stable) 9380 18 Jan, 2010) and when I open Slide Shows (No slides defined), I have get error:

      • Undefined variable: screenids[/var/www/vhosts/zabbix/html/include/screens.inc.php:225]
      • Undefined variable: screenids[/var/www/vhosts/zabbix/html/include/screens.inc.php:231]
      • Invalid argument supplied for foreach()[/var/www/vhosts/zabbix/html/include/screens.inc.php:231]

      fixed:

      — screens.inc.php-orig 2010-01-20 04:57:31.000000000 +0100
      +++ screens.inc.php 2010-01-20 05:08:54.000000000 +0100
      @@ -219,7 +219,7 @@
      while($slide_data = DBfetch($db_screens))

      { $screenids[$slide_data['screenid']] = $slide_data['screenid']; }

      -
      + if (!isset($screenids))$screenids = NULL;
      $options = array(
      'screenids' => $screenids
      );
      @@ -228,8 +228,10 @@
      $screens = CScreen::get($options);
      $screens = zbx_toHash($screens, 'screenid');

      • foreach($screenids as $snum => $screenid){
      • if(!isset($screens[$screenid])) return false;
        + if($screenids != NULL)
        Unknown macro: {+ foreach($screenids as $snum => $screenid){ + if(!isset($screens[$screenid])) return false; + } }

        }

      Attachments

        Activity

          People

            Unassigned Unassigned
            costas Konstantin V. Sapronov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: