FirePHP not working ...

652 views
Skip to first unread message

latapaka

unread,
Sep 4, 2008, 10:14:19 AM9/4/08
to FirePHP
Hi

I have Net panel in Firebug enabled and have installed
FirePHPCore to the appropriate location..

When I type the following code in simple test.php, nothing
shows up, neither in the browser, nor in the console... (error also
doesn't show up in the browser either which means i have copied
FirePHP to correct place as display_errors is set to On in php.ini )

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

The documentation says, it should print "hello" in the
console. But it doesn't at all.

I am using Firefox 3.0.1, Firebug 1.2.0 and at the server end, it
is running PHP 5.2.6 and FirePHPCore-0.1.2


I am confused, what is wrong going on ??


Christoph Dorn

unread,
Sep 4, 2008, 11:43:52 AM9/4/08
to FirePHP
Are you using FirePHP 0.1.2?
Are the FirePHP headers being sent? What are they?

Do the messages how up in the console when you go to http://www.firephp.org/?

Christioh

latapaka

unread,
Sep 4, 2008, 12:17:07 PM9/4/08
to FirePHP
ohh... It worked now..I forgot to install FirePHP plugin for
Firefox...

well, i am confused with some other thing..

is not it supposed to show the error message on the Console rather
than in the browser when i make mistakes in php code ? If so, when i
type the following code, why is it still showing up in the browser ?

<?php
require('FirePHPCore/fb.php');
ob_start();
$mystring = "How are you ;
echo $mystring;
?>


I think i am missing something....



On Sep 4, 11:43 am, Christoph Dorn <christ...@christophdorn.com>
wrote:
> Are you using FirePHP 0.1.2?
> Are the FirePHP headers being sent? What are they?
>
> Do the messages how up in the console when you go tohttp://www.firephp.org/?
>
> Christioh
>
> On Sep 4, 7:14 am, latapaka <bina...@gmail.com> wrote:
>
>
>
> > Hi
>
> >        I have Net panel in Firebug enabled and have installed
> > FirePHPCore to the appropriate location..
>
> >        When I type the following code in simple test.php, nothing
> > shows up, neither in the browser, nor in the console... (error also
> > doesn't show up in the browser either which means i have copied
> > FirePHP to correct place as display_errors is set to On in php.ini )
>
> > <?php
> > require('FirePHPCore/fb.php');
> > ob_start();
> > fb('Hello');
> > ?>
>
> >         The documentation says, it should print "hello" in the
> > console. But it doesn't at all.
>
> >     I am using Firefox 3.0.1, Firebug 1.2.0 and at the server end, it
> > is running PHP 5.2.6 and FirePHPCore-0.1.2
>
> >     I am confused, what is wrong going on ??- Hide quoted text -
>
> - Show quoted text -

Christoph Dorn

unread,
Sep 4, 2008, 12:35:00 PM9/4/08
to FirePHP
You need to tell PHP to send errors to FirePHP.

Take a look at this error handler: http://arbit.pl/2008/06/09/ultimate-error-handler-with-use-of-firephp/

Christoph

Alberto

unread,
Sep 4, 2008, 1:07:10 PM9/4/08
to FirePHP
It's not working for me either, this is what I have:

* Mac Os X Leopard (maybe this is not relevant but just in case)
* FF 3.0.1
* Fb 1.2.0
* Fphp 0.1.2
* php.ini ==> output_buffering = On
* test.php
<?php
require(/FirePHPCore/FirePHP.class.php');

$firephp = FirePHP::getInstance(true);

$firephp->fb('Log message');
$firephp->fb('Info message', FirePHP::INFO);
$firephp->fb('Warn message', FirePHP::WARN);
$firephp->fb('Error message',FirePHP::ERROR);
?>
test

I also try the following code in test.php but it didn't work either:
<?php
require('FirePHPCore/fb.php');
ob_start();
fb('Hello World');
?>
test

I have restarted Apache, and also the browser, and I don't know if the
FirePHP headers being sent because I don't know how to check this.

Any idea why this is not working?

Thanks

latapaka

unread,
Sep 4, 2008, 1:28:34 PM9/4/08
to FirePHP
hmm...
i went though it, but couldn't understand much as i am new to
this...

is not the piece of code that i mentioned earlier supposed to show up
error message in console ?

<?php
require('FirePHPCore/fb.php');
ob_start();
$mystring = "How are you ;
echo $mystring;
?>




On Sep 4, 12:35 pm, Christoph Dorn <christ...@christophdorn.com>
wrote:

Christoph Dorn

unread,
Sep 6, 2008, 2:57:04 AM9/6/08
to FirePHP
Please take a look at this troubleshooting guide. It shows you how to
check for the headers. If this does not solve your problem, please
post a new help message in the new forum.

http://n2.nabble.com/No-messages-in-Firebug-Console-td842774ef842658.html

Thanks

Christoph

Christoph Dorn

unread,
Sep 6, 2008, 3:03:55 AM9/6/08
to FirePHP
No, as I mentioned you need to tell PHP to send errors to FirePHP.
Also, the code you are referring to contains a parser error which the
Zend Engine throws without ever executing the script.

If you want to send all PHP errors to FirePHP take a look at:
http://ca.php.net/manual/en/function.set-error-handler.php

Christoph

Alberto

unread,
Sep 8, 2008, 12:00:34 PM9/8/08
to FirePHP
Thanks Christoph,

Is working now. The problem was that Firebug Net wasn't enabled, I
wish I could see this troubleshooting guide before.

On Sep 5, 11:57 pm, Christoph Dorn <christ...@christophdorn.com>
wrote:
> Please take a look at this troubleshooting guide. It shows you how to
> check for the headers. If this does not solve your problem, please
> post a new help message in the new forum.
>
> http://n2.nabble.com/No-messages-in-Firebug-Console-td842774ef842658....

Christoph Dorn

unread,
Sep 8, 2008, 12:31:14 PM9/8/08
to FirePHP
The Guide is new since I setup the new support forums at http://forum.firephp.org/
only a few days ago.

Good to hear that it's working for you now.

Christoph

zhang shijie

unread,
Sep 10, 2008, 3:56:56 AM9/10/08
to Fir...@googlegroups.com
is there any datasize limit in output header response ?
 
2k?

Christoph Dorn

unread,
Sep 10, 2008, 6:00:00 AM9/10/08
to FirePHP
Technically no, but practically yes.

Please see: http://n2.nabble.com/Using-FirePHP-slows-the-php-process-down---tt990790ef842658.html

Christoph



On Sep 10, 12:56 am, "zhang shijie" <zhangshijie...@gmail.com> wrote:
> is there any datasize limit in output header response ?
>
> 2k?
>
> On Tue, Sep 9, 2008 at 12:31 AM, Christoph Dorn <christ...@christophdorn.com
Reply all
Reply to author
Forward
0 new messages