First time here? Check out the FAQ!

phrets:Unable to download image urls

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

$config->setRetsVersion('1.7.2'); // see constants from \PHRETS\Versions\RETSVersion $config->setUserAgent('RobToutant/1.0');


$photos = $rets->GetObject("Property", "Photo", $v,"*","1"); foreach ($photos as $photo) {



                          echo "<pre>".$photo->getLocation()."</pre>";


no error message - just empty location $photos = $rets->GetObject("Property", "Photo", $v,"*","0");

gets all the appropriate images using getContent

rtoutant's avatar
asked 2018-01-11 13:33:51 -0500
bwolven's avatar
updated 2018-01-11 17:14:07 -0500
edit flag offensive 0 remove flag close merge delete


What RETS URL are you using to connect and what account (NO PASSWORDS). Also that just shows your code not what response you are getting.

bwolven's avatar bwolven (2018-01-11 13:46:06 -0500) edit

updated the original post with the information requested

no error message but if($photo->isError()) is true getCode and getMessage return empty

rtoutant's avatar rtoutant (2018-01-11 14:11:04 -0500) edit

What PHRETS version are you using? Also do you use a User Agent Password too when you connect?

bwolven's avatar bwolven (2018-01-11 17:06:21 -0500) edit

version is 2.5 user agent is in the original post RobToutant/1.0 and I use a usergent password all the code works - i can not seem to get image URL's can you please check if my user has permissions set to download image url's

rtoutant's avatar rtoutant (2018-01-11 17:40:40 -0500) edit

reinstalled 2.5 phrets setRetsVersion('1.7.2'); i now get error message 20414:URL Location Not Supported

rtoutant's avatar rtoutant (2018-01-11 20:11:23 -0500) edit
add a comment see more comments

1 Answer


This seems to be an issue with the RETSIQ (Bridge) RETS configuration for your account. You would need to contact the MLS to request access since they handle configuration for this product.

I verified that we are indeed sending the location information for that specific listing.

You may also be able to get the image URLs by searching the Media resource if that is enabled for your account.

bwolven's avatar
answered 2018-01-12 09:46:23 -0500
edit flag offensive 0 remove flag delete link


add a comment see more comments

Your Answer

Login/Signup to Answer