【问题标题】:PHP fatal error uncaught exception after installing magento2安装magento2后PHP致命错误未捕获异常
【发布时间】:2020-02-19 14:51:09
【问题描述】:

我已经在我的 linux centos7 中安装了 magento2。在访问网页时成功安装 magento2 后出现以下错误,内容为空。

{{menuState.title}}

PHP版本:7.1.3 操作系统:centos7

PHP-fpm 错误日志有如下错误。

 PHP Fatal error:  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 /var/www/magento2/lib/internal/Magento/Framework/Profiler/Driver/Standard/Output/Firebug.php on line 61 and defined in /var/www/magento2/vendor/magento/zendframework1/library/Zend/Controller/Plugin/Abstract.php:70
Stack trace:
#0 /var/www/magento2/lib/internal/Magento/Framework/Profiler/Driver/Standard/Output/Firebug.php(61): Zend_Controller_Plugin_Abstract->setResponse(Object(Magento\Framework\HTTP\PhpEnvironment\Response))
#1 /var/www/magento2/lib/internal/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 /var/www/magento2/vendor/magento/zendframework1/library/Zend/Controller/Plugin/Abstract.php on line 70

我该如何解决这个错误?

【问题讨论】:

    标签: php magento magento2 centos7


    【解决方案1】:

    这是报告的一个 Magento 错误... 但是已经... https://github.com/magento/magento2/issues/7068

    那么,来吧... 你更新了magento吗?当前版本是什么?

    我在 Magento 的基地找到了这些信息:https://devdocs.magento.com/guides/v2.3/config-guide/bootstrap/mage-profiler.html

    你有这个选项... 临时修复是从 dev 分支安装 symfony / yaml,然后是我们的模块:

                  composer require symfony/yaml: dev-issue-814
    

        
    作曲家需要 mirasvit/module-profiler

    尝试使用/安装php7.2

    查看这个 Magento 项目参考 >>> https://magento.stackexchange.com/questions/49000/magento-2-is-there-a-profiler

    在进行上述程序之前一定要备份... 由于我不知道您当前 Magento 的正确版本,因此我寻找替代方案来修复。

    希望对你有帮助……

    祝你好运!发送有关您的进度的消息...

    【讨论】:

      猜你喜欢
      • 2013-07-07
      • 1970-01-01
      • 2014-08-26
      • 2018-11-15
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多