Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 (/showthread.php?tid=69544) |
Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - Php - 12-12-2017 Today I am trying to install Codeigniter 4 but i got fatal error. Any solutions for this error. Fatal error: Default value for parameters with a class type hint can only be NULL in E:\wamp64\www\codeIgniter4\system\Common.php on line 142 App.php Code: public $baseURL = 'http://codeigniter4.local'; Code: public $indexPage = ''; RE: Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - InsiteFX - 12-12-2017 Are you running PHP 7+ ? Also your base_url needs an ending / slash RE: Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - Php - 12-12-2017 (12-12-2017, 04:25 AM)InsiteFX Wrote: Are you running PHP 7+ ? I added '/' after base_url. But again same error but I am using old PHP. Apache Version: 2.4.17 PHP Version: 5.6.16 Server Software: Apache/2.4.17 (Win64) PHP/5.6.16 - Port defined for Apache: 80 MySQL Version: 5.7.9 - Port defined for MySQL: 3306 RE: Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - dave friend - 12-12-2017 PHP version 7.0.15 or newer is required, with the intl extension installed. (Documentation) RE: Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - InsiteFX - 12-12-2017 You need to install PHP 7.+.+ for CodeIgniter 4 it is a requirement. RE: Fatal error:Default value for parameters with a class type hint can only be NULL, CI4 - Php - 12-12-2017 Thanks. |