Magento: Disable Diagnostic Messages

Symptom

When requesting shipping rates, messages are displayed that you have not configured or a message similar to the ones below are displayed when no message should be displayed at all.

Such examples include (but are not limited to):

  • Invalid Origin Country. The origin country is invalid
  • Invalid Origin State. The origin state cannot be found.
  • Invalid Destination Country. The destination country cannot be found.
  • Invalid Destination State. The destination state cannot be found.
  • Disallowed Destination Country. The destination country is not allowed by this carrier.
  • Carrier requires Country and/or State, one of which is missing.
  • Carrier requires City, which is missing.
  • Carrier requires zipcode, which is missing.
  • No shipping methods found for carrier. The system could not find a shipping method for the carrier.
  • Carrier Connection Error. Could not connect to carrier service for rates. Their system is possibly down.
  • Max Weight Exceeded for Carrier. The maximum configured weight for this carrier has been exceeded. Change in carrier dashboard if wanting to increase.
  • No Pickup Locations Found. Could not find any pickup locations for this carrier.
  • Google API Key not present. Please set Google API Key in Global Settings on ShipperHQ Dashboard
  • Disallowed Destination Country. The destination country is not allowed by this carrier.
  • Shipping is prevented by a user defined rule. The merchant has used Carrier Rule to prevent shipping.
  • Missing rates for carrier groups. Unable to find rates for all of the carrier groups.
  • No Valid Dates found for Carrier
  • No Valid Rates found for Carrier
  • No carriers have been setup for this origin.
  • No merged rates. Please review your carrier mappings.
  • This account does not permit address validation
  • Address validation is not enabled.
  • Max Packages Exceeded for Carrier. The maximum number of packages for this carrier has been exceeded.
  • Could not find carrier you requested

Magento 1

To disable this in Magento 1 navigate to System -> Configuration -> WebShopApps Logger (under “Advanced”) and set “Show Debug Messages on Front End” to “No”.

Magento 2

To disable this in Magento 2 navigate to Stores -> Configuration -> Sales -> Shipping Methods -> ShipperHQ and set “Debug” to “No”.

Next, navigate to Stores -> Configuration -> ShipperHQ Logger and set “Show Debug Messages on Front End” to “No”.