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

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

#2
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.
Reply

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

#4
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.
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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