I just had this problem
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Rel_ft::$db
Filename: fieldtypes/ft.rel.php
Line Number: 202
Fatal error: Call to a member function select() on a non-object in [path to my system folder]/expressionengine/fieldtypes/ft.rel.php on line 202
I see on the forum that it is fixed by changing the following lines on System Folder > expressionengine > fieldtypes > ft.rel.php Look around line number 202 for the following.
HOW DO YOU GET TO WHERE THIS CODE IS TO CHANGE IT? I’M NEW TO THIS.
From: $this->db->select(‘field_id_’.$data[‘field_id’]); $this->db->where(‘field_id_’.$data[‘field_id’].’ !=’, ‘0’); $rquery = $this->db->get(‘channel_data’);
To: $this->EE->db->select(‘field_id_’.$data[‘field_id’]); $this->EE->db->where(‘field_id_’.$data[‘field_id’].’ !=’, ‘0’); $rquery = $this->EE->db->get(‘channel
THANKS SO MUCH FOR YOUR TIME