PHP Fatal error: Call to a member function setQuery() on a non-object in /home/josh/public_html/administrator/components/com_jfusion/plugins/phpbb3/forum.php on line 226

Just moved over to a new server. Anyone have ideas as to what is wrong?

Is this a database issue?

line 226:

 //get permissions for all forums in case more than one module/plugin is present with different settings
        $db = & JFusionFactory::getDatabase($this->getJname());
        $query = "SELECT forum_id FROM #__forums WHERE forum_type = 1 ORDER BY left_id";
        $db->setQuery($query); //226
        $forumids = $db->loadResultArray();
  • Did you move also the database? Did you changed the data to access the database accordingly? Oct 27, 2012 at 17:41

1 Answer 1


Please post the code which causes this error (line 226).

To try a shot in the dark you can check the cURL settings See: Plugin Config in the JFusion Documentation Wiki.

It is also possible that you can not access the database or the database settings are incorrect.

See this screenshot about the database configuration in the JFusion Documentation Wiki.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.