Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Dec 13, 2018 1:35 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Report It 1.0.1 - PHP Errors
PostPosted: Thu Aug 09, 2018 1:34 pm 
Offline

Joined: Thu Aug 09, 2018 1:25 pm
Posts: 1
Testing a new build of Cacti (v1.1.38) and trying to run some reports (copied templates from our Cacti server in production) using the ReportIt module (v1.0.1). However, we keep getting PHP errors. I made sure to install the php-rrd package on our Ubuntu server (as recommended), but we're still seeing the same errors. Here are the errors from our log:

2018/08/09 12:48:03 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'reportit'
thrown in file: /var/www/html/plugins/reportit/view.php on line: 125
#0 /var/www/html/plugins/reportit/view.php(64): standard()
2018/08/09 12:48:03 - ERROR PHP ERROR in Plugin 'reportit': Uncaught Error: Call to undefined function my_id() in /var/www/html/plugins/reportit/view.php:125
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 36 include_once)(/plugins/reportit/view.php: 36 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/const_view.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/plugins/reportit/view.php on line: 36
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 36 include_once)(/plugins/reportit/view.php: 36 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(REPORTIT_BASE_PATH/lib/const_view.php): failed to open stream: No such file or directory in file: /var/www/html/plugins/reportit/view.php on line: 36
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 36 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' (this will throw an Error in a future version of PHP) in file: /var/www/html/plugins/reportit/view.php on line: 36
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 35 include_once)(/plugins/reportit/view.php: 35 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_export.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/plugins/reportit/view.php on line: 35
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 35 include_once)(/plugins/reportit/view.php: 35 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(REPORTIT_BASE_PATH/lib/funct_export.php): failed to open stream: No such file or directory in file: /var/www/html/plugins/reportit/view.php on line: 35
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 35 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' (this will throw an Error in a future version of PHP) in file: /var/www/html/plugins/reportit/view.php on line: 35
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 34 include_once)(/plugins/reportit/view.php: 34 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_online.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/plugins/reportit/view.php on line: 34
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 34 include_once)(/plugins/reportit/view.php: 34 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(REPORTIT_BASE_PATH/lib/funct_online.php): failed to open stream: No such file or directory in file: /var/www/html/plugins/reportit/view.php on line: 34
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 34 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' (this will throw an Error in a future version of PHP) in file: /var/www/html/plugins/reportit/view.php on line: 34
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 33 include_once)(/plugins/reportit/view.php: 33 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_html.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/plugins/reportit/view.php on line: 33
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 33 include_once)(/plugins/reportit/view.php: 33 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(REPORTIT_BASE_PATH/lib/funct_html.php): failed to open stream: No such file or directory in file: /var/www/html/plugins/reportit/view.php on line: 33
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 33 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' (this will throw an Error in a future version of PHP) in file: /var/www/html/plugins/reportit/view.php on line: 33
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 32 include_once)(/plugins/reportit/view.php: 32 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_shared.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/plugins/reportit/view.php on line: 32
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 32 include_once)(/plugins/reportit/view.php: 32 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(REPORTIT_BASE_PATH/lib/funct_shared.php): failed to open stream: No such file or directory in file: /var/www/html/plugins/reportit/view.php on line: 32
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 32 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' (this will throw an Error in a future version of PHP) in file: /var/www/html/plugins/reportit/view.php on line: 32
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 31 include_once)(/plugins/reportit/view.php: 31 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_validate.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/plugins/reportit/view.php on line: 31
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 31 include_once)(/plugins/reportit/view.php: 31 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': include_once(REPORTIT_BASE_PATH/lib/funct_validate.php): failed to open stream: No such file or directory in file: /var/www/html/plugins/reportit/view.php on line: 31
2018/08/09 12:48:03 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/reportit/view.php: 31 CactiErrorHandler)(/lib/functions.php: 4585 cacti_debug_backtrace)
2018/08/09 12:48:03 - ERROR PHP WARNING in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' (this will throw an Error in a future version of PHP) in file: /var/www/html/plugins/reportit/view.php on line: 31
2018/08/09 12:45:21 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'reportit'
thrown in file: /var/www/html/plugins/reportit/reports.php on line: 1255
#0 /var/www/html/plugins/reportit/reports.php(39): form_actions()
2018/08/09 12:45:21 - ERROR PHP ERROR in Plugin 'reportit': Uncaught Error: [] operator not supported for strings in /var/www/html/plugins/reportit/reports.php:1255

Any help or suggestions would be greatly appreciated!

-K


Top
 Profile  
 
 Post subject: Re: Report It 1.0.1 - PHP Errors
PostPosted: Wed Sep 05, 2018 8:32 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1812
ReportIT is undergoing some changes. There's been an active development over the last week to resolve most 1.1.38 issues with reportit so that it's ready for 1.2.

Check the github repository https://github.com/cacti/plugin_reportit/ for more information.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group