Message: Trying to get property of non-object - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Message: Trying to get property of non-object (/showthread.php?tid=70600) |
Message: Trying to get property of non-object - Pankaj Kumar - 05-02-2018 Hello Friends, I receive this error so please help me to solve this. A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: admin/edit_property.php Line Number: 23 Backtrace: File: C:\wamp64\www\ci-project\application\views\admin\edit_property.php Line: 23 Function: _error_handler File: C:\wamp64\www\ci-project\application\controllers\admin.php Line: 44 Function: view File: C:\wamp64\www\ci-project\index.php Line: 315 Function: require_once RE: Message: Trying to get property of non-object - dave friend - 05-02-2018 Please don't make us download files to see your code. It is easily placed in you question. You only need include relevant lines, in this case probably the method containing line 23 of edit_property.php. Thanks. RE: Message: Trying to get property of non-object - donpwinston - 05-02-2018 Looks like the $property var is not an object. Is it an array? You don't have the code for your model. $property = $this->property->find_property($properties_id); //what's this? |