Describe the bug
Can't change password when first installing
To Reproduce
Steps to reproduce the behavior:
- Try to setup cacti.
- Reach until first login, where you're forced to change pw.
- Fail
Bug
cacti v1.2.27
php v8.3.11
"PHP message: PHP Warning: dns_get_record(): A temporary server error occurred. in /mnt/http_mount/cacti/auth_changepassword.php on line 345; PHP message: PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, false given in /mnt/http_mount/cacti/auth_changepassword.php:352
Stack trace:
#0 {main}
thrown in /mnt/http_mount/cacti/auth_changepassword.php on line 352" while reading response header from upstream, client: 192.168.0.1, server: martixy.dmn-design.com, request: "GET /cacti/auth_changepassword.php?ref=https://martixy.dmn-design.com/cacti/install/install.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "martixy.dmn-design.com", referrer: "https://martixy.dmn-design.com/cacti/install/install.php"
aka
sizeof() throws, because dns_get_record() can return false, for whatever reason ¯\_(ツ)_/¯.
Frankly, not sure what the purpose of that sizeof call is...
After bypassing that we end up here:
cacti_log('WARNING: User attempted to access Cacti from unkonwn URL', false, 'AUTH');
and the browser throws a "too many redirects" error.
And with that, my will to debug this problem ran out.
P.S. Does the root folder have to be named cacti? It'd be cool if it didn't matter.
Describe the bug
Can't change password when first installing
To Reproduce
Steps to reproduce the behavior:
Bug
cacti v1.2.27
php v8.3.11
aka
sizeof()throws, becausedns_get_record()can return false, for whatever reason ¯\_(ツ)_/¯.Frankly, not sure what the purpose of that sizeof call is...
After bypassing that we end up here:
cacti_log('WARNING: User attempted to access Cacti from unkonwn URL', false, 'AUTH');and the browser throws a "too many redirects" error.
And with that, my will to debug this problem ran out.
P.S. Does the root folder have to be named cacti? It'd be cool if it didn't matter.