I am wondering if anyone has seen any documentation on processing images for drealty? I have setup the images to be pulled but they are not showing up after the drush import. Is there an easy way to pull all the images?

CommentFileSizeAuthor
#4 drealty error.png185.32 KBbensoi

Comments

mgriebe’s picture

I am assuming you have been able to get property data from your rets server, and now you have gone back to implement an image field. You have selected "process images", and put in the correct image time stamp for your connection, found at admin/drealty/connections. Then, you went to property types, at admin/drealty/drealty_listings, selected your property type, and added an image field. When you configure that field you can select "unlimited" field values from the field value drop down menu. That will let you pull all images.

For troubleshooting:
Check your Drealty Connection. Is the property resource you want pictures for enabled and set to download every time? Go to /admin/drealty/connections/manage. Select "configure" on your connection, there you should see the resources. "Enable", set to "Everytime".

Make sure you flush the cache, "drush cc all" before you update.

When you run drush -u user -d rets-import, make note of what happens. Sometimes, if I have made a query very recently, a connection gets made, then it is disconnected -and nothing happens. I try it 5-10 times, and eventually the job I want gets done. If it does not go through each of the listings, then it isn't checking for images.

If you try many times and it is not grabbing the images, "drush -u user -d flush" -scrap the old listings and try from scratch.

When you are first setting up drealty, I recommend having a very limited query -a query that gets, say, 10 listings. That way you can flush and import repeatedly, with out wasting 10 minutes each time.

gwkone’s picture

Thanks for the response. Your assumptions are correct. Also thanks for the additional notes and directions. I will check all of your recommendations and let you know what happens.

kevinquillen’s picture

Status: Active » Postponed (maintainer needs more info)
bensoi’s picture

StatusFileSize
new185.32 KB

Hi all!

I'm also having difficulty retrieving images for my drealty listings. I follow #1 but still can't have the images show. See attached image for the error I got when the system tried to process images. Anyone bumped into the same error? Thanks!

twod’s picture

@MSVinzeent Could you enable debug mode for the connection and try again. That should generate a drealty_debug_log.txt file in your private or public files folder. It will contain the requests from dRealty/phRets and the responses from the server.
Posting that file here would be useful since the image data response seems to be invalid XML.

Btw, scan the file for any sensitive data before posting it! I don't think it contains passwords, but double check to be sure.

bensoi’s picture

update: it was just my mistake in choosing what type of image to fetch. correcting the dRealty configuration fixed the problem.

kevinquillen’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
cathymedia’s picture

Hi, i also have difficulties retrieving images:
- connection is good & working
- Image field is defined correctly, set to unlimited.
- the thing is, when click on any list, NO pictures are displayed, but when
clicking of (Update Rets Data) , the images are displayed successfully & i have copy of them on my folder
- the thing is when running the drush , the lists are imported, but then i receive this message:

process_images() - Starting. [9.02 sec, 34.07 MB] [notice]
WD drealty: User Agent not registered or denied. Reference: bc7ed605-e8aa-4fce-815e-a2db4c7e3a3e [9.2[error]
sec, 34.73 MB]
WD drealty: User Agent not registered or denied. Reference: 1c398f89-3d38-451f-b3fe-556a120f07a1 [error]
[9.37 sec, 35.08 MB]
WD drealty: User Agent not registered or denied. Reference: 0a1837e3-db39-420d-b7ef-52cc89c1bd68 [error]
[9.54 sec, 35.42 MB]
WD drealty: User Agent not registered or denied. Reference: 646ca83a-cdf7-47a7-a30f-51cda8aac015 [error]
[9.71 sec, 35.77 MB]
WD drealty: User Agent not registered or denied. Reference: 6beb7366-015e-4469-b2a6-5812a8016387 [error]
[9.87 sec, 36.12 MB]
WD drealty: User Agent not registered or denied. Reference: be3ec75f-9a72-44b2-82e6-d67076153451 [error]
[10.03 sec, 36.47 MB]
WD drealty: User Agent not registered or denied. Reference: ecbc07b8-d4c2-4835-846f-16a36b59a297 [error]
[10.22 sec, 36.82 MB]
WD drealty: User Agent not registered or denied. Reference: fe14c2b2-e65b-422e-86fc-94c2b3ca2796 [error]
[10.4 sec, 37.16 MB]
WD drealty: User Agent not registered or denied. Reference: c5b3b950-8554-4ced-ba93-09619d6519ca [error]
[10.58 sec, 37.51 MB]
WD drealty: User Agent not registered or denied. Reference: 7cda444d-8194-42d7-b8d9-2a7935ca62f3 [error]

Peak memory usage was 37.99 MB [10.72 sec, 37.09 MB] [memory]
Segmentation fault
Connection closed by foreign host

docans’s picture

Issue summary: View changes

I Had the same issues. Any Fix

hockey2112’s picture

I am also receiving the same issue... "drealty: User Agent not registered or denied". Any ideas on how to fix this so that the images can be imported? Is it perhaps a directory permissions issue? Does my RETS provider need to enable something on their end?

hockey2112’s picture

I was experiencing this issue on another website, but on that site I was able to download/process 25 listings at a time before encountering the error. It appears that the issue on my end was caused by settings. I had "No" selected for Use Interealty Authentication, Force Basic Authentication, Use Compression, and Disable Encoding Fix. After I changed those to "yes", my listings images appear to be processing as expected.