Cacti / plugin_reportit

ReportIt Plugin for Cacti
GNU General Public License v2.0
7 stars 9 forks source link

PHP Fatal error: Call to undefined function my_id() #35

Closed gmourani closed 6 years ago

gmourani commented 6 years ago

Here the log in Apache log file. The screen is blank even after refresh.

[Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 31, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/funct_validate.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 31, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_validate.php' for inclusion (include_path='.:/usr/share/pear:/usr/lib64/phplot:/usr/lib64/fpdf') in /var/www/html/cacti/plugins/reportit/view.php on line 31, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 32, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/funct_shared.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 32, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_shared.php' for inclusion (include_path='.:/usr/share/pear:/usr/lib64/phplot:/usr/lib64/fpdf') in /var/www/html/cacti/plugins/reportit/view.php on line 32, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 33, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/funct_html.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 33, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_html.php' for inclusion (include_path='.:/usr/share/pear:/usr/lib64/phplot:/usr/lib64/fpdf') in /var/www/html/cacti/plugins/reportit/view.php on line 33, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 34, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/funct_online.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 34, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_online.php' for inclusion (include_path='.:/usr/share/pear:/usr/lib64/phplot:/usr/lib64/fpdf') in /var/www/html/cacti/plugins/reportit/view.php on line 34, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 35, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/funct_export.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 35, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_export.php' for inclusion (include_path='.:/usr/share/pear:/usr/lib64/phplot:/usr/lib64/fpdf') in /var/www/html/cacti/plugins/reportit/view.php on line 35, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 36, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/const_view.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 36, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/const_view.php' for inclusion (include_path='.:/usr/share/pear:/usr/lib64/phplot:/usr/lib64/fpdf') in /var/www/html/cacti/plugins/reportit/view.php on line 36, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Fatal error: Call to undefined function my_id() in /var/www/html/cacti/plugins/reportit/view.php on line 125, referer: https://192.168.2.227/cacti/plugins/thold/thold_graph.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Notice: Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in /var/www/html/cacti/plugins/reportit/view.php on line 31, referer: https://192.168.2.227/cacti/plugins/reportit/view.php [Wed Sep 05 11:52:28 2018] [error] [client 192.168.2.147] PHP Warning: include_once(REPORTIT_BASE_PATH/lib/funct_validate.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/reportit/view.php on line 31, referer: https://192.168.2.227/cacti/plugins/reportit/view.php

browniebraun commented 6 years ago

Just wondering why thold_graph.php will be listed here.

netniV commented 6 years ago

Because they would have been on the thold graphs page, but then clicked the reports link, thus thold_graph.php from thold is where they came from and view.php in reportit is where they were being sent.

netniV commented 6 years ago

I believe that this is a result of issue #36

netniV commented 6 years ago

Close as a duplicate of #32 since they all seem to be related

browniebraun commented 6 years ago

Yep, you are right regarding THOLD.