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? 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. 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? Link to comment https://forums.phpfreaks.com/topic/208357-fatal-error/#findComment-1088913 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.