csv_from_result: You must submit a valid result object |
[eluser]EEssam[/eluser]
Hi, I'm getting the following error message: You must submit a valid result object Why trying to do: Code: $this->load->dbutil(); I tried the following and the rows are being correctly printed to screen: Code: foreach ($query->result() as $row) Please let me know what's wrong. Thanks.
[eluser]EEssam[/eluser]
OK, in DB_utility.php I changed this: [code] if ( ! is_object($query) OR ! method_exists($query, 'field_names')) { show_error('You must submit a valid result object'); }[code] To this: [code] if ( ! is_object($query)) { show_error('You must submit a valid result object'); }[code] And it's working now. Any idea what's wrong and if my solution is good? I'm sure it's not
[eluser]xzela[/eluser]
hey dude, if you're interested in the actual cause of this error check out this post: fix for 1.7 bug: http://ellislab.com/forums/viewthread/95597/
|
Welcome Guest, Not a member yet? Register Sign In |