-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug toolbar #834
Comments
I'll try to look into that tonight. I know that it works on a default CI4 install. However, I did notice late last night that it didn't work on one of my test sites, but hadn't had a chance to determine why, yet. That gives me something to look into though, if no one else fixes it before I can :) Thanks! |
Figured out why - since you've got a test application I'm assuming your application/Config folders were not being updated, just the system directory. There are a couple of big changes to the way the toolbar works that require you do a couple of things in your application folder to migrate to the latest change:
Then you should be good to go. |
Yes, I forgot to update the https://github.com/bcit-ci/CodeIgniter4/blob/develop/application/Filters/DebugToolbar.php file. |
But now the rest of my JS code doesn't work anymore because of $script = PHP_EOL
. '<script type="text/javascript" id="debugbar_loader" '
. 'data-time="' . $time . '" '
. 'src="' . rtrim(site_url(), '/') . '?debugbar"></script>'
. PHP_EOL; |
What problems are you seeing because of that? From what I understand an "id" attribute is valid on all html5 pages. Are you seeing issues validating against HTML4? |
Well, I having am issue related here. The toolbar is not loading in two ways: 1 - /Accessing http://localhost:8080 the toolbar do not appears. I followed the script url To solve this and load the js page I removed the rtrim() to just The toolbarloader also was not loading the toolbar html, then removing other rtrim() to just My doubt is why to use the rtrim()? Without the / after index.php the http get method is not working here. 2 - /index.phpAlso if I access http://localhost:8080/index.php the toolbar do not appears and this occurs for some strange reason that the Yes, I am running the Had you some issue related or is it occurring only with me? If it is a general issue, I believe that the rtrim()'s is not necessary, to begin... |
Both rtrim were put because if $indexPage = index.php in App.php the toolbar would be loaded from |
Hi, @gustavojm . Good evening. Not redirect here: |
Thanks @natanfelles I guess that the rtrims can be removed then, and I'll try to figure out what's wrong in my setup. If you can, create the PR. |
So my pages are in html5, but the problem is that because of this id="debugbar_loader" the rest of my JS scripts don't work anymore. On the other hand, the debug toolbar works without worries. And my problem has nothing to do with rtrims, because with or without it there is no difference. |
Here has difference: Look that the xhr is not loaded. It occurs because the Of course this could not have difference with or without a @deathart Is the id |
So no it's not duplicating, I have no info in the console logs and yes all this load correctly it's for that I don't understand at all. Edit : |
hey, same problem here. some js interactions doesnt work anymore ( onclick still get triggered ) tested on all browsers ( firefox, chrome, edge ) with same result, so guess its no js implementation bug i will have a closer look tomorrow |
I confirm that https://github.com/bcit-ci/CodeIgniter4/pull/843/files solves my problem. |
@deathart if you want, you can close this issue. My "related issue" is solved too. :) |
Hello,
Following the change felt on the debug toolbar, the javascript side no longer works.
I started by checking if there were any JS errors on the console, but no errors!
I then tried to put back
At the end of the file "tootbar. tpl. php" and everything works again!
Knowing that I have the last commit!
So the problem is me? or is this piece of code really missing?
Sorry for my English.
The text was updated successfully, but these errors were encountered: