Welcome Guest, Not a member yet? Register   Sign In
Read this if having problems with Form_Valdation after Upgrading.
#1

[eluser]simshaun[/eluser]
I performed an upgrade from 2.6.3 to 2.7 (followed the Upgrade instructions.)

Then, I followed the tutorial in the User Guide for Form_Validation.. (copied/pasted code word for word.)

When I tried to pull up the form, I would get "Undefined function validation_errors()", or "Undefined function form_error()", or "Undefined function set_value()"...

After about pulling my hair out, I re-downloaded the CI2.7 zip file, extracted EVERYTHING except the application folder, overwriting everything, and now it works.

Hope this helps someone else that may have this problem.
#2

[eluser]PauloBr[/eluser]
CodeIgniter 1.7* Wink

So, maybe a stupid question, but, did you load the library with $this->load->library('form_validation')?
#3

[eluser]simshaun[/eluser]
Lol 1.7 yes sorry.

Yes, in the construct [Users()] function I had:
Code:
$this->load->helper('form');
$this->load->library('form_validation');

And all of the validation happened in the add() function in the controller.

Anyway, it all worked after I replaced ALL folders from CI 1.6.3 with those from CI 1.7 (except applications/).
I guess there is more to be replaced than what they say to replace in the Upgrade instructions.




Theme © iAndrew 2016 - Forum software by © MyBB