Zend Framework 1.7

13 messages Options
Embed this post
Permalink
Maxence () Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
Does FirePHP work with version 1.7 of the Zend Framework ? I'm not able to make it work.
Xooby () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
I concur.  I cannot get it working either.

at line 319 of Zend_Wildfire_Plugin_FirePhp:
        if (!self::$_instance->_channel->isReady()) {
            return false;
        }

it returns false (according to Zend Studio debugger) and presumably therefore does not execute the rest of the code to create output to Firebug.

The code I am using is:

//in my bootstrap
$writer = new Zend_Log_Writer_Firebug();
Zend_Registry::set('firebuglog',new Zend_Log($writer));

//in my controller
    Zend_Registry::get('firebuglog')->log('This is a log message!', Zend_Log::INFO);

It was by stepping through the call to the logger that I found that the 'channel' was not ready.

Any help appreciated.

Christoph Dorn () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
Do you have the FirePHP extension installed and the firebug console and net panels enabled?
Xooby () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
yes to both questions and when I visited one of the pages on the firephp website I got output into the console.

FYI, both my server and workstation are Linux OS based (Ubuntu server and Fedora workstation) in case it matters.
Christoph Dorn () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
Do your request headers include "FirePHP/0.2.1" at the end of the User-Agent string?
Xooby () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
yes.  it reads:

User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc9 Firefox/3.0.4 FirePHP/0.2.1
Christoph Dorn () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
Can you send me a test case?
Xooby () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
How do you want me to do that?  the server I am using is private and the application is massive!!  Is there a stripped down app that I can download and run to test if things are working correctly and therefore eliminate any obvious errors on my part?
Christoph Dorn () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
I would need you to rip out everything but the essentials and send the files to me.

I have tested FirePHP with 1.7 and it works for me.
Xooby () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
Christoph, I really appreciate you trying to help.  I'll try and think of a way to strip out things.  In the meantime is there a test app anywhere that I can download and try?
Christoph Dorn () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
ZF comes with a bunch of demos. You can find a demo app for FirePHP /demos/Zend/Wildfire/
Let me know if this demo works for you.
Maxence () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
In reply to this post by Christoph Dorn
Christoph Dorn wrote:
Do your request headers include "FirePHP/0.2.1" at the end of the User-Agent string?
I've Firebug, Net panel enabled, but no "FirePHP/0.2.1" in my User-Agent string when I connect to localhost

UPDATE : Now it's work. Don't know why...
Nicolas VUILLEMENOT () Re: Zend Framework 1.7
Reply Threaded More More options
Print post
Permalink
Having the same problem (couldn't get any message in the firebug console eventhough i seems doing everything fine in my php code), i went through this discussion, and finally found the problem.
I my case, i enabled console and net panel in firePHP because everybody said to be careful on that, but one thing that was not enabled was firePHP itself, on firefox, menu->tools->FirePHP->FirePHP enabled must be checked.
Hope it will help someone.