forum : bug report: Perf Report:"Undefined variable: data" error

You must be logged in to post Login Register

bug report: Perf Report:”Undefined variable: data” error

UserPost

10:10 am
November 14, 2009


xstar

Junior-DBA

posts 16

1

Perf Report:”Undefined variable: data” error:

When click “Download Report as PDF”,return this error:

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: data

Filename: models/model_main.php

Line Number: 1962
An Error Was Encountered

Failed to load report for hostname

10:16 am
November 14, 2009


themattreid

Admin

Nevada

posts 48

2

have you set up the reporter to run out of cron? You can also manually run bin/kontroll-reporter… script to generate the report. No data means that there isn't a report to pass to the pdf generator.

http://kontrollsoft.com http://themattreid.com

11:06 am
November 14, 2009


xstar

Junior-DBA

posts 16

3

Post edited 7:10 pm – November 14, 2009 by xstar
Post edited 7:12 pm – November 14, 2009 by xstar


I had set the crontab to run reporter.

maybe my data have error or data less than 5 hours( and mysql uptime only 15 hours):

I modfity thekontroll-stats-gather-5.0.x_linux-x86-2.0.1.pl script, disable the error data to “-1″ like below,because it's unable to continue.

….

    debug_report(”## process start”);
    parse_data($xml_file,$server_id,$active_status);

$varlist{'max_binlog_cache_size'} = “-1″;
$varlist{'max_join_size'} = “-1″;
$varlist{'max_seeks_for_key'} = “-1″;
$varlist{'max_write_lock_count'} = “-1″;
$varlist{'sql_max_join_size'} = “-1″;
$varlist{'sql_select_limit'} = “-1″;

    insert_data() or error_report(”$h [fail]“);

….


11:07 am
November 14, 2009


xstar

Junior-DBA

posts 16

4

Post edited 8:17 pm – November 14, 2009 by xstar
Post edited 8:18 pm – November 14, 2009 by xstar


the reporter run have err:

Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138.
Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138.

2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: #### reporter process start
2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: working on user,13, 192.168.0.12

2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: truncating tmp/kontrollbase-reporter-2009-11-15040201.log
######################ENTERED report
2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: #### reporter process end

11:22 am
November 14, 2009


themattreid

Admin

Nevada

posts 48

5

Can you list the verions of the following:

  1. kontrollbase revision
  2. OS type
  3. OS bit – 32 or 64
  4. MySQL version of client server(s) you are polling
  5. MySQL version of server running kontrollbase
  6. PHP version
  7. Perl version

http://kontrollsoft.com http://themattreid.com

11:22 am
November 14, 2009


themattreid

Admin

Nevada

posts 48

6

Can you list the versions of the following:

  1. kontrollbase revision
  2. OS type
  3. OS bit – 32 or 64
  4. MySQL version of client server(s) you are polling
  5. MySQL version of server running kontrollbase
  6. PHP version
  7. Perl version

http://kontrollsoft.com http://themattreid.com

11:40 am
November 14, 2009


xstar

Junior-DBA

posts 16

7

   1. kontrollbase revision: 2.0.1 revison 225
   2. OS type: Ubuntu 9.04
   3. OS bit – 32 or 64   64bit
   4. MySQL version of client server(s) you are polling
mysql-server-5.1 5.1.31-1ubuntu2
mysql-client-5.1 5.1.31-1ubuntu2

   5. MySQL version of server running kontrollbase
same, for test, kontrollbase webapp/server script and clent host is on one server.

   6. PHP version
PHP 5.2.6-3ubuntu4.2 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2009 21:43:13)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

   7. Perl version
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi

7:23 pm
January 11, 2010


themattreid

Admin

Nevada

posts 48

8

Sorry for the delay… The part below is not an error. It's a warning about a private variable not needing to be private. In the script, at the top, if you put a # before “use warnings;” it will go away. 


Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138.
Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138.

http://kontrollsoft.com http://themattreid.com

 

About the kontrollsoft forum

Most Users Ever Online:

9


Currently Online:

1 Guest

Forum Stats:

Groups: 3

Forums: 12

Topics: 33

Posts: 79

Membership:

There are 425 Members

There has been 1 Guest

There is 1 Admin

There are 0 Moderators

Top Posters:

xstar – 16

Prabhat – 3

christian.keil – 2

massoo – 2

j2ict – 2

chaq – 1

Administrators: themattreid (48 Posts)