DB error: You must set use the "set" method... |
[eluser]butthead[/eluser]
Hello, I'm almost finishing my first big project in CI. One thing which was revealed during testing is the database error as in the topic: Quote:You must set use the "set" method to update an entry.It arrives only when updating or inserting a row into users, using FAL. More precisely, when the "email" field is empty. I've already set correct rules (I mean I hope they are correct...): Code: $rules['email'] = 'trim|valid_email|xss_clean|email_backend_duplicate_check';
[eluser]xwero[/eluser]
[quote author="butthead" date="1203624498"]Hello, I'm almost finishing my first big project in CI. One thing which was revealed during testing is the database error as in the topic: Quote:You must set use the "set" method to update an entry.It arrives only when updating or inserting a row into users, using FAL. More precisely, when the "email" field is empty. I've already set correct rules (I mean I hope they are correct...): Code: $rules['email'] = 'trim|valid_email|xss_clean|email_backend_duplicate_check'; Can you show your email_backend_duplicate_check code? Putting it like that in the rules will cause an error too. You have to prefix your custom functions with callback.
[eluser]butthead[/eluser]
Thanks for quick reply. I'm using the original code taken from FreakAuth Light FAL_validation.php: Code: function email_backend_duplicate_check($value)
[eluser]xwero[/eluser]
I see nothing i this function that builds a sql statement. The problem is located in the UserModel->getUsers i think. To get an answer the quickest i suggest you should ask the question in the FreakAuth Light thread. Those guys are very helpful.
[eluser]Grahack[/eluser]
I answered in this post. There a line like Code: if (($values['user']['user_name'] != false) && ($values['user']['email'] != false)) |
Welcome Guest, Not a member yet? Register Sign In |