GaByoo7 Posted July 20, 2010 Share Posted July 20, 2010 I'm getting this error : Fatal error: Call to a member function connect() on a non-object in /home/maglac/domains/magla-city.co.cc/public_html/admin/sources/base/ipsRegistry.php on line 2248 In line 2248 is : /* Get a DB connection */ self::$dbObjects[ $key ]->connect(); And definind the $dbObjects is: /* INIT Object */ self::$dbObjects[ $key ] = $classname; self::$dbObjects[ $key ]->obj['maglac_city'] = $settings['sql_database']; self::$dbObjects[ $key ]->obj['******] = $settings['sql_user']; self::$dbObjects[ $key ]->obj['******'] = $settings['sql_pass']; self::$dbObjects[ $key ]->obj['localhost'] = $settings['sql_host']; self::$dbObjects[ $key ]->obj['utf8'] = $settings['sql_charset']; self::$dbObjects[ $key ]->obj['sql_tbl_prefix'] = $settings['sql_tbl_prefix'] ? $settings['sql_tbl_prefix'] : ''; self::$dbObjects[ $key ]->obj['force_new_connection'] = ( $key != self::$defaultKey ) ? 1 : 0; self::$dbObjects[ $key ]->obj['use_shutdown'] = IPS_USE_SHUTDOWN; Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/208357-fatal-error/ Share on other sites More sharing options...
trq Posted July 21, 2010 Share Posted July 21, 2010 Its pretty self explanatory. self::$dbObjects[ $key ] is not an object. Quote Link to comment https://forums.phpfreaks.com/topic/208357-fatal-error/#findComment-1088905 Share on other sites More sharing options...
GaByoo7 Posted July 21, 2010 Author Share Posted July 21, 2010 How to solve it? Quote Link to comment https://forums.phpfreaks.com/topic/208357-fatal-error/#findComment-1088913 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.