You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to get everything to run locally on a Windows environment via xampp where I'm running PHP 5.6. However, on a remote Linux server, where I'm running PHP v 5.4.45 , I ran my same PHP script which worked locally in Windows but received an error on the Linux side. I don't have shell access to that Linux machine, therefore I FTP uploaded all of the files, which I thought would work. I'm not aware of anything that a composer install / update may do to correct this problem on the Linux side...
I received this strange error related to XML parsing:
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/towerhom/public_html/vendor/guzzlehttp/guzzle/src/Message/Response.php:168
Stack trace:
#0 /home/towerhom/public_html/vendor/guzzlehttp/guzzle/src/Message/Response.php(168): SimpleXMLElement->__construct('<?xml version="...', 2048, false, '', false) #1 /home/towerhom/public_html/vendor/troydavisson/phrets/src/Session.php(100): GuzzleHttp\Message\Response->xml() #2 /home/towerhom/public_html/test_rets.php(28): PHRETS\Session->Login() #3 {main}
Here's the print_r() output of the string that cannot be parsed into XML.
Hello Troy,
Yes, I'm seeing this problem consistently on my production server
running Centos and Apache, but this problem does not occur on my Windows
development environment running XAMPP. Very strange!
Thank you,
Michael Williams
Advantage Technologies, Inc.
Hello,
I was able to get everything to run locally on a Windows environment via xampp where I'm running PHP 5.6. However, on a remote Linux server, where I'm running PHP v 5.4.45 , I ran my same PHP script which worked locally in Windows but received an error on the Linux side. I don't have shell access to that Linux machine, therefore I FTP uploaded all of the files, which I thought would work. I'm not aware of anything that a composer install / update may do to correct this problem on the Linux side...
I received this strange error related to XML parsing:
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/towerhom/public_html/vendor/guzzlehttp/guzzle/src/Message/Response.php:168
Stack trace:
#0 /home/towerhom/public_html/vendor/guzzlehttp/guzzle/src/Message/Response.php(168): SimpleXMLElement->__construct('<?xml version="...', 2048, false, '', false)
#1 /home/towerhom/public_html/vendor/troydavisson/phrets/src/Session.php(100): GuzzleHttp\Message\Response->xml()
#2 /home/towerhom/public_html/test_rets.php(28): PHRETS\Session->Login()
#3 {main}
Here's the print_r() output of the string that cannot be parsed into XML.
GuzzleHttp\Message\Response Object
(
[reasonPhrase:GuzzleHttp\Message\Response:private] => OK
[statusCode:GuzzleHttp\Message\Response:private] => 200
[effectiveUrl:GuzzleHttp\Message\Response:private] => http://retsgw.flexmls.com/rets2_3/Login
[headers:GuzzleHttp\Message\AbstractMessage:private] => Array
(
[server] => Array
(
[0] => Apache-Coyote/1.1
)
)
The text was updated successfully, but these errors were encountered: