Welcome Guest, Not a member yet? Register   Sign In
Type hint issue

(This post was last modified: 10-29-2018, 06:04 PM by scalla.)

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

Theme © iAndrew 2016 - Forum software by © MyBB