Cactiusers.org


It is currently Thu May 17, 2012 7:48 am




Post new topic Reply to topic  [ 6 posts ] 
 functions.php error when adding Reports 
Author Message
New User

Joined: Mon Nov 07, 2005 7:45 am
Posts: 6
Post functions.php error when adding Reports
When I try to add a report I get these errors

Notice: Undefined index: report_create in C:\skilled-rrdtool\cacti\lib\functions.php on line 196

Notice: Undefined index: report_create in C:\skilled-rrdtool\cacti\lib\functions.php on line 220

Notice: Undefined index: report_create in C:\skilled-rrdtool\cacti\lib\functions.php on line 222


Windows 2000, Cacti 0.8.6g, Plugin architecture. Thresholds and Monitor are working fine.

Regards


Sat Nov 12, 2005 2:05 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: functions.php error when adding Reports
DAP wrote:
When I try to add a report I get these errors

Notice: Undefined index: report_create in C:\skilled-rrdtool\cacti\lib\functions.php on line 196

Notice: Undefined index: report_create in C:\skilled-rrdtool\cacti\lib\functions.php on line 220

Notice: Undefined index: report_create in C:\skilled-rrdtool\cacti\lib\functions.php on line 222


Windows 2000, Cacti 0.8.6g, Plugin architecture. Thresholds and Monitor are working fine.

Regards


Do you have the most recent Plugin Architecture installed? As your lib/functions.php doesn't seem to have the necessary modifications for passing errors back to Cacti's internal message handler. Try copying over the pre-modified lib/functions.php that is included in the latest Plugin Archtecture.


Sun Nov 13, 2005 11:57 am
New User

Joined: Mon Nov 07, 2005 7:45 am
Posts: 6
Post 
Re-copied pre-modified lib/functions.php as you suggested but the same error messages occur. :(


Sun Nov 13, 2005 6:17 pm
New User

Joined: Mon Nov 07, 2005 7:45 am
Posts: 6
Post 
Sorry, my fault. I hadn't imported the Reports table in mysql. All ok now.

Cheers


Sun Nov 13, 2005 7:22 pm
Post 
whats the best way to import them in? mysql cacti < reports.sql ?


Mon Nov 14, 2005 8:02 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
nduda78 wrote:
whats the best way to import them in? mysql cacti < reports.sql ?


That would work, or if you have phpmyadmin installed, you can use the import feature it comes with. Future versions of the plugin will auto-setup its own SQL tables, so we won't have to worry about this.


Mon Nov 14, 2005 9:11 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: