I have been running IP 1.5 with PHP 7.4 for quite some time.
I upgraded from Ubuntu 20.04 to 22.04 running PHP 8.1
After upgrading Linux, I tried upgrading to IP 1.6 by following the instructions here:
https://wiki.invoiceplane.com/en/1.6/getting-started/updating-ip
So I open the setup url, and go up to the point where it asks me for database details.
I’m actually not sure why that is needed, since the config-file already has my database details. Nevertheless I enter them (correctly), but it says it can’t connect.
How come, what to do? All my other websites correctly connect to their databases, so this is not a problem on database side.
For the moment I temporarily rolled back to IP 1.5 in combination with PHP 7.4 on this server (whilst my other website stay on PHP 8.1) and that works fine.
A PHP Error was encountered
Severity: Warning
Message: Trying to access array offset on value of type bool
Filename: mysqli/mysqli_driver.php
Line Number: 128
Backtrace:
File: /var/www/redacted/application/third_party/MX/Loader.php
Line: 180
Function: DB
File: /var/www/redacted/application/core/Base_Controller.php
Line: 56
Function: database
File: /var/www/redacted/application/core/User_Controller.php
Line: 29
Function: __construct
File: /var/www/redacted/application/core/Admin_Controller.php
Line: 26
Function: __construct
File: /var/www/redacted/index.php
Line: 329
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)
Filename: mysqli/mysqli_driver.php
Line Number: 211
Backtrace:
File: /var/www/redacted/application/third_party/MX/Loader.php
Line: 180
Function: DB
File: /var/www/redacted/application/core/Base_Controller.php
Line: 56
Function: database
File: /var/www/redacted/application/core/User_Controller.php
Line: 29
Function: __construct
File: /var/www/redacted/application/core/Admin_Controller.php
Line: 26
Function: __construct
File: /var/www/redacted/index.php
Line: 329
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: core/User_Controller.php
Line Number: 29