I believe the bug also exists in 7.x-1.x-dev but I haven't tested it. The code in this function is the same in both the beta and dev version. When I delete an entity that does not have a path, redirect_delete_by_path($uri['path']); generates an error. I was able to make the error disappear by changing

if ($uri = entity_uri($entity_type, $entity)) {
  redirect_delete_by_path($uri['path']);
}

to the following:

if ($uri = entity_uri($entity_type, $entity)) {
  if (isset($uri['path'])) {
    redirect_delete_by_path($uri['path']);
  }
}

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

If $uri is returning a TRUE value but $uri['path'] is not defined, then it is definitely a bug in the entity type you are using. Please let me know so I can file an issue with whatever module as appropriate.

LonitaD’s picture

I think the entity I was deleting was a Drupal Commerce product. I can try to reproduce the error on a clean install to see if it happens again. I'll try it and post the results.

pere orga’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (duplicate)