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


This is my code.

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

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


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.

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

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