Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
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();
share|improve this question
Did you move also the database? Did you changed the data to access the database accordingly? – Aurelio De Rosa Oct 27 '12 at 17:41

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.

share|improve this answer
posted above in first post – Rachel Sparks Oct 27 '12 at 18:06
Please check the DB settings (2nd link in my first post) – FredFloete Oct 27 '12 at 18:24
Those are set in a config file right? – Rachel Sparks Oct 27 '12 at 18:27
Yes, the config of this component. For all possible settings have a look here: jfusion.org/wiki/doku.php?id=smf:configuring That should sound familiar to you. – FredFloete Oct 27 '12 at 18:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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