Some follow up troubleshooting:
Broke down the query line into two parts to find out which was failing:
31: $temp = $this->vbObj->db->query_read( "SELECT status FROM recruitment WHERE class='$query'" );
32: $result = $this->vbObj->db->fetch_array( $temp );
Failed at line 31 still (Fatal error: Call to a member function query_read() on a non-object)
So thinking vbObj is borked I put in
if ($this->vbObj == null) print ( "vbObj = null");
.. and got:
Recruitment
Druid: vbObj = null
Fatal error: Call to a member function query_read() on a non-object
So yeah I'm guessing the constructor didn't get called (?) or didn't return a valid object. So checking that I put in:
if ($this->vbObj == null) print ( "vbObj = null");
global $vbulletin;
$vbObj = $vbulletin;
if ($vbObj == null) print ( "vbObj2 = null");
if ($vbulletin == null) print ( "vbulletin = null");
.. which gives me
vbObj = null
vbObj2 = null
vbulletin = null
So the problem is with the constructor not returning a valid object. Trying to figure that one out now.
|