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
Add support for PHP 8 #4475
Comments
Thanks Paul, I think we should probably split each ERROR PHP line out (keeping the two number_formats together) as each has their own issue. One of the issues I think is already resolved for utilities.php as that was the issue you previously raised #4472 |
Yes, sorry about that. I only noticed after posting. |
Wow, |
Running cacti with PHP8.1 shows lots of warnings in the log
@paulgevers, please test again. Most should be resolved, but not sure all have. Let us know. |
@TheWitness, I think it's clean now for the only one left:
I wouldn't be surprised if this is totally related to the Debian packaging and I vaguely recall from some earlier issue that I had still work to do. Can you teach me what's wrong here and how bad it is? |
Yes, Paul that would. It's a value that is randomly generated to act as the base token for CSRF processing. Once the file is created and populated, it should not be written to again. |
So, ignoring that Debian specific thing I get this in my log:
|
You can change the location of the CSRF secret too if I remember correctly. It would seem that pollers.php was missed and I have no corrected that. |
I was going to comment on the relocation. Thought the path was in config.php. my guess for Debian would be |
From config.php.dist /*
* Optional parameter to define the path of the csrf_secret.php path. This
* variable is for packagers who wish to specify an alternate location of
* the CRSF secret file.
*/
//$path_csrf_secret = '/usr/share/cacti/resource/csrf-secret.php'; |
Okay @paulgevers, if you are satisfied, please close. |
Seems fine. |
Describe the bug
Debian is in the process of moving to PHP8.1 (it's currently available in experimental). The test suite of Cacti in Debian is failing because a lot of warning show up in the log.
To Reproduce
Steps to reproduce the behavior:
Replace your php instance with php8.1. E.g. in a Debian unstable environment, install the following packages from experimental: php-cli, php-gd, php-json, php-gmp, php-ldap, php-mbstring, php-mysql, php-phpmyadmin-motranslator, php-phpseclib, php-snmp, php-twig, php-xml,
Run tests/tools/check_all_pages.sh and tests/tools/check_cli_version.sh
See how they fail
See error (at the bottom)
Desktop (please complete the following information)
OS: Debian
Browser wget
Version 1.21.2
Errors
Original log: https://ci.debian.net/data/autopkgtest/unstable/amd64/c/cacti/16973612/log.gz
Filtered, sorted and unique:
The text was updated successfully, but these errors were encountered: