Welcome Guest, Not a member yet? Register   Sign In
validation php error with falidation fails
#1

[eluser]allibubba[/eluser]
hello there, been working woth codeigniter for a little while, trying to convert a previous site over to run the CI framework, so far i'm loving it, it's simple and intuitive, and so far have been able to overcome most of my problems, but this one has me a but confused.


here goes, i have a form with validation in my controller. my validation works great, returns correct error messages relevant to post parameters. the problem though, when validation does fail, i get my error messages, but i also get these two injected into my page:

A PHP Error was encountered
Severity: 4096
Message: Object of class CI_DB_mysql_result could not be converted to string
Filename: libraries/Validation.php
Line Number: 195

and

A PHP Error was encountered
Severity: Notice
Message: Object of class CI_DB_mysql_result to string conversion
Filename: libraries/Validation.php
Line Number: 195

i took a look at Validation.php:
line 195 : $ex = explode('|', $rules);

but when looking back through my controller i don't see any pipe problems?

here's my validation
Code:
$data['name']                     = "required|min_length[5]|max_length[125]";
$data['emailaddress']             = "required|min_length[5]|max_length[125]|valid_email";
$data['emailaddressconfirm']    = "callback_email_check";
$data['login']                     = "required|min_length[5]|max_length[125]|callback_login_check";
$data['password']                 = "required|min_length[5]|max_length[125]";
$data['passwordconfirn']         = "callback_password_check";
$data['level']                     = "callback_level_check";

any help or ideas would be great


Messages In This Thread
validation php error with falidation fails - by El Forum - 06-14-2008, 04:29 PM
validation php error with falidation fails - by El Forum - 06-14-2008, 04:38 PM
validation php error with falidation fails - by El Forum - 06-14-2008, 05:51 PM
validation php error with falidation fails - by El Forum - 06-15-2008, 10:48 PM
validation php error with falidation fails - by El Forum - 06-15-2008, 11:52 PM
validation php error with falidation fails - by El Forum - 06-16-2008, 02:15 AM
validation php error with falidation fails - by El Forum - 06-16-2008, 08:23 AM
validation php error with falidation fails - by El Forum - 06-16-2008, 09:00 AM
validation php error with falidation fails - by El Forum - 06-16-2008, 10:31 AM
validation php error with falidation fails - by El Forum - 06-16-2008, 09:57 PM
validation php error with falidation fails - by El Forum - 06-17-2008, 02:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB