Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FirePHP not outputting anything

I have been trying to get FirePHP to work for an hour now. I have the latest firebug installed and it works fine. I also installed the FirePHP addon. Then I downloaded the library files and included them in my php file. I am sure that they are being included. Now I started FirePHP with the ob_start(); statement. Then I tried logging something with fb('Log message', FirePHP::LOG); but nothing showed up on the console. I have tried looking in the Net Panel, The Console window, had All checked, tried using the OOP method, etc. but nothing is working. I can see headers being sent just fine but I cannot see any logged messages. What gives?

like image 695
John Smith Avatar asked Mar 12 '11 21:03

John Smith


2 Answers

I have had the same problem a number of times. One of the following 'fixes' worked for me in the past.

  • Mismatch between server lib and client plugin, that is my fault.
  • Newer version of firebug being installed and not compatible with firephp plugin
  • Restarting firefox
  • Making sure that both the console and net tabs are enabled.
  • Look at the headers being sent in the inspector, make sure there are headers like X-Wf-1-1-1-2
like image 87
Juan Mendes Avatar answered Oct 20 '22 08:10

Juan Mendes


I had the same problem. Installed everything as mentionned in the installation walkthrough.

I was using Symfony 2.2. First, you must know that when using the file there is a Symfony plugin that can be found at : http://www.symfony-project.org/plugins/sfFirePHPPlugin

look at the readme to know how to install it.

Second, I also had a problem with Monolog's FirePHP handler in my config where it was bugging FirePHP Add-On in Firefox thus preventing the information from showing. I used the configuration where all the Info level errors were sent to FirePHP in config_dev file. Once removed from the configs, the previous FirePHP events started showing in the FirePHP Add-On on Firefox.

Hope this helps a couple of you guys :)

like image 27
Psykehoe Avatar answered Oct 20 '22 10:10

Psykehoe