First time here? Check out the FAQ!

connection error using PHP

I have been running the PHP code for over a year with no problems - Howerver i am now getting server connection errors at different points. The error occurs while downloading data or pictures -

Error has been occuring for over 24 hours

$config = new \PHRETS\Configuration;

$config->setLoginUrl(''); $config->setUsername('etoutaro1'); $config->setPassword('##########');


I am using the latest PHP code.

here is the error

Fatal error: Uncaught exception 'PHRETS\Exceptions\RETSException' with message 'miscellaneous server error.' in D:\xampp\htdocs\jsapp-rets-code\vendor\troydavisson\phrets\src\Session.php:379

Stack trace:

0 D:\xampp\htdocs\jsapp-rets-code\vendor\troydavisson\phrets\src\Session.php(93): PHRETS\Session->request('Login')

1 D:\xampp\htdocs\jsapp-rets-code\ PHRETS\Session->Login()

2 {main}

thrown in D:\xampp\htdocs\jsapp-rets-code\vendor\troydavisson\phrets\src\Session.php on line 379

rtoutant's avatar
asked 2018-04-02 04:39:25 -0500
edit flag offensive 0 remove flag close merge delete


Were you able to get this issue resolved?

bwolven's avatar bwolven (2018-04-26 09:03:16 -0500) edit
add a comment see more comments

2 Answers


$config->setUserAgent('RobToutant/1.0'); is a bit strange... I don't know if this is the issue but I'm pretty sure you don't need to set it. I'm using 1.7.2 successfully and I didn't set it.

I also suggest reviewing your PHP installation and double check Troys library dependencies - did you build with composer?

Also seeing it was an issue with the Session module, consider deleting your session ids in your php session temp folder. maybe a permission error, I've had funny things like that happen on xampp.

on a side note, windows 10 now has ubuntu so you can run a LAMP stack on your windows machine and have things much closer to production.

berksites's avatar
answered 2018-04-25 20:59:53 -0500
edit flag offensive 0 remove flag delete link


add a comment see more comments

I checked the logs on our RETS server and I'm not seeing any errors on requests from your account. Since this uses RETSIQ Contact proxy, you will need to contact the MLS. Make sure to tell them you are connecting to RETS through RETSIQ Contact.

bwolven's avatar
answered 2018-04-02 11:31:25 -0500
edit flag offensive 0 remove flag delete link


add a comment see more comments

Your Answer

Login/Signup to Answer