1

I have the FirePHP FireFox extionsion installed and it appears to be working. I also have take the sample code to test, but I am not getting a response.

<?php
require('FirePHPCore/fb.php');
ob_start();

$firephp = FirePHP::getInstance(true);
$var = array('i'=>10, 'j'=>20);
$firephp->log($var, 'Iterators');

I don't see any extra headers in the Firebug NET tab - so I'm wondering if there are special instructions for configuring FirePHP when using PHP FPM or through Nginx.

PHP Version 5.3.6-13ubuntu3.2

Update: Server Response Headers

Server      nginx/1.0.5
Date        Mon, 19 Dec 2011 19:12:16 GMT
Content-Type    text/html
Transfer-Encoding   chunked
Connection      keep-alive
X-Powered-By    PHP/5.3.6-13ubuntu3.3
Content-Encoding    gzip
Request Headersview source
Host        localhost
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
  • Have you checked out this link? http://serverfault.com/a/201851 – Jim Dec 12 '11 at 20:20
  • @BradFJacobs, thanks I just added those lines and restarted but no dice. I also am not having any errors or 502 messages like mentioned there. – Xeoncross Dec 12 '11 at 20:35
  • Ah gotcha. Figured it was worth a shot. – Jim Dec 12 '11 at 20:37
  • And are you sure it is not FireFox/FirePHP query fault? Can you see modified `User-Agent` header in your XHR or additional `X-FirePHP-Version` header? – dev-null-dweller Dec 15 '11 at 23:05
  • Can you set headers in php and see them in the firebug response? If you can't then something is wrong with your nginx configuration – useful Dec 16 '11 at 21:41

1 Answers1

0

You can find troubleshooting instructions for a FirePHP setup here: http://sourcemint.com/github.com/firephp/firephp/1/-docs/Troubleshooting

You need to make sure FirePHP identifies itself in the request headers which will only happen when the Firebug Console and Net panels are enabled.

I am assuming FirePHP is identifying itself.

With a proxy such as nginx involved problems may arise if headers are not being forwarded as-is. Nginx will fail if FirePHP sends too much data in the headers. This limit can be increased via nginx configuration. This should not be a problem with the little data you are sending in the example though.

Short from going through nginx debug logs you could try FirePHP 1.0 + DeveoperCompanion which sends a secondary request to fetch the data vs sending all data in headers.

cadorn
  • 369
  • 1
  • 7
  • I added the headers from the PHP script I used. As you can see there is no mention of FirePHP which makes me think that PHP-FPM or nginx are ignoring or overwriting the response headers. I have the firebug net and console panels working (which is where I got these). – Xeoncross Dec 19 '11 at 19:14
  • Do you see FirePHP identifying itself in the `User-Agent` or `X-FirePHP-Version` **request** header? – cadorn Dec 28 '11 at 22:32