[Bug 914746] Re: cacti SNMP verbose query PHP error

Paul Gevers 914746 at bugs.launchpad.net
Sat Jul 7 16:29:20 UTC 2012


I have reproduced the problem with the cacti package from lucid in my
precise test environment. My above patch did NOT work. However with a
small change sizeof -> empty the patch works.

If somebody else can verify the patch, that would be great.

** Patch added: "Checked lucid patch"
   https://bugs.launchpad.net/ubuntu/+source/cacti/+bug/914746/+attachment/3216082/+files/LP914746_regression_lucid_string_offset_in_data_query.patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/914746

Title:
  cacti SNMP verbose query PHP error

Status in Cacti, the complete rrdtool-based graphing solution:
  New
Status in “cacti” package in Ubuntu:
  Fix Released
Status in “cacti” package in Debian:
  Fix Released

Bug description:
  when adding an SNMP - Interface statistics data query, and clicking on
  the 'verbose list' link, I get a 500 internal error, and the following
  line in the apache log file:

  PHP Fatal error:  Cannot use string offset as an array in
  /usr/share/cacti/site/lib/data_query.php on line 183, referer:
  http://localhost/cacti/host.php?action=edit&id=1

  this prevents me from having network interface statistics followed by
  cacti.

  additional info:

  # lsb_release -rd
  Description:	Ubuntu 10.04.3 LTS
  Release:	10.04

  # apt-cache policy cacti
  cacti:
    Installed: 0.8.7e-2ubuntu0.2
    Candidate: 0.8.7e-2ubuntu0.2
    Version table:
   *** 0.8.7e-2ubuntu0.2 0
          500 http://mirror.us.leaseweb.net/ubuntu/ lucid-updates/universe Packages
          500 http://security.ubuntu.com/ubuntu/ lucid-security/universe Packages
          100 /var/lib/dpkg/status
       0.8.7e-2 0
          500 http://mirror.us.leaseweb.net/ubuntu/ lucid/universe Packages

  # apt-cache policy php5
  php5:
    Installed: 5.3.2-1ubuntu4.11
    Candidate: 5.3.2-1ubuntu4.11
    Version table:
   *** 5.3.2-1ubuntu4.11 0
          500 http://mirror.us.leaseweb.net/ubuntu/ lucid-updates/main Packages
          500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
          100 /var/lib/dpkg/status
       5.3.2-1ubuntu4 0
          500 http://mirror.us.leaseweb.net/ubuntu/ lucid/main Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/cacti/+bug/914746/+subscriptions



More information about the Ubuntu-sponsors mailing list