CodeIgniter Forums
FrameworkException::forEmptyBaseURL renders empty page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: FrameworkException::forEmptyBaseURL renders empty page (/thread-71767.html)



FrameworkException::forEmptyBaseURL renders empty page - sv3tli0 - 09-20-2018

Hi

By default baseURL  is required either at .env or at the configs.
How ever if it is empty there is white empty page displayed and in some situations this is an problem (until you find out what the hell is happening).

FrameworkException::forEmptyBaseURL is triggered but  when I open browser it is just empty page :/

Perhaps some exception handler is not loaded at the moment when IncomeRequest is checking for this base ur?


RE: FrameworkException::forEmptyBaseURL renders empty page - kilishan - 09-21-2018

Sounds like error reporting is off for you setup, or environment != development?

I haven't dowloaded a fresh install for a while, I should do that. Smile


RE: FrameworkException::forEmptyBaseURL renders empty page - sv3tli0 - 09-21-2018

(09-21-2018, 06:18 AM)kilishan Wrote: Sounds like error reporting is off for you setup, or environment != development?

I haven't dowloaded a fresh install for a while, I should do that. Smile

Environment is development. reports are off.
How ever even in prod with no reports, empty white page is not very sweet, sounds as "blue screen of death" but it is white Smile

In the normal case this should be 500 error (server misconfigured) in our case it's the System..

P.S. New instance comes without baseURL and in prod mode by default, so it is white screen for welcome...