Many Errors in CMDPHP PHP

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
RRSS
Posts: 3
Joined: Mon Oct 16, 2023 5:52 pm

Many Errors in CMDPHP PHP

Post by RRSS »

Hi all;

I installed Cacti version Version 1.2.17 in ubuntu 20.04 with php 8.2 and spine.

Actually I had a lot of error in my log with CMDPHP (here below the errors).

Can you help me to fix them because actually I can obtain any graph.


2023-11-04 23:49:16 - RECACHE STATS: Poller:1 RecacheTime:11.2014 DevicesRecached:2
2023-11-05 00:49:16 - CMDPHP PHP ERROR Backtrace: (/clog.php[40]:clog_view_logfile(), /lib/clog_webapi.php[307]:preg_replace_callback(), clog_regex_parser(), /lib/clog_webapi.php[681]:clog_regex_datasource(), /lib/clog_webapi.php[750]:clog_get_datasource_titles(), /lib/clog_webapi.php[33]:get_data_source_title(), /lib/functions.php[2199]:expand_title(), /lib/variables.php[220]:substitute_host_data(), /lib/variables.php[299]:get_uptime(), /lib/functions.php[4744]:get_daysfromtime(), /lib/functions.php[4766]:CactiErrorHandler())
2023-11-05 00:49:16 - ERROR PHP DEPRECATED: Implicit conversion from float 30881453.29 to int loses precision in file: /var/www/html/cacti/lib/functions.php on line: 4766
2023-11-05 00:49:16 - CMDPHP PHP ERROR Backtrace: (/clog.php[40]:clog_view_logfile(), /lib/clog_webapi.php[307]:preg_replace_callback(), clog_regex_parser(), /lib/clog_webapi.php[681]:clog_regex_datasource(), /lib/clog_webapi.php[750]:clog_get_datasource_titles(), /lib/clog_webapi.php[33]:get_data_source_title(), /lib/functions.php[2199]:expand_title(), /lib/variables.php[220]:substitute_host_data(), /lib/variables.php[299]:get_uptime(), /lib/functions.php[4744]:get_daysfromtime(), /lib/functions.php[4766]:CactiErrorHandler())
2023-11-05 00:49:16 - ERROR PHP DEPRECATED: Implicit conversion from float 30881453.29 to int loses precision in file: /var/www/html/cacti/lib/functions.php on line: 4766
2023-11-05 00:49:16 - CMDPHP PHP ERROR Backtrace: (/clog.php[40]:clog_view_logfile(), /lib/clog_webapi.php[307]:preg_replace_callback(), clog_regex_parser(), /lib/clog_webapi.php[681]:clog_regex_datasource(), /lib/clog_webapi.php[750]:clog_get_datasource_titles(), /lib/clog_webapi.php[33]:get_data_source_title(), /lib/functions.php[2199]:expand_title(), /lib/variables.php[220]:substitute_host_data(), /lib/variables.php[299]:get_uptime(), /lib/functions.php[4744]:get_daysfromtime(), /lib/functions.php[4766]:CactiErrorHandler())
2023-11-05 00:49:16 - ERROR PHP DEPRECATED: Implicit conversion from float 30881453.29 to int loses precision in file: /var/www/html/cacti/lib/functions.php on line: 4766
2023-11-05 00:49:16 - CMDPHP PHP ERROR Backtrace: (/clog.php[40]:clog_view_logfile(), /lib/clog_webapi.php[307]:preg_replace_callback(), clog_regex_parser(), /lib/clog_webapi.php[681]:clog_regex_datasource(), /lib/clog_webapi.php[750]:clog_get_datasource_titles(), /lib/clog_webapi.php[33]:get_data_source_title(), /lib/functions.php[2199]:expand_title(), /lib/variables.php[220]:substitute_host_data(), /lib/variables.php[299]:get_uptime(), /lib/functions.php[4744]:get_daysfromtime(), /lib/functions.php[4766]:CactiErrorHandler())
2023-11-05 00:49:16 - ERROR PHP DEPRECATED: Implicit conversion from float 30881453.29 to int loses precision in file: /var/www/html/cacti/lib/functions.php on line: 4766
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 440
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[799]:cacti_snmp_session(), /lib/snmp.php[87]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$bulk_walk_size is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 87
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 440
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[799]:cacti_snmp_session(), /lib/snmp.php[87]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$bulk_walk_size is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 87
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 440
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[799]:cacti_snmp_session(), /lib/snmp.php[87]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$bulk_walk_size is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 87
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 440
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[799]:cacti_snmp_session(), /lib/snmp.php[87]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$bulk_walk_size is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 87
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 440
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[799]:cacti_snmp_session(), /lib/snmp.php[87]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$bulk_walk_size is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 87
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 440
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[799]:cacti_snmp_session(), /lib/snmp.php[87]:CactiErrorHandler())
2023-11-04 23:49:12 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$bulk_walk_size is deprecated in file: /var/www/html/cacti/lib/snmp.php on line: 87
2023-11-04 23:49:12 - PCOMMAND Device[test_juniper] NOTE: Recache Event Detected for Device
2023-11-04 23:49:12 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-11-04 23:49:12 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /var/www/html/cacti/lib/mib_cache.php:359 Stack trace: #0 /var/www/html/cacti/lib/snmpagent.php(468): MibCache->update() #1 /var/www/html/cacti/poller.php(829): snmpagent_poller_bottom() #2 {main} thrown in file: /var/www/html/cacti/lib/mib_cache.php on line: 359
2023-11-04 23:49:09 - CMDPHP PHP ERROR Backtrace: (/poller_commands.php[144]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[813]:cacti_snmp_session_walk(), /lib/snmp.php[440]:CactiErrorHandler())

thank you in advance for you help.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Many Errors in CMDPHP PHP

Post by TheWitness »

My recommendation is to get on Cacti 1.2.25 ASAP. There have been dozens for PHP8 fixes due to fundamental changes in PHP behavior in PHP8.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
ikhsanuus
Posts: 6
Joined: Sat Jun 11, 2022 11:37 pm
Location: Indonesia
Contact:

Re: Many Errors in CMDPHP PHP

Post by ikhsanuus »

Hi guys,

I also have the same problem, I use version 1.2.19, and use PHP 8.1.2

Will changing PHP to version 7 make everything normal?




Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Many Errors in CMDPHP PHP

Post by TheWitness »

Or better, upgrade to 1.2.27.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests