Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello @kristinaplauche,

    So we have investigated this issue even more. And this is what we have discovered:

    Both clientToken and transaction were returned correctly from the API. I checked it deep in the Http::_doRequest() method. The problem was that after the response was returned in XML format, the Xml::buildArrayFromXml($response['body']) method which calls this one Xml\Parser::arrayFromXml($xml) was encountering an issue with DOMDocument. To be more specific, the problem was in this line:

    $root = $document->documentElement->nodeName;

    $root was NULL, 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 loading dom.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.
Viewing 1 replies (of 1 total)