Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Error on "CompanyInfo" object query #312

Closed
aik099 opened this issue May 9, 2022 · 1 comment · May be fixed by #313
Closed

Fatal Error on "CompanyInfo" object query #312

aik099 opened this issue May 9, 2022 · 1 comment · May be fixed by #313

Comments

@aik099
Copy link
Contributor

aik099 commented May 9, 2022

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

<CustomerCommunicationEmailAddr>
    <Address>[email protected]</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.

@aik099
Copy link
Contributor Author

aik099 commented May 9, 2022

Duplicates #310.

@aik099 aik099 closed this as completed May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant