CodeIgniter Forums
DatabaseHandler Broken in 4.1.4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: DatabaseHandler Broken in 4.1.4 (/showthread.php?tid=80081)



DatabaseHandler Broken in 4.1.4 - viewfromthenorth - 09-10-2021

I know there's another post in here about this but I can't seem to ascertain the result.
There is an identified bug in the DatabaseHandler for the session library, and it's based on changes that were addressed here: https://github.com/codeigniter4/CodeIgniter4/pull/4876
However, I see these changes have been merged into a 4.2 repo. Yet it's breaking the current application. Can we expect this to be fixed in a 4.1.5 or some way of hotfixing right now when using Composer? This is something I rely on and seems like a very important core bit of the system that should be working.


RE: DatabaseHandler Broken in 4.1.4 - paulbalandan - 09-10-2021

Since youre using Composer, I assume, replace codeigniter4/framework in your require with

codeigniter4/codeigniter4: 4.x-dev

then run composer update
until we can have another release


RE: DatabaseHandler Broken in 4.1.4 - viewfromthenorth - 09-10-2021

(09-10-2021, 06:45 AM)paulbalandan Wrote: Since youre using Composer, I assume, replace codeigniter4/framework in your require with

codeigniter4/codeigniter4: 4.x-dev

then run composer update
until we can have another release

When I try to install codeigniter4/codeigniter4 via Composer, it doesn't show any version numbers. I can't put in what you have above and there doesn't seem to be anything to choose from. Maybe I'm missing something?


RE: DatabaseHandler Broken in 4.1.4 - paulbalandan - 09-10-2021

Ok. sorry I've missed a part. Look at how we do this in the translations repo. Look at require-dev. Then add the repositories section to your own composer.json

https://github.com/codeigniter4/translations/blob/develop/composer.json


RE: DatabaseHandler Broken in 4.1.4 - kenjis - 09-10-2021

(09-10-2021, 07:25 AM)paulbalandan Wrote: Ok. sorry I've missed a part. Look at how we do this in the translations repo. Look at require-dev. Then add the repositories section to your own composer.json

https://github.com/codeigniter4/translations/blob/develop/composer.json

CI4 has a command to do it.

Code:
$ php builds development

The above command updates your composer.json to use CI4 `develop` branch.

And if you want to revert to released version:

Code:
$ php builds release