drwurqczo39355510 2019-01-07 17:13
浏览 102
已采纳

致命错误:Temando宣言 - Magento 2.3

It is the first time that I ask a question on this community that is literally saving my life everytime.

Now I get to the point, being that I have searched for this all over the internet with no result - so I hope this post will get useful for someone else in future.

I am using Magento 2.3 with the theme Porto in local 127.0.0.1, but when in Default and also Dev mode I run the prompt command php bin/magento setup:di:compile I instantly get this output:

C:\xampp\htdocs\magento2>php bin/magento setup:di:compile Compilation was started. Repositories code generation... 1/7 [====>-----------------------] 14% 2 secs 54.0 MiBPHP Fatal error: Declaration of Temando\Shipping\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository::save(Temando\Shipping\Api\Data\CollectionPoint\OrderCollectionPointInterface $collectionPoint) must be compatible with Temando\Shipping\Model\ResourceModel\Repository\OrderCollectionPointRepositoryInterface::save(Temando\Shipping\Api\Data\Delivery\OrderCollectionPointInterface $collectionPoint) in C:\xampp\htdocs\magento2\vendor\temando\module-shipping-m2\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository.php on line 24

Fatal error: Declaration of Temando\Shipping\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository::save(Temando\Shipping\Api\Data\CollectionPoint\OrderCollectionPointInterface $collectionPoint) must be compatible with Temando\Shipping\Model\ResourceModel\Repository\OrderCollectionPointRepositoryInterface::save(Temando\Shipping\Api\Data\Delivery\OrderCollectionPointInterface $collectionPoint) in C:\xampp\htdocs\magento2\vendor\temando\module-shipping-m2\Model\ResourceModel\CollectionPoint\OrderCollectionPointRepository.php on line 24

I have tried to disable the module, but nothing happens; I have tried to run via composer the MageFix downloaded from Github but it's not good for Magento 2.3 (I think).

Fix

According to the suggestion of TGR_dev, this is how works the complete fix to this error.

In Vendor folder, I have deleted the folder Temando, then I saw that Magento stopped working - it's normal;

I followed the "command line update" at this guide and reinstalled Magento: https://blog.magestore.com/upgrade-magento-2-3/#a3

Edit

Be sure to remove MageFix from the app/code folder if you uploaded it or it will give you error

Hope this will help!

  • 写回答

1条回答 默认 最新

  • doucou19961205 2019-01-07 20:13
    关注

    I had the same pblm when I upgraded to Magento 2.3.0 from 2.2.6. Solution: completely delete the vendor/temando folder and all files then reinstall the Magento 2.3.0 upgrade. This will install the new temando folder and files without the legacy incompatibility error.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里