Cacti 1.2.16 and PHP8

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

Moderators: Developers, Moderators

Post Reply
jayray
Posts: 27
Joined: Sat May 01, 2004 11:01 pm

Cacti 1.2.16 and PHP8

Post by jayray »

Forced into upgrading to php8 and now Cacti is broke.. any help is appreciated.

############
from index.php

Code: Select all

PHP Fatal error:  Uncaught ValueError: Unknown format specifier " " in /srv/http/cacti/include/global_languages.php:459
Stack trace:
#0 /srv/http/cacti/include/global_languages.php(459): sprintf()
#1 /srv/http/cacti/include/global_arrays.php(672): __()
#2 /srv/http/cacti/include/global.php(503): include_once('...')
#3 /srv/http/cacti/include/auth.php(28): require_once('...')
#4 /srv/http/cacti/index.php(25): include('...')
#5 {main}
  thrown in /srv/http/cacti/include/global_languages.php on line 459
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function CactiErrorHandler(), 4 passed and exactly 5 expected in /srv/http/cacti/lib/functions.php:4541
Stack trace:
#0 /srv/http/cacti/lib/functions.php(4624): CactiErrorHandler()
#1 [internal function]: CactiShutdownHandler()
#2 {main}
  thrown in /srv/http/cacti/lib/functions.php on line 4541

############
from Spine

Code: Select all

SPINE: Using spine config file [../etc/spine.conf]
WARNING: DB_PreG is no longer supported
SPINE: Version 1.2.14 starting
PHP Fatal error:  Uncaught ValueError: Unknown format specifier " " in /srv/http/cacti/include/global_languages.php:459
Stack trace:
#0 /srv/http/cacti/include/global_languages.php(459): sprintf()
#1 /srv/http/cacti/include/global_arrays.php(672): __()
#2 /srv/http/cacti/include/global.php(503): include_once('...')
#3 /srv/http/cacti/include/cli_check.php(45): include('...')
#4 /srv/http/cacti/script_server.php(25): require('...')
#5 {main}
  thrown in /srv/http/cacti/include/global_languages.php on line 459
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function CactiErrorHandler(), 4 passed and exactly 5 expected in /srv/http/cacti/lib/functions.php:4541
Stack trace:
#0 /srv/http/cacti/lib/functions.php(4624): CactiErrorHandler()
#1 [internal function]: CactiShutdownHandler()
#2 {main}
  thrown in /srv/http/cacti/lib/functions.php on line 4541
  
jayray
Posts: 27
Joined: Sat May 01, 2004 11:01 pm

Re: Cacti 1.2.16 and PHP8

Post by jayray »

Took to the bugreport on Github
https://github.com/Cacti/cacti/issues/4114
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests