-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Deprecation warnings when attempting real-time Graphs with PHP8.1 #4853
Comments
This bug still exists under v1.2.22, what PHP version are you running? |
Thanks for your reply |
I saw this the other day and neglected to look into it. |
You should not need to downgrade as this is a very narrowly defined error and only happens when your Data Sources have not had their RRDfiles created. But if you still want to do it, you need to do it through aptitude (apt). |
Deprecation warnings when attempting real-time Graphs with PHP8.1
Closing this one now as the first bug was fixed. This second issue is better served on the forums as its not a bug. Basically, you database is setup using one collation/charset and was not fully migrated. Best thing to do is go to Then make the required changes and restart the database. After that, reverify from that page, and if all is good, run the CLI script |
Thank you theWitness |
I installed cacti 1.2.20. I created a graph and device success, but when I viewed the graph in realtime, I faced the issue below:
The log file said:
2022-07-01 12:44:11 - ERROR PHP DEPRECATED: Implicit conversion from float 35.4375 to int loses precision in file: /var/www/html/cacti/lib/rrd.php on line: 3670
2022-07-01 12:44:11 - CMDPHP PHP ERROR Backtrace: (/graph_realtime.php[244]:rrdtool_create_error_image(), /lib/rrd.php[3670]:wordwrap(), CactiErrorHandler())
Can you help me to fix that?
The text was updated successfully, but these errors were encountered: