CodeIgniter Forums
v4.4.8 Bug Fix Released - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: News & Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=2)
+--- Thread: v4.4.8 Bug Fix Released (/showthread.php?tid=90585)



v4.4.8 Bug Fix Released - kenjis - 04-06-2024

We have released v4.4.8 bug fix.

This would be the last version of 4.4.x and the last version to support PHP 7.4.

If you still use PHP 7.4 that is not supported by the PHP Group, we strongly recommend to upgrade to PHP 8.1 or later immediately.

Very soon we will release v4.5.0, which requires PHP 8.1 or later.

This release has one breaking change. Most users will not be affected, but please check the changelog.

ChangeLog: https://codeigniter4.github.io/userguide/changelogs/v4.4.8.html
Upgrading Guide: https://codeigniter4.github.io/userguide/installation/upgrade_448.html

Note: Unfortunately now the User Guide on the official site is not yet updated due to the deployment trouble.


RE: v4.4.8 Bug Fix Released - ozornick - 04-06-2024

Thank you, kenjis.
I just have a question about exceptions. Why do I need a separate CodeIgniter\API\ResponseTrait? I see that it is needed for the API (json, xml) But it is also used for PageNotFoundException. Therefore, the POST (application/x-www-form-urlencoded) request gives me JSON instead of HTML. 
Is there a way to fix this except as a custom handler?
See  https://github.com/codeigniter4/CodeIgniter4/blob/8fd27998d9fa73c990bc10d05964fc4ae6e92912/system/Debug/ExceptionHandler.php#L78C3-L78C82


RE: v4.4.8 Bug Fix Released - InsiteFX - 04-06-2024

Thank you CodeIgniter 4 Development Team.


RE: v4.4.8 Bug Fix Released - kenjis - 04-06-2024

@ozornick I don't get what you say.

ResponseTrait is for API response. If it is a normal HTML page, we don't need to use it.
So it is separated.

> Therefore, the POST (application/x-www-form-urlencoded) request gives me JSON instead of HTML.

Why?


RE: v4.4.8 Bug Fix Released - ozornick - 04-07-2024

I use PageNotFound for HTMX. HTML is cirrect response


RE: v4.4.8 Bug Fix Released - kenjis - 04-07-2024

@ozornick I don't know your code and situation.
So if you think there is a bug, please send a detailed bug report on GitHub.


RE: v4.4.8 Bug Fix Released - ozornick - 04-07-2024

I don't know if this is a bug.

The situation is simple: I send an HTMX POST request with Accept "form data"(Not html). For a 404 error, it produces a JSON response along with tracing.

I assumed there would be HTML. But for some reason the 404 handler has methods for the API. 
That's the question


RE: v4.4.8 Bug Fix Released - kenjis - 04-07-2024

@ozornick Okay, please go to https://forum.codeigniter.com/forumdisplay.php?fid=19
Also, can you show the request headers of the HTMX request?