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

XDebug - PHPStorm - Mac: How to configure Xdebug with PHPStorm on Mac OS and PHP 7.3

Elastic Search - How to install and manage multiple versions of elastic search