googleads-php-lib icon indicating copy to clipboard operation
googleads-php-lib copied to clipboard

xml reader error for php 8.2

Open adish-tap opened this issue 2 years ago • 3 comments

Hi All,

We are using the google ad manager PHP library to push order and line items to GAM from our platform. We had PHP version 8.1 and GAM API version v202302. We were able to push the order and line item successfully to GAM and get the response back properly.

However we moved from PHP version 8.1 to 8.2 and then when we tried to push to GAM we received error as - Warning: XMLReader::XML(): Unable to load source data in .../googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/SoapHeaders.php on line 75

We had not made any code changes in our platform apart from the PHP version upgrade to 8.2 from 8.1. Can you please help us out and let us know how we can move forward so that we can use PHP 8.2.

Please let me know if more information is needed.

adish-tap avatar Sep 01 '23 05:09 adish-tap

What patch version of 8.2 are you using? Looks like there are some XML related bug fixes in recent 8.2.x releases.

christopherseeley avatar Sep 01 '23 13:09 christopherseeley

Hi - We are on PHP version 8.2.3 . please let me know if you need more information.

adish-tap avatar Sep 01 '23 16:09 adish-tap

Did updating to a newer patch version resolve the issue?

christopherseeley avatar Mar 22 '24 00:03 christopherseeley