Fatal error: Call to a member function IsConnected()
Posted: Sat Sep 16, 2006 8:02 am
I have an enhanced {edit} admin tag which allows users to do quite a few things including backup and email the database. The backup routine uses parts of the config.php (I add some bits to the bottom) for settings etc.
To do this in my PHP I use
require_once("../include.php");
global $gCms;
This worked fine until version 1.0 when I now get an error. The backup is still created and the the e-mail sent. However, I get an error at the end of it all (my code has finished..)
Fatal error: Call to a member function IsConnected() on a non-object in /lib/classes/class.global.inc.php on line 370
I guess this is coming from the require_once above or use of global $gCms?
Can anyone help here?
Russ
To do this in my PHP I use
require_once("../include.php");
global $gCms;
This worked fine until version 1.0 when I now get an error. The backup is still created and the the e-mail sent. However, I get an error at the end of it all (my code has finished..)
Fatal error: Call to a member function IsConnected() on a non-object in /lib/classes/class.global.inc.php on line 370
I guess this is coming from the require_once above or use of global $gCms?
Can anyone help here?
Russ