Ask Your Question

Revision history [back]

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('http://rebrae.retsiq.com/contact/rets/login'); $config->setUsername('etoutaro1'); $config->setPassword('##########');

$config->setRetsVersion('1.7.2');
$config->setUserAgent('RobToutant/1.0');

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.worker.photos.new.php(216): PHRETS\Session->Login()

2 {main}

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