Welcome Guest, Not a member yet? Register   Sign In
Debugbar Error CI 4.0.4
#1
Sad 

I have finished installing CI4.0.4 through the appstarter with composer and everything was fine. but when I pass the project to development, the debugbar does not appear and I see an error in the browser console. Can someone help me how to solve this error and show the debug bar? 

GET http://localhost/appstarter/index.php?debugbar net::ERR_ABORTED 404 (Not Found)

attached screenshots

Attached Files Thumbnail(s)
       
Reply
#2

You need to edit the file env in the root with index.php

Find this:

Code:
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

# CI_ENVIRONMENT = production

Then add this:

Code:
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

# CI_ENVIRONMENT = production
CI_ENVIRONMENT = development

You then need to rename the env to .env

Your error should now show.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(08-27-2020, 05:14 AM)InsiteFX Wrote: You need to edit the file env in the root with index.php

Find this:

Code:
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

# CI_ENVIRONMENT = production

Then add this:

Code:
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

# CI_ENVIRONMENT = production
CI_ENVIRONMENT = development

You then need to rename the env to .env

Your error should now show.


Hi, thanks for your answer, but I already have the environment set to development in the .env file.

#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------
CI_ENVIRONMENT = development


anything else i can do for this problem?

Attached Files Thumbnail(s)
   
Reply
#4

in your app.baseUrl, please add a port number after localhost

http://localhost:8080/appstarter

then verify in your apache httpd.conf that it is listening on port 8080
Reply




Theme © iAndrew 2016 - Forum software by © MyBB