Welcome Guest, Not a member yet? Register   Sign In
Message: Trying to get property of non-object
#1

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


Attached Files
.php   admin.php (Size: 1.68 KB / Downloads: 78)
.php   edit_property.php (Size: 3.61 KB / Downloads: 63)
Reply
#2

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.
Reply
#3

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?
Simpler is always better
Reply




Theme © iAndrew 2016 - Forum software by © MyBB