Fix error after disable Temando_Shipping
1. The site is facing this error:
temando.CRITICAL: “accountId” is required. Enter and try again. {“exception”:”[object] (Magento\\Framework\\Exception\\InputException(code: 0): \”accountId\” is required. Enter and try again. at /path_to_magento_dir/vendor/magento/framework/Exception/InputException.php:91)”} []
2. I figured out that the Temando_shipping
extension causes this issue.
So I disabled it by these commands:
bin/magento module:disable Temando_Shipping bin/magento setup:upgrade bin/magento setup:di:compile bin/magento indexer:reindex && bin/magento cache:clean redis-cli FLUSHALL
3. The frontend is running OK, but errors in Admin (Product edit page, Feed schedule page):
Fatal error: Uncaught Error: Cannot instantiate interface Temando\Shipping\Model\ResourceModel\Repository\PackagingRepositoryInterface in /path_to_magento_dir/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /path_to_magento_dir/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create(‘Temando\\Shippin…’) #1 /path_to_magento_dir/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get(‘Temando\\Shippin…’) #2 /path_to_magento_dir/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, ‘Temando\\Shippin…’, NULL, ‘packagingReposi…’, ‘Temando\\Shippin…’) #3 /path_to_magento_dir/vendor/magento/framework/Ob in /path_to_magento_dir/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50
4. I got the idea from this Github issue, I must clear the EAV attribute that relating to Temando_Shipping
because it could generate an exception Class Temando\Shipping\Model\Source\PackagingType
does not exist when trying to edit product.
DELETE FROM `eav_attribute` WHERE `source_model` LIKE '%Temando%'
To make sure it will work, I run these commands after SQL command above:
php bin/magento setup:di:compile rm -rf var/cache/* var/page_cache/* generated/code/*
That’s it!
Appreciate this, had the same problem!
thanks for posting the fix, works great
thank you very very very very very much
You’re welcome
Thank you Jared
Thanx for the solution! Got the same issue 🙂
Thank you 🙂
Thank you! It solved my problem 😉
Thanks a lot!
thanks worked for me nicely
Thanks!