Download.xml looks file with 5 listings
When I execute the feed, it goes on forever.

When I use search in drupal, it always says "no matching records" and content_type_mls_listing is always empty.
When does the content_type_mls_listing gets populated?
Can someone please tell me when and how does the xml data gets into the database so that I get some results in the search?

Comments

mattmm’s picture

I just go into an infinite loop as well...

awjrichards’s picture

Status: Active » Closed (works as designed)

This is actually by design - it just so happens to not work with your MLS provider.

Let me explain. When I originally wrote this module, I was working with a Rappatoni-based MLS provider, which didn't support retrieving listings in batches. This was causing all sorts of timeouts and memory problems so I had to create my own batching. Hence the 'while' loop. If your MLS provider handles batching for you, then this module will produce the 'infinite loop' problem.

If you're handy with PHP, take a look in mls_viele.php. Around line 129, inside the _mls_download_listings() function, you'll see the culprit - a while loop. If you read through the code carefully, you'll likely get a sense of how it works. You'll need to take a few steps to properly get rid of that while loop. First, comment out the 'while' line and it's closing '}'. Then, look for a comment that says 'if there are no listings, break the loop'. comment out the 4 lines after it. I *think* that's all you need to do!

graper’s picture

after completing the steps layed out here, and I am using 1.1 of the module, I still get the infinite loop.

looking at the server, it seems to be looping the shell commands and raises the load on the server tremendously. I know I got the loop out of there but I don't understand why it seems to be looping.

I'm going to look for duplicates of the module folder to make sure that I didn't do that by mistake, but I was wondering if anyone else has experienced this.

Any updates to the module would be nice as well.