Ask Your Question

phrets:Unable to download image urls

asked 2018-01-11 13:33:51 -0600

updated 2018-01-11 17:14:07 -0600

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

edit retag flag offensive 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 gravatar imagebwolven ( 2018-01-11 13:46:06 -0600 )edit

updated the original post with the information requested

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

rtoutant gravatar imagertoutant ( 2018-01-11 14:11:04 -0600 )edit

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

bwolven gravatar imagebwolven ( 2018-01-11 17:06:21 -0600 )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 gravatar imagertoutant ( 2018-01-11 17:40:40 -0600 )edit

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

rtoutant gravatar imagertoutant ( 2018-01-11 20:11:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-12 09:46:23 -0600

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-11 13:33:51 -0600

Seen: 959 times

Last updated: Jan 12 '18