Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'Constant REPORTIT_BASE_PATH already defined' appears in logs #75

Closed
fouadmfam opened this issue Nov 12, 2018 · 10 comments
Closed

Comments

@fouadmfam
Copy link

Dears I have Cacti V 1.1.27 and i tried to install ReportIt plugin but i have returned error in Logs.

{--2018/11/12 10:51:37 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php: 154 rrdtool_function_graph)(/lib/rrd.php: 1241 rrd_function_process_graph_options)(/lib/rrd.php: 801 include)(/include/global_arrays.php: 1592 api_plugin_hook)(/lib/plugins.php: 73 api_plugin_run_plugin_hook)(/lib/plugins.php: 170 reportit_config_arrays)(/plugins/reportit/setup.php: 351 reportit_define_constants)(/plugins/reportit/setup.php: 600 define)(CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace)
--2018/11/12 10:51:37 - ERROR PHP NOTICE in Plugin 'reportit': Constant REPORTIT_BASE_PATH already defined in file: /var/www/html/mrtg/plugins/reportit/setup.php on line: 600}

And these messages repeated with difference Line Numbers.
i appreciate your support.

@netniV
Copy link
Member

netniV commented Nov 12, 2018

Have you updated to the latest version of ReportIT?

@fouadmfam
Copy link
Author

I get the developer version. is that compatible.

@fouadmfam
Copy link
Author

Also i downloaded v1.1.2 and get the same issue and the design of reportit tab is corrapted.

@netniV netniV changed the title ReportIt plugin with Cacti 1.1.27 Error 'Constant REPORTIT_BASE_PATH already defined' appears in logs Nov 12, 2018
netniV added a commit that referenced this issue Nov 12, 2018
@netniV
Copy link
Member

netniV commented Nov 12, 2018

Redownload the latest develop version and see if that works for you.

@fouadmfam
Copy link
Author

I re-download the latest V1.1.3 but i got the below.
1- when reportit tab appear i click it and it redirect to a white page without any theams with few links when i click console to back the reportit tab disappear and reportit change to disable in plugin management.
2-when i click log tab no result return or loaded

@netniV
Copy link
Member

netniV commented Nov 12, 2018

Not just the release but from develop yes?

@netniV
Copy link
Member

netniV commented Nov 13, 2018

Just saw that it must be. When you get a blank page, you will likely have to refresh everything. You should still have logs though that report issues.

@netniV netniV closed this as completed Nov 15, 2018
@fouadmfam
Copy link
Author

Sorry for the delay the blank page solved when restart the Apache but the error of reportit still exist.. What should I do?

@netniV
Copy link
Member

netniV commented Nov 15, 2018

Download th3 latest develop version

@fouadmfam
Copy link
Author

fouadmfam commented Nov 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants