Object of class stdClass could not be converted to string |
[eluser]anpmtp[/eluser]
got me an error in my site... Object of class stdClass could not be converted to string error occured when loading my page this error occured in _serialize($data) function session.php library. how can i solve ir
[eluser]pickupman[/eluser]
Could you post some code? This type of error maybe from a library not being loaded, or you are passing the wrong data type to a function.
[eluser]Unknown[/eluser]
array([0]=> stdClass Object ([id]=>1 [title]=>sabbir [content]=>My name is sabbir [date]=>2011-01-29)) A php error was encountered massage: Object of class stdClass could not be converted to string Code: controller: $data['query'] = $this->blog_model->get_blog(); $this->load->view('blogview',$data); view: <?php foreach($query as $value) echo $value; endforeach; ?> there is no fetching problem.first line indicate that.
[eluser]Cristian Gilè[/eluser]
Code: <?php Cristian Gilè |
Welcome Guest, Not a member yet? Register Sign In |