Magento 2: How to fix Temando Error logs

If you are not using Temando Shipping module which comes packaged with Out of the Box Magento in your E-commerce site then most likely you will see your var/log/system.log file being spammed with numerous errors that look like below:

 [2020-09-02 11:13:03] 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 /vendor/magento/framework/Exception/InputException.php:91)"
 } 


This error is a Core magento bug. It may seem minor, but over a period of time if ignored, it can result in a humungous system log file size and as a result your actual logs and important messages can get lost between these errors.

In order to fix this error there are 2 ways:

1) Disable the Temando_Shipping module in your magento site using this command:
 php bin/magento module:disable Temando_Shipping


OR

2) Create a data patch class to remove source_model of the attribute
ts_packaging_id 


Do clear cache and re-generate static content after implementing any one of the above ways. After doing this the error will stop spamming your log files.

Comments

Popular posts from this blog

Magento 2: How to create new indexer for your custom module

Xdebug - PHPStorm - Ubuntu: How to configure Xdebug on Ubuntu for PHPStorm

Magento 2 - Vue Storefront PWA Integration: How to create a new VSBridge indexer job and Elastic Index for your custom module