Hi

I get this error in Drupal 7 when I went to "admin/settings/delete_orphaned_terms"

Comments

Mamouri’s picture

+1

nlisgo’s picture

Drupal 7 API Change notification: field_attach_query() removed

http://www.devheads.net/web/drupal/development/development-drupal-7-api-...

Need to use EntityFieldQuery instead. I'm checking it out. I'll prepare a patch if I get it to work.

nlisgo’s picture

Assigned: Unassigned » nlisgo
Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new1.52 KB

I am submitting a patch that swaps out any instance of the field_attach_query function and uses instead EntityFieldQuery.

I can confirm that applying this patch will make the module work. field_attach_query has been discontinued.

TimelessDomain’s picture

Status: Needs review » Reviewed & tested by the community

it works! thanks.

nlisgo’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Can we get this patch accepted!!

nlisgo’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

Can we get this patch accepted!!

soulston’s picture

This works for me although I do get a PHP Notice:

Notice: Undefined property: stdClass::$id in _delete_orphaned_terms_voc_is_tag() (line 115 of /Users/spoulston/Sites/Development/drupal-7.7/sites/all/modules/delete_orphaned_terms/delete_orphaned_terms.module).

MGParisi’s picture

subscribe

MGParisi’s picture

tested, fixes most issues but not #7

Is this Abandoned?

nlisgo’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.79 KB

This should fix the PHP Notice in #7 too.

nlisgo’s picture

Unfortunately it does appear to be but it's a useful module. I've needed it a few times!

matt v.’s picture

Status: Needs review » Fixed

@nlisgo Thanks! I've now committed the patch. I'll make a beta release next.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.