Skip to content

MAGE_PROFILER = 'firebug' error #7068

@webmak

Description

@webmak

Preconditions

  1. php 7.0.9, php-fpm, apache
  2. Magento CE 2.1.2 the same was in Magento CE2.1.1 not tested before

Steps to reproduce

  1. turn on profile env MAGE_PROFILER = 'firebug';
  2. reload php-fpm
  3. reload site page

Expected result

Profiling info

Actual result

Uncaught TypeError: Argument 1 passed to Zend_Controller_Plugin_Abstract::setResponse() must be an instance of Zend_Controller_Response_Abstract, instance of Magento\Framework\HTTP\PhpEnvironment\Response given, called in /home/user/public_html/some.site/www/vendor/magento/framework/Profiler/Driver/Standard/Output/Firebug.php on line 61 and defined in /home/user/public_html/some.site/www/vendor/magento/zendframework1/library/Zend/Controller/Plugin/Abstract.php:70 Stack trace: #0 /home/user/public_html/some.site/www/vendor/magento/framework/Profiler/Driver/Standard/Output/Firebug.php(61): Zend_Controller_Plugin_Abstract->setResponse(Object(Magento\Framework\HTTP\PhpEnvironment\Response)) #1 /home/user/public_html/some.site/www/vendor/magento/framework/Profiler/Driver/Standard.php(195): Magento\Framework\Profiler\Driver\Standard\Output\Firebug->display(Object(Magento\Framework\Profiler\Driver\Standard\Stat)) #2 [internal function]: Magento\Framework\Profiler\Driver\Standard->display() #3 {main} thrown in /home/user/public_html/some.site/www/vendor/magento/zendframework1/library/Zend/Controller/Plugin/Abstract.php on line 70

After checking

Was detected that passing object has this parents types

array(4) { ["Zend\Http\PhpEnvironment\Response"]=> string(33) "Zend\Http\PhpEnvironment\Response" ["Zend\Http\Response"]=> string(18) "Zend\Http\Response" ["Zend\Http\AbstractMessage"]=> string(25) "Zend\Http\AbstractMessage" ["Zend\Stdlib\Message"]=> string(19) "Zend\Stdlib\Message" }

But method aspect other type
setResponse(Zend_Controller_Response_Abstract $response) { $this->_response = $response; return $this; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions