Debugbar not showing up |
Hi,
i got this porject from a collegue who quit and did not leave and documentaiton on the project i tried using the debugbar to understand the code better but its not showing up at all even when doing all the configuraiton required this is the configuration and some reponse in the network tab from the browser .htaccess Code: # Disable directory browsing PHP Code: app/config/Filters.php .env Code: CI_ENVIRONMENT = development
04-08-2025, 10:38 PM
(This post was last modified: 04-09-2025, 03:55 AM by InsiteFX. Edit Reason: New Update 04-09-2025 )
Did you edit the env file to add the below and save it like env to .env ?
Ok, I just found out that the DebugBar will not show up on Windows 11 unless the baseURL is also set in the .env file. Code: #-------------------------------------------------------------------- What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(04-08-2025, 10:38 PM)InsiteFX Wrote: Did you edit the env file to add the below and save it like env to .env ?yes i did that as you can see this is my .env file configuration Code: CI_ENVIRONMENT = development
Did you try changing 27.0.0.1 to localhost ?
Also the main GitHub CodeIgniter ToolBar was updated yesterday, try downloading that and see if it fixes your problem. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hey, can you confirm this is the value of app.baseURL
app.baseURL = http://127.0.0.1/MDN3/ browser network tab 1/bootstrap.min.css 200 127.0.0.1 stylesheet 2/MDN3?debugbar_time=1744112539.451802 301 127.0.0.1 xhr / Redirect This looks wrong.
There should be quotes around your base_url
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
04-12-2025, 12:43 AM
(This post was last modified: 04-12-2025, 12:44 AM by captain-sensible. Edit Reason: the usual suspects )
Also check in the head of views that there is nothing like :
Code: <meta http-equiv="Content-Security-Policy" content=" default-src 'none'; form-action 'self'; frame-src 'self' ; ; font-src 'self' maxcdn.bootstrapcdn.com ; img-src 'self'; script-src 'self' http " /> Content Security Policy via meta in head can restrict images , js , style sheets from both local and remote sources if not tweked finely |
Welcome Guest, Not a member yet? Register Sign In |