Skip to content

Compatibility improvements for Boost under PHP 8.x #5338

@anarkia1976

Description

@anarkia1976

Hi Guys,

i have installed new cacti from scratch (release 1.2 latest source) with OS ubuntu 22.04:

OS: ubunt 22.04
PHP: 8.1.2
CACTI: 1.2 latest

i have enabled poller/boost, after this i have encountered some PHP related errors:

2023-05-29 14:35:02 - CMDPHP PHP ERROR Backtrace: (/poller_boost.php[162]:boost_prepare_process_table(), /poller_boost.php[313]:substr_count(), CactiErrorHandler())
2023-05-29 14:35:02 - ERROR PHP DEPRECATED: substr_count(): Passing null to parameter #1 ($haystack) of type string is deprecated in file: /var/www/html/cacti/poller_boost.php on line: 313
2023-05-29 14:05:01 - CMDPHP PHP ERROR Backtrace: (/poller_boost.php[131]:strtotime(), CactiErrorHandler())
2023-05-29 14:05:01 - ERROR PHP DEPRECATED: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in file: /var/www/html/cacti/poller_boost.php on line: 131
2023-05-29 14:05:01 - CMDPHP PHP ERROR Backtrace: (/poller_boost.php[124]:strtotime(), CactiErrorHandler())
2023-05-29 14:05:01 - ERROR PHP DEPRECATED: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in file: /var/www/html/cacti/poller_boost.php on line: 124

thanks a lot as always. stefano.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamporting requiredRequires porting to developresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions