Whenever I delete a Commerce related entity (order, product, etc) I get the following error:

Notice: Undefined index: path in redirect_delete_by_entity_path() (line 883 of /public_html/sites/all/modules/redirect/redirect.module).

Perhaps there should be a way to select which entities redirect should attach itself to?

Comments

johannez’s picture

Hi Matt,

I have the same issue when I try to delete Commerce entities. I agree that function assumes that all entities have paths and that cannot be guaranteed all the time.

Here is my patch that simply checks, if the path is set for the URI.

Cheers,
Johannes

dave reid’s picture

Status: Active » Fixed

Modified #1 and added check to redirect_field_attach_form() as well.

http://drupalcode.org/project/redirect.git/commit/c747763

Status: Fixed » Closed (fixed)

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