ZF2-454: Fatal error: Call to a member function getEnabled() on a non-object in \vendor\ZF2\library\Zend\Log\Writer\FirePhp.php on line 53

Issue Type: Bug Created: 2012-08-08T10:18:02.000+0000 Last Updated: 2012-10-08T20:16:35.000+0000 Status: Closed Fix version(s): Reporter: coud vanrm (coudvanrm) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Log

  • zend\log

Related issues: Attachments:


This is my code.

<pre class="highlight">

$writer = new \Zend\Log\Writer\FirePhp();
$logger = new \Zend\Log\Logger();

$logger->log(1, 'test');


Posted by Ludwig Ruderstaller (rufinus) on 2012-09-21T22:37:46.000+0000

you have to add the firephpcore class from pear. you can do this by extending the composer.json and add it as a requirement.

this should really be noted in the reference guide.

<pre class="highlight">
    "repositories": [{
            "type" : "pear",
            "url" : "",
            "vendor-alias" : "firephp"
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*",
        "firephp/FirePHPCore" : "*"

Posted by Ludwig Ruderstaller (rufinus) on 2012-09-21T23:10:09.000+0000


Posted by Ralph Schindler (ralph) on 2012-10-08T20:16:35.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.