• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter 4 running error ???

#1
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?
Reply

#2
(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'
Reply

#3
You need to be running PHP 7.1+

Also this should be posted in the CodeIgniter 4 forum topics not here.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#4
Maybe there should be fatal error / exception thrown if the PHP version is less then min requirement ...
Best VPS Hosting : Digital Ocean
Reply

#5
I think Lonnie just added that as an issue to check for the version being less than.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.