1
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();
1
  • Did you move also the database? Did you changed the data to access the database accordingly? Commented Oct 27, 2012 at 17:41

1 Answer 1

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.

4
  • posted above in first post Commented Oct 27, 2012 at 18:06
  • Please check the DB settings (2nd link in my first post)
    – FredFloete
    Commented Oct 27, 2012 at 18:24
  • Those are set in a config file right? Commented Oct 27, 2012 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
    Commented Oct 27, 2012 at 18:29

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.