Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

"String could not be parsed as XML" when in use with CakePHP #2

Open
dagumak opened this issue Apr 15, 2012 · 4 comments
Open

"String could not be parsed as XML" when in use with CakePHP #2

dagumak opened this issue Apr 15, 2012 · 4 comments

Comments

@dagumak
Copy link

dagumak commented Apr 15, 2012

I had a few oddities here and there when using with Cake, but I couldn't figure out this one when just using the library.

"String could not be parsed as XML"

I wish I could be more helpful, but at least I've taken the first step to open a discussion.

@dagumak
Copy link
Author

dagumak commented Apr 15, 2012

Exactly on this line: $customer_xml_node = new SimpleXMLElement($xml);

@mazraara
Copy link

Hi, I am getting the same error with my application too. [Exception : String could not be parsed as XML ]

public function createSubscription($chargify_subscription) {
$xml = $this->requestCreateSubscription($chargify_subscription->getXML());
424 ---> $subscription = new SimpleXMLElement($xml);
return new ChargifySubscription($subscription, $this->test_mode);
}

can somebody help me.

@arungpisyadi
Copy link

I know it's been a while, but apparently the wrapper can't work if you set $test = TRUE, you should use $test to FALSE and set test environment in your chargify account.

@abkiran
Copy link

abkiran commented Dec 29, 2017

Even after changing $test = FALSE, same error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants