so I searched the group, and found a simliar error, but I think different circumstance.
I have the following instance of FirePHP within the constructor of an output class that I use
// setup FirePHP output
define('INSIGHT_CONFIG_PATH', FS_ROOT.'includes/FirePHP/package.json');
require_once(FS_ROOT.'includes/FirePHP/FirePHP/Init.php');
$inspector = FirePHP::to('page');
self::$FirePHP = $inspector->console();
further logging down the page runs just fine
if (TEST_MODE) {
self::$FirePHP->label('Browser_info')->info(self::$browser);
self::$FirePHP->label('$_SESSION')->info($_SESSION);
self::$FirePHP->label('$_GET')->info($_GET);
self::$FirePHP->label('$_POST')->info($_POST);
self::$FirePHP->label('$_COOKIE')->info($_COOKIE);
}
If I add a simple test log, it also works fine
$foo = 'foo';self::$FirePHP->group('startup')->label('foo')->info($foo);
however if I take this same test line, and put it inside a separate function
public static function log() {
$foo = 'foo';self::$FirePHP->group('startup')->label('foo')->info($foo);
}
and then perform an
output::foo();
Not really sure how Developer Companion is processing the difference in calls, but i'd like to be able to call it from within my own logging function. (i use my own wrapper log function so I can divert to a file/email depending on teh circumstances)
any idea why firephp calls would be causing the hiccup when called from a separate function?