Report It 1.0.1 - PHP Errors

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
kmaysPLW
Posts: 1
Joined: Thu Aug 09, 2018 1:25 pm

Report It 1.0.1 - PHP Errors

Post by kmaysPLW »

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
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Report It 1.0.1 - PHP Errors

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

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

Who is online

Users browsing this forum: No registered users and 0 guests