flancer32/mage2_fix_is12655

针对 Mage 2.2.2 中 500 错误的修复(问题 12655)。

0.1.0 2018-02-16 08:23 UTC

This package is auto-updated.

Last update: 2024-09-06 09:19:17 UTC


README

针对ISSUE-12655的独立修复:从 2.2.1 更新到 2.2.2 后,结账/购物车访问结果出现错误(500)。

安装

$ cd ${DIR_MAGE_ROOT}
$ composer require flancer32/mage2_fix_is12655
$ bin/magento module:enable Flancer32_FixIs12655
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile
$ bin/magento setup:static-content:deploy
$ bin/magento cache:clean
$ <set filesystem permissions to your files>

卸载

您需要用于 https://repo.magento.com/ 的认证密钥来卸载任何 Magento 2 模块。请访问您的 Magento 账户,在“(我的资料/市场/访问密钥)”部分生成一对密钥以连接到 Magento 2 仓库。然后,按照此处所述,将 composer 认证文件 auth.json 放置在您的 composer.json 旁边,并将 https://repo.magento.com/ 的认证密钥放入认证文件中

{
  "http-basic": {
    "repo.magento.com": {
      "username": "...",
      "password": "..."
    }
  }
}

然后运行以下命令以完全卸载 Flancer32_FixIs12655 模块

$ cd ${DIR_MAGE_ROOT}   
$ bin/magento module:uninstall Flancer32_FixIs12655
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile
$ bin/magento setup:static-content:deploy
$ bin/magento cache:clean

请耐心等待,卸载过程(bin/magento module:uninstall ...)大约需要 2-4 分钟。最后,删除 auth.json 文件。

$ rm ./auth.json