![]() |
It is likely I'm missing something I should have updated. However, currently, I can't sort out what the issue is.
I've updated the application via composer. Updated the composer updates per the 31 update documents between the two versions (remove some stuff, run some commands). We have ENV files (which are being loaded), the server does connect to the database (a basic sqlserver connection in PHP file works fine) - prior versions of CI are currently working on the same server (as I said v4.1.1). I've updated all of the config and view files in the app folders. we've updated the spark code. The error message is: Code: Unable to connect to the database. Which is saying the connection is being refused, however, the public folder has a testdb file with: Code: <?php And that works. So I know it isn't a connection or database connectivity, permissions issue (yes the passwords and all match exactly with the ENV file). We are using a filter (authentication) which does database work (again, working in v4.1.1) which is where the error is coming from. Any thing, pointers or clues I can check to see what I missed in the upgrade process?
In v4.4.3 the connection.php file in the \vendor\codeigniter4\framework\system\Database\SQLSRV folder has:
Code: if (strpos($this->hostname, ',') === false && $this->port !== '') { whereas the v4.1.1 doesn't. So, if you have ports set in your database.php config file, it will throw the errors I'd found. Once I removed the ports (by replacing with '' and not 0) in the app/config/database.php file, it worked. |
Welcome Guest, Not a member yet? Register Sign In |