• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type hint issue

i run codeigniter4 on php 7.1, yet i get this warning "Default value for parameters with a class type hint can only be NULL in /home/redEye/system/Common.php on line 98" when running cron job.
the stated line is the config function.

Are you sure you are running PHP7+? There was an earlier thread on our forum (https://forum.codeigniter.com/thread-69544.html) and several on stackoverflow ... they all seemed to boil down to installing PHP 7.1", possibly with a composer update when done.

@ciadmin my local server runs properly on 7.2 my live server runs 7.1.

Hmm. Something somewhere doesn't think so Sad
Is your cron script run with php 7 too?
I am not sure what else to suggest.

@ciadmin all on same server. sat on it all night, with no drop of clue

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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