- Issue created by @dabley
Attempting to perform operations when the module is not configured can produce an error which is then not handled properly, and leads to the following error screen:
The website encountered an unexpected error. Try again later.
Error: Call to a member function getBody() on null in Drupal\xero\XeroQuery->logRequestError() (line 742 of modules/contrib/xero/src/XeroQuery.php).
Drupal\xero\XeroQuery->execute() (Line: 473)
Drupal\commerce_xero\Form\StrategyForm->getAccountOptions() (Line: 141)
Drupal\commerce_xero\Form\StrategyForm->buildForm()
Install the Xero API and Commerce_xero modules, but dont configure Xero API. Go to /admin/commerce/config/xero/strategy and click Add Strategy.
The error handling in XeroQuery.php should check for null, and log a suitable message.
Active
3.1
Code