Issues

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:

Description

This is my code.

<pre class="highlight">

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

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

Comments

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" : "pear.firephp.org",
            "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

see https://github.com/zendframework/zf2/pull/2403 https://github.com/zendframework/…

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: https://github.com/zendframework/zf2/issues/2520

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts