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!

5 1 vote5 1
Article Rating
Subscribe
Notify of
guest
10 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Michael
Michael
6 months ago

Appreciate this, had the same problem!

Herve Tribouilloy
Herve Tribouilloy
6 months ago

thanks for posting the fix, works great

Enrico
Enrico
6 months ago

thank you very very very very very much

alexyo638
alexyo638
5 months ago

Thank you Jared

dkostelyanets
dkostelyanets
4 months ago

Thanx for the solution! Got the same issue 🙂

Isolde van Oosterhout
3 months ago

Thank you 🙂

Sylwia
Sylwia
2 months ago

Thank you! It solved my problem 😉

Dimitri
1 month ago

Thanks a lot!

robert baum
robert baum
1 month ago

thanks worked for me nicely