Jump to content

Fatal error


GaByoo7

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.