Closed z0lo13 closed 1 year ago
If you want to debug, open src/Core/Http/Serialization/XmlObjetSerializer.php and remove the try/catch around $php2xml->getXml
so that the exception isn't being buried. Also, wrap lines starting with self::$IDSLogger->
in if(self::$IDSLogger) {
so they don't run when IDSLogger is null.
If you're on PHP 8.2, update the following file by adding #[\AllowDynamicProperties]
immediate above the class Php2Xml extends Common
line
src/XSD2PHP/src/com/mikebevz/xds2php/Php2XML.php
6+ months in and simple "fixes" like these are just beyond the QB skillset :P
php version mismatch
$resultingObj = $dataService->Add($theResourceObj); triggers the following error: Error: Call to a member function Log() on null in /home/crm/public_html/vendor/quickbooks/v3-php-sdk/src/Core/Http/Serialization/XmlObjectSerializer.php:51 Stack trace:
0 /home/crm/public_html/vendor/quickbooks/v3-php-sdk/src/Core/Http/Serialization/XmlObjectSerializer.php(74): QuickBooksOnline\API\Core\Http\Serialization\XmlObjectSerializer::getXmlFromObj(Object(QuickBooksOnline\API\Data\IPPCustomer))
1 /home/crm/public_html/vendor/quickbooks/v3-php-sdk/src/Core/Http/Serialization/XmlObjectSerializer.php(199): QuickBooksOnline\API\Core\Http\Serialization\XmlObjectSerializer::getPostXmlFromArbitraryEntity(Object(QuickBooksOnline\API\Data\IPPCustomer), 'customer')
2 /home/crm/public_html/vendor/quickbooks/v3-php-sdk/src/DataService/DataService.php(1440): QuickBooksOnline\API\Core\Http\Serialization\XmlObjectSerializer->Serialize(Object(QuickBooksOnline\API\Data\IPPCustomer))
3 /home/crm/public_html/vendor/quickbooks/v3-php-sdk/src/DataService/DataService.php(807): QuickBooksOnline\API\DataService\DataService->executeObjectSerializer(Object(QuickBooksOnline\API\Data\IPPCustomer), NULL)
4 /home/crm/public_html/app/Integrations/QuickBooksIntegration/Synchronizer/CustomerSync.php(225): QuickBooksOnline\API\DataService\DataService->Add(Object(QuickBooksOnline\API\Data\IPPCustomer))
...
10 {main}
Is there any requirements/dependencies for SDK? Or how can i debug it further?