-
Incident report
-
Resolution: Duplicate
-
Trivial
-
None
-
2.1.2
As of ZBX-6020 in ZABBIX 2.2 all mysql functions will be replaced with mysqli. By default mysqli functions in PHP configuration are disabled. Since we're suppressing connection errors with @ to produce friendly user errors in setup, due a disabled database extention, user will get a white page. Removing @ from mysqli_connect, page would show a fatal error, that PHP can't find such function. Same thing happens in not only for index.php but for setup.php as well. Setup tries to initialize database before we even see the installation steps.
There are few options:
- Extend function checkPhpDatabases to support requesting a specific database type and in case one of required functions does not exist, throw an error;
- or use extention_loaded() before calling database functions;
- some other and/or better solution.
Small discussion about this fix is required.
- is duplicated by
-
ZBX-9898 blank page if config file present but no database support
- Closed