-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions
- php 7.0.9, php-fpm, apache
- Magento CE 2.1.2 the same was in Magento CE2.1.1 not tested before
Steps to reproduce
- turn on profile env MAGE_PROFILER = 'firebug';
- reload php-fpm
- 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; }