CodeIgniter Forums
Codeigniter 4 running error ??? - 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: Codeigniter 4 running error ??? (/thread-71915.html)



Codeigniter 4 running error ??? - Miller - 10-10-2018

I am testing CodeIgniter 4, but I am getting this error:

Fatal error: Default value for parameters with a class type hint can only be NULL in C:\xampp\htdocs\CodeIgniter4-develop\system\Config\DotEnv.php on line 121

What am I missing?


RE: Codeigniter 4 running error ??? - unodepiera - 10-10-2018

(10-10-2018, 01:34 AM)Miller Wrote: I am testing CodeIgniter 4, but I am getting this error:

Fatal error: Default value for parameters with a class type hint can only be NULL in C:\xampp\htdocs\CodeIgniter4-develop\system\Config\DotEnv.php on line 121

What am I missing?

Which is your PHP version?
Are you renamed env file to .env and too set the baseUrl from .env file correctly?

.env
Code:
app.baseURL = 'http://localhost:8080'



RE: Codeigniter 4 running error ??? - InsiteFX - 10-10-2018

You need to be running PHP 7.1+

Also this should be posted in the CodeIgniter 4 forum topics not here.


RE: Codeigniter 4 running error ??? - sv3tli0 - 10-10-2018

Maybe there should be fatal error / exception thrown if the PHP version is less then min requirement ...


RE: Codeigniter 4 running error ??? - InsiteFX - 10-10-2018

I think Lonnie just added that as an issue to check for the version being less than.