Closed vishnubraj closed 5 years ago
Hi. did any one get a chance to check this. Please let me know if i can be any helpful to fix this...
I think @browniebraun will be looking into it. I haven't had a chance myself due to the main 1.2 upgrade QA that I'm doing.
Hi @vishnubraj if you have the latest release, this doesn't seem to be an issue. If you are still having issues, please let me know and the version of cacti that you are using.
no @netniV i am still getting the uncaught error when i run the report.. Yes i just downloaded the latest version again and tried. Cacti version: 1.1.38
2018/09/22 05:28:48 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'reportit'
--
2018/09/22 05:28:48 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler)(/lib/functions.php: 4628 cacti_debug_backtrace)
thrown in file: /var/www/cacti/plugins/reportit/view.php on line: 125
#1 {main}
#0 /var/www/cacti/plugins/reportit/view.php(64): standard()
Stack trace:
2018/09/22 05:28:48 - ERROR PHP ERROR in Plugin 'reportit': Uncaught Error: Call to undefined function my_id() in /var/www/cacti/plugins/reportit/view.php:125
2018/09/22 05:28:48 - 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/09/22 05:28:48 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/const_view.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in file: /var/www/cacti/plugins/reportit/view.php on line: 36
2018/09/22 05:28:48 - 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/09/22 05:28:48 - 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/cacti/plugins/reportit/view.php on line: 36
2018/09/22 05:28:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/reportit/view.php: 36 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)
2018/09/22 05:28:48 - ERROR PHP NOTICE in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in file: /var/www/cacti/plugins/reportit/view.php on line: 36
2018/09/22 05:28:48 - 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/09/22 05:28:48 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_export.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in file: /var/www/cacti/plugins/reportit/view.php on line: 35
2018/09/22 05:28:48 - 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/09/22 05:28:48 - 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/cacti/plugins/reportit/view.php on line: 35
2018/09/22 05:28:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/reportit/view.php: 35 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)
2018/09/22 05:28:48 - ERROR PHP NOTICE in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in file: /var/www/cacti/plugins/reportit/view.php on line: 35
2018/09/22 05:28:48 - 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/09/22 05:28:48 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_online.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in file: /var/www/cacti/plugins/reportit/view.php on line: 34
2018/09/22 05:28:48 - 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/09/22 05:28:48 - 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/cacti/plugins/reportit/view.php on line: 34
2018/09/22 05:28:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/reportit/view.php: 34 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)
2018/09/22 05:28:48 - ERROR PHP NOTICE in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in file: /var/www/cacti/plugins/reportit/view.php on line: 34
2018/09/22 05:28:48 - 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/09/22 05:28:48 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_html.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in file: /var/www/cacti/plugins/reportit/view.php on line: 33
2018/09/22 05:28:48 - 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/09/22 05:28:48 - 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/cacti/plugins/reportit/view.php on line: 33
2018/09/22 05:28:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/reportit/view.php: 33 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)
2018/09/22 05:28:48 - ERROR PHP NOTICE in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in file: /var/www/cacti/plugins/reportit/view.php on line: 33
2018/09/22 05:28:48 - 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/09/22 05:28:48 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_shared.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in file: /var/www/cacti/plugins/reportit/view.php on line: 32
2018/09/22 05:28:48 - 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/09/22 05:28:48 - 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/cacti/plugins/reportit/view.php on line: 32
2018/09/22 05:28:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/reportit/view.php: 32 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)
2018/09/22 05:28:48 - ERROR PHP NOTICE in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in file: /var/www/cacti/plugins/reportit/view.php on line: 32
2018/09/22 05:28:48 - 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/09/22 05:28:48 - ERROR PHP WARNING in Plugin 'reportit': include_once(): Failed opening 'REPORTIT_BASE_PATH/lib/funct_validate.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in file: /var/www/cacti/plugins/reportit/view.php on line: 31
2018/09/22 05:28:48 - 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/09/22 05:28:48 - 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/cacti/plugins/reportit/view.php on line: 31
2018/09/22 05:28:48 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/reportit/view.php: 31 CactiErrorHandler)(/lib/functions.php: 4590 cacti_debug_backtrace)
2018/09/22 05:28:48 - ERROR PHP NOTICE in Plugin 'reportit': Use of undefined constant REPORTIT_BASE_PATH - assumed 'REPORTIT_BASE_PATH' in file: /var/www/cacti/plugins/reportit/view.php on line: 31
OK, i'll test against my 1.1.38 system.
Just to clarify, where did you download from and what version/commit reference are you on for ReportIT?
i did a git clone of "https://github.com/Cacti/plugin_reportit.git" URL.. i believe this default download the develop branch..
And you did a refresh clone, or have you done a git pull
recently to update it?
i deleted the old folder and did a git clone and installed it again..
OK, that is strange. I'll do a fresh 1.1.38 install and try again.
You know... I just realised that what I missed was the very first issue... you had a string that was trying to be used as an array... I've fixed that now... the other issues of REPORTIT_BASE_PATH are because the plugin became disabled due to the first error.
Awesome!! Thanks for the fix @netniV . It works fine now.. I am able to generate reports.
One last thing is, there used to be a option to view the report in chart format. But i dont see the option now. Does that got removed?
That I couldn't possible say. I can search the code for 'chart' but since I am technically a first time user, I wouldn't know about historic things 👍
Just so you are aware, I have found and corrected other instances of this same issue.
i am using the latest plugin from the git.. Creating report is not a problem, whenever i run the script i get the below error:
below is the mysql output..