CodeIgniter Forums
tool bar not showing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: tool bar not showing (/showthread.php?tid=92549)



tool bar not showing - arcmax98 - 03-04-2025

installed codeigniter 4.6 on windows computer... using php spark ...
env file
Quote:CI_ENVIRONMENT = development
app_baseURL = 'http://localhost:8080/'
config/App.php
Quote:public string $baseURL = 'http://localhost:8080/';
the actual directory is 'http://localhost:8080/ci4/' - but for some reason this works http://localhost:8080/ takes me to my index.php -> http://localhost:8080/ci4/index.php
created the files the routes ... everything seems to work
the filters has the toolbar $globals after and $required after
i just cannot see the debug bar...
what am i doing wrong ?


RE: tool bar not showing - InsiteFX - 03-05-2025

Did you rename the env file to .env ?


RE: tool bar not showing - Luiz Marin - 06-29-2025

(03-05-2025, 12:58 AM)InsiteFX Wrote: Did you rename the env file to .env ?
if you rename env to .env nothing else works.


PS C:\marin\CarolCRM> php spark cache:clear
PHP Fatal error:  Uncaught Error: Class "CodeIgniter\Exceptions\InvalidArgumentException" not found in C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php:179
Stack trace:
#0 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php(129): CodeIgniter\Config\DotEnv->sanitizeValue()
#1 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php(79): CodeIgniter\Config\DotEnv->normaliseVariable()
#2 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php(47): CodeIgniter\Config\DotEnv->parse()
#3 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Boot.php(144): CodeIgniter\Config\DotEnv->load()
#4 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Boot.php(91): CodeIgniter\Boot::loadDotEnv()
#5 C:\marin\CarolCRM\spark(87): CodeIgniter\Boot::bootSpark()
#6 {main}
  thrown in C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php on line 179

Fatal error: Uncaught Error: Class "CodeIgniter\Exceptions\InvalidArgumentException" not found in C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php:179
Stack trace:
#0 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php(129): CodeIgniter\Config\DotEnv->sanitizeValue()
#1 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php(79): CodeIgniter\Config\DotEnv->normaliseVariable()
#2 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php(47): CodeIgniter\Config\DotEnv->parse()
#3 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Boot.php(144): CodeIgniter\Config\DotEnv->load()
#4 C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Boot.php(91): CodeIgniter\Boot::loadDotEnv()
#5 C:\marin\CarolCRM\spark(87): CodeIgniter\Boot::bootSpark()
#6 {main}
  thrown in C:\marin\CarolCRM\vendor\codeigniter4\framework\system\Config\DotEnv.php on line 179


RE: tool bar not showing - Crenel - 07-01-2025

(06-29-2025, 06:09 AM)Luiz Marin Wrote: if you rename env to .env nothing else works.

However, if you do not rename it, the file does nothing. It must be named .env to be recognized, otherwise it's just another ignored text file.

If renaming it so that it is recognized causes problems, the problem is elsewhere in your installation, but I don't know CI4 enough to suggest where.


RE: tool bar not showing - InsiteFX - 07-01-2025

Hit F-12 for the Developers Tools in your web browser under console and network and see if you have any Errors!

Refresh your web browser it may be caching files.


RE: tool bar not showing - Luiz Marin - 07-03-2025

hi,
Take a look at my post. I had a problem with the toolbar too, but I was able to solve it with the tips from the professionals there. I hope it helps you.

https://forum.codeigniter.com/showthread.php?tid=93069