致命错误:Temando 宣言 - Magento 2.3
问题:致命错误:Temando 宣言 - Magento 2.3
这是我第一次就这个社区提出问题,这个社区每次都在挽救我的生命。
现在我明白了,因为我已经在互联网上搜索了这个没有结果 - 所以我希望这篇文章将来对其他人有用。
我在本地 127.0.0.1 中使用主题为 Porto 的 Magento 2.3,但是在默认模式和开发模式下,我运行提示命令php bin/magento setup:di:compile我立即得到以下输出:
C:\xampp\htdocs\magento2>php bin/magento setup:di:compile 开始编译。存储库代码生成... 1/7 [u003du003du003du003d>------------------------] 14% 2 secs 54.0 MiBPHP 致命错误: Temando\Shipping\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository::save(Temando\Shipping\Api\Data\CollectionPoint\OrderCollectionPointInterface $collectionPoint) 的声明必须与 Temando\Shipping\Model\ResourceModel\Repository\OrderCollectionPointRepositoryInterface::save( Temando\Shipping\Api\Data\Delivery\OrderCollectionPointInterface $collectionPoint) 在 C:\xampp\htdocs\magento2\vendor\temando\module-shipping-m2\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository.php 第 24 行
致命错误:Temando\Shipping\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository::save(Temando\Shipping\Api\Data\CollectionPoint\OrderCollectionPointInterface $collectionPoint) 的声明必须与 Temando\Shipping\Model\ResourceModel\Repository\OrderCollectionPointRepositoryInterface 兼容::save(Temando\Shipping\Api\Data\Delivery\OrderCollectionPointInterface $collectionPoint) 在 C:\xampp\htdocs\magento2\vendor\temando\module-shipping-m2\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository.php 第 24 行
我试图禁用该模块,但没有任何反应;我试图通过作曲家运行从 Github 下载的 MageFix,但这对 Magento 2.3 不利(我认为)。
使固定
根据 TGR_dev 的建议,这是完整修复此错误的方法。
在 Vendor 文件夹中,我删除了 Temando 文件夹,然后我看到 Magento 停止工作 - 这很正常;
我按照本指南中的“命令行更新”并重新安装了 Magento:https://blog.magestore.com/upgrade-magento-2-3/#a3
编辑
如果您上传它,请务必从 app/code 文件夹中删除 MageFix,否则它会给您错误
希望这会有所帮助!
解答
当我从 2.2.6 升级到 Magento 2.3.0 时,我有相同的 pblm。解决方案:彻底删除 vendor/temando 文件夹和所有文件,然后重新安装 Magento 2.3.0 升级。这将安装新的 temando 文件夹和文件,而不会出现遗留的不兼容错误。
更多推荐
所有评论(0)