CodeIgniter Forums
Error message with apache ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Error message with apache ? (/showthread.php?tid=81941)



Error message with apache ? - laurentdelacre - 05-25-2022

Hi
I'm coding a website that works locally, using "php spark serve" command.
When I upload code to my apache website server, I get the following error message:
"TypeError

Argument 2 passed to form_input() must be of the type string, null given, called in /var/www/html/loschool/vendor/codeigniter4/framework/system/Helpers/form_helper.php on line 125"
How could Apache bring a bug in Codeigniter ? I'm using CI version 4.1.5
Thanks for your help


RE: Error message with apache ? - demyr - 05-26-2022

Hi, can you provide more information such as php version you are using, coding examples of yours including view and controller? Do you get this error on the main page or on another one?


RE: Error message with apache ? - kenjis - 05-27-2022

v4.1.5 is too old and has vulnerabilities.
https://github.com/codeigniter4/CodeIgniter4/security/advisories

Upgrade to v4.1.9.