dRealty with Solr 5.0 using Search API Solr Server Core. The rets-purge-inactive script is stopping after just a few listings or stops at "Calling hook drush_drealty_rets_purge_inactive [1.3 sec, 45.16 MB] [debug]"

At this point none of my dRealty Inactive Status listings are being purged from the server.

I am not a programmer so I am not very familiar with debugging steps and don't have the skills to write my own patch. On my local machine where I initially built the site the script runs fine. However I am running solr 4 which is a big build change from solr 5. I am not sure if that is where the problem is arising and could be a Search API Solr issue and not dRealty.

Any advice on next steps to track down this issue would be great.

Cheers

Comments

DrupalRanger created an issue. See original summary.

shauntyndall’s picture

Assigned: DrupalRanger » shauntyndall
Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Can you post of output of the drush command with "-d" appended so debugging information is provided?

The drush_drealty_rets_purge_inactive() code is pretty simple so its hard to say without more information:

function drush_drealty_rets_purge_inactive() {
  $query = new EntityFieldQuery();
  $query->entityCondition('entity_type', 'drealty_listing')
      ->propertyCondition('active', 0)
      ->propertyCondition('inactive_date', strtotime('-2 weeks'), '<');

  $result = $query->execute();

  if (count($result)) {
    $ids = array_keys($result['drealty_listing']);

    foreach ($ids as $id) {
      entity_delete('drealty_listing', $id);
    }
  }
}