http://wordpress.org/extend/plugins/wp-firephp/
I’m simply supposed to call fb('Error message','Lable')
but it doesn’t work all the time. I can’t figure out when and where the relevant files are being included and classes defined in order to make the call to the said method/function.
For example it doesn’t work even when I call fb()
from wp-contentpluginswp-firephpFirePHPCorefb.php
itself and open up http://localhost/wordpress
(maybe because the file never gets included) but it works on http://localhost/wordpress/wp-admin
. Does that mean wp-firephp
plugin only works for /wp-admin
and related pages? Because I wanted to use its functionality on non-admin related pages like /footer.php
and such. Am I doing it wrong?
I gave up on using the plugin and use FirePHP straight as a
mu-plugin
:And
firebug.php
file consists of:Then I call it from anywhere (theme, plugin, core) using the function:
logit( $var_to_debug, 'The var contains:' );
I’ve had rotten luck and performance with the different FirePHP pluings except for the ‘Yet Another Logger’ one, but have to admit I didn’t look at this one. Eventually I simply setup PEAR on my dev boxes and installed FirePHP.
or
The above code is from the wp-config.php file of one of my development sites. It shows the two different methods of invoking FirePHP. Remember use one or the other, not both.
You call FirePHP by different methods depending upon how you invoke it.
For the Object Oriented API:
For the Procedural API:
So after a slightly off topic answer:
Double check the documentation for the plugin and make sure you’re not supposed to be using the procedural API style call. A procedural call will not work with the object oriented API and vice versa.
Another option would be to try the ‘Yet Another Logger’ plugin.