codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.3k stars 1.89k forks source link

Bug: [DebugBar] Hot Reloading does not work #7878

Open ALTITUDE-DEV-FR opened 1 year ago

ALTITUDE-DEV-FR commented 1 year ago

PHP Version

8.2

CodeIgniter4 Version

4.4.0

CodeIgniter4 Installation Method

Composer (as dependency to an existing project)

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MYSQL

What happened?

Hello, In my side the reload hot-bar feature is not working in 4.4.0, the update is working fine in my 7 websites using CI 4.4.0, the reload hot bar not working for all.

This is a error message: "EventSource's response has a MIME type ('text/html") that is not "text/event-stream". Aborting the connection.

Screen : https://imgur.com/a/418byfj 7jIuewf

Steps to Reproduce

Just click in the hot bar

Expected Output

n:a

Anything else?

Screen : https://imgur.com/a/418byfj

kenjis commented 1 year ago

Thank you for reporting. What 's your browser and its version?

sanchawebo commented 1 year ago

I have the same Problem. Chrome 116

ALTITUDE-DEV-FR commented 1 year ago

Hi, For my part:

BRAVE [Version 1.57.53 Chromium: 116.0.5845.114 (Build officiel) (64 bits)]

Same on Google Chrome and Edge or Mozilla.

kenjis commented 1 year ago

Chrome 116 and php spark serve works fine.

neznaika0 commented 1 year ago

Do you like double slash? http://localhost:3000//__hot-reload

On the question: Try disabling your filters. And open a static page. Probably filters intercept the request from Hot Reload

ALTITUDE-DEV-FR commented 1 year ago

Hello is use : http://localhost:8080/fr with /fr /en and more, the url not working with hot reload. Same problem with blank page without filters.

nerozero commented 6 months ago

Confirm from my side as well, Freebsd/debian, php8.2, mysql, firefox

yanyiik99 commented 1 month ago

it's solve for this issue ? I don't find for the solution

kenjis commented 1 month ago

How do you reproduce the issue?