【问题标题】:Fatal error: Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found致命错误:未捕获的错误:找不到类'Magento\Framework\Component\ComponentRegistrar'
【发布时间】:2018-10-30 16:03:11
【问题描述】:

将 Magento 2.1.5 升级到 2.2.6 后,出现以下错误。 我的 magento 源代码位于 www.mysite.com/staging/ 等子目录中

/staging/vendor/mailchimp/mc-magento2/registration.php:12 堆栈跟踪:#0

/staging/vendor/composer/autoload_real.php(71): require() #1

/staging/vendor/composer/autoload_real.php(61): composerRequiref4386a435c9f0af056695f7999d4c05d('62008ed0ff26c9a...', '/var/www/vhosts...') #2 #/staging/vendor/autoload.php( 7): ComposerAutoloaderInitf4386a435c9f0af056695f7999d4c05d::getLoader() #3

/staging/app/autoload.php(30): include('/var/www/vhosts...') #4

/staging/app/bootstrap.php(30): require_once('/var/www/vhosts...') #5

staging/index.php(22): require('/var/www/vhosts...') #6 {main} 抛出

/staging/vendor/mailchimp/mc-magento2/registration.php 第 12 行

【问题讨论】:

  • 从 github 或其他地方复制组件模块......

标签: magento2


【解决方案1】:

我不知道究竟是什么原因造成的,但composer install 可能会有所帮助

【讨论】:

    【解决方案2】:

    作为一般规则,我会删除供应商目录的内容,然后

    如果您在本地开发人员中: 作曲家更新

    如果您处于某种生产环境中,您只需要提取 repo: 作曲家安装

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-25
      • 2018-09-06
      • 2018-05-11
      • 2020-11-09
      • 2020-03-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多