CodeIgniter Forums
Missing argument 4 for Flexi_auth::insert_user() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Missing argument 4 for Flexi_auth::insert_user() (/showthread.php?tid=58232)



Missing argument 4 for Flexi_auth::insert_user() - El Forum - 05-25-2013

[eluser]Hermann007[/eluser]
Hi,

I have just recently started using this library. When I submit a insert_user request I get this error:
-Missing argument 4 for Flexi_auth::insert_user()
And another one telling me that user_data is an undefined variable.

Now I get what it's trying to tell me but according to the documentation user_data is optional and seeing as I'm not collecting any additional data, I don't have any values for this variable. How do I get around this error?

If I submit the form with only the username, email and password, the data is populated in the tables and the email is sent but these errors still show.

Any help welcomed.



Missing argument 4 for Flexi_auth::insert_user() - El Forum - 05-26-2013

[eluser]Hermann007[/eluser]
Solved this. Thanks!!