Where do you include FirePHP in Wordpress?

Posted by Gnee on Stack Overflow See other posts from Stack Overflow or by Gnee
Published on 2010-03-28T15:13:44Z Indexed on 2010/03/28 15:23 UTC
Read the original article Hit count: 360

Filed under:
|
|

I'm using require_once() in header.php to include the FirePHP library. In the page.php I'm doing the usual...

$firephp = FirePHP::getInstance(true);
$firephp->log($categories);

Getting these errors..

'Headers already sent....'

and

Cannot send log data to FirePHP. You must have Output Buffering enabled via ob_start() or output_buffering ini directive...

I figured the using require_once in the template's header.php (above all HTML output) would be safe (pre header output). Guess this is not the case.

Anyone have experience with this? (P.S. I tried the WP FirePHP plugin, wasn't working right)

© Stack Overflow or respective owner

Related posts about firephp

Related posts about Wordpress