skaczmarek03
Forum Replies Created
-
Hello @kristinaplauche,
So we have investigated this issue even more. And this is what we have discovered:
Both
clientToken
andtransaction
were returned correctly from the API. I checked it deep in theHttp::_doRequest()
method. The problem was that after the response was returned in XML format, theXml::buildArrayFromXml($response['body'])
method which calls this oneXml\Parser::arrayFromXml($xml)
was encountering an issue withDOMDocument
. To be more specific, the problem was in this line:$root = $document->documentElement->nodeName;
$root
wasNULL
, because$document->documentElement
was undefined. And why it was undefined? I found the answer here: https://github.com/braincrafted/bootstrap-bundle/issues/461.
TL;DR the problem was in the php.ini file. We have been loadingdom.so
extension in this file which was causing all the issues. After we’ve commented out this line:extension=dom.so
everything was working fine.
So if someone will encounter the same issue then the solution is to remove the mentioned line from
php.ini
file and restart your server. I hope it will help someone.Thanks for the support, topic closed.
- This reply was modified 7 years, 3 months ago by skaczmarek03.
- This reply was modified 7 years, 3 months ago by skaczmarek03.