The latest WHMCS (7.2.2) has issues with the getclientsdetails and domainwhois local API functions resulting in the following error:
Call to a member function getResponseFormat() on unknown
or
Call to a member function getResponseFormat() on NULL
To solve this please apply the patch as outlined here