Welcome Guest, Not a member yet? Register   Sign In
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

(This post was last modified: 10-10-2018, 02:25 AM by unodepiera.)

(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

(This post was last modified: 10-10-2018, 03:18 AM by InsiteFX.)

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




Theme © iAndrew 2016 - Forum software by © MyBB