Skip to content

Fatal Error on "CompanyInfo" object query #312

Description

@aik099

Since recently the "CompanyInfo" object query response contains non-docummented XML node (documentation):

<CustomerCommunicationEmailAddr>
    <Address>noreply@quickbooks.com</Address>
</CustomerCommunicationEmailAddr>

because of it any attempt to get company info, like the one shown below will fail with the error.

Company info query:

$CompanyInfoService = new QuickBooks_IPP_Service_CompanyInfo();
$quickbooks_CompanyInfo = $CompanyInfoService->get($Context, $realm);

Fatal error:

Fatal error: require_once(): Failed opening required '.../vendor/consolibyte/quickbooks/QuickBooks/IPP/Object/CustomerCommunicationEmailAddr.php' in .../vendor/consolibyte/quickbooks/QuickBooks/Loader.php on line 56

Solution:

Adding missing QuickBooks/IPP/Object/CustomerCommunicationEmailAddr.php boilerplate file based on QuickBooks/IPP/Object/CustomerCommunicationAddr.php.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions