Welcome Guest, Not a member yet? Register   Sign In
Invalid argument for foreach
#4

(01-13-2018, 12:24 AM)nbbeliard Wrote: Hi and TY for your answer.

It's the same server, my provider lets us choose PHP version we want. I have a "selector" in cPanel. So i'm absolutly sure it's the single difference between the 2 tests.

I understand why you move my post but i repeat my problem isn't the foreach warning... I have solved it alone. I never met this problem before because i've never got error with uploading before... So this condition never be used.

The main question is : why upload function failed with PHP 7.2 when it perfectly works with PHP 7.1 ? Permissions are same... and no one other parameter is different. I have no one PHP error... and i have no one $this->upload->display_errors(); return... hum...

So it's not a problem for me because i can stay with PHP 7.1... I just thought that it could be usefull for you to know this difficulty exists as exemple of PHP version changing complications.

Maybe I'll try to upload codeigniter to 3.1.6 but I have to study the update procedure first. If I do, I will give you news about new PHP 7.2 try.

upload work with php 7.2. Check the php error log
Reply


Messages In This Thread
Invalid argument for foreach - by nbbeliard - 01-12-2018, 11:37 PM
RE: Invalid argument for foreach - by Paradinight - 01-13-2018, 12:07 AM
RE: Invalid argument for foreach - by nbbeliard - 01-13-2018, 12:24 AM
RE: Invalid argument for foreach - by Paradinight - 01-13-2018, 02:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB