form validation error |
[eluser]the_unforgiven[/eluser]
Code: <?php echo validation_errors('<div class="error">', '</div>'); ?>
[eluser]Mauricio de Abreu Antunes[/eluser]
[quote author="the_unforgiven" date="1330507397"]Hi All, I'm getting this error: A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: libraries/Form_validation.php Line Number: 320 Fatal error: Call to a member function load() on a non-object in /home/site/public_html/system/libraries/Form_validation.php on line 320 Here's the controller Code: function send() I have tried commenting out line by line but still no joy then if i comment out them all it does kinda work, just wondering why this is not working can anyone shed some light on this for me? Help much appreciated.[/quote] Try to comment out $this->index() and echo 'Submitted'.
[eluser]the_unforgiven[/eluser]
By commenting out those lines will doing nothing.
[eluser]the_unforgiven[/eluser]
Full controller incl index function Code: function index() So you can see everything it worked locally but when I uploaded to server it starting throwin the error in first post out....
[eluser]Mauricio de Abreu Antunes[/eluser]
Hum, is this working in your localhost, but in your server not? There is another controller using form_validation?
[eluser]the_unforgiven[/eluser]
only this page using form_validation and like I said it worked locally, so not sure why it doesn't now on the server.
[eluser]Matalina[/eluser]
Do you have langauge files? The line throwing the error: Code: // Load the language file containing error messages
[eluser]Mauricio de Abreu Antunes[/eluser]
What CI versions are you using? It's so mad, because i don't see any errors in your code, sorry.
[eluser]the_unforgiven[/eluser]
[quote author="Matalina" date="1330535507"]Do you have langauge files? The line throwing the error: Code: // Load the language file containing error messages Yes lang files all there
[eluser]the_unforgiven[/eluser]
Yes i know i dont see any errors in my code either and done this at least 50 times in last 2 month CI version is latest 2.1.0 |
Welcome Guest, Not a member yet? Register Sign In |