Welcome Guest, Not a member yet? Register   Sign In
Cannot install CI4 on 2 different cpanel shared hosting servers and configs with PHP7
#5

(This post was last modified: 04-02-2017, 02:28 PM by smhnaji.)

According to https://bcit-ci.github.io/CodeIgniter4/g...ments.html that says

Quote:   This server variable can be set in your .htaccess file, or Apache config using SetEnv.


I have now commented out
Code:
SetEnv CI_ENV development
in .htaccess file and have defined the constant in my public/index.php file:

PHP Code:
define('ENVIRONMENT''development'); 


But I see the following error:


Code:
Fatal error: Default value for parameters with a class type hint can only be NULL in /home/XXX/system/Common.php on line 139


I think it shouldn't happen, should it?
Reply


Messages In This Thread
RE: Cannot install CI4 on 2 different cpanel shared hosting servers and configs with PHP7 - by smhnaji - 04-02-2017, 02:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB