Hello,

When I go to admin/reports/fields I got some notice.

Notice : Undefined index: commerce_discount dans _field_ui_bundle_admin_path() (ligne 325 dans /modules/field_ui/field_ui.module).
Notice : Undefined index: commerce_discount dans field_ui_fields_list() (ligne 35 dans /modules/field_ui/field_ui.admin.inc).

Commerce discount is uninstalled because I had some problems with it and I would like to reinstall it. It seems it doesn't uninstall well and that some fields are still there.

PS : I uninstalled the module (not just disabled), run update.php, cleared all cache and run cron.

Comments

dr.osd’s picture

Same problem for version 7.x-1.0-alpha4

On fields list page after disable and uninstalling module I have massages:
Notice: Undefined index: commerce_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: commerce_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: commerce_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: commerce_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).
Notice: Undefined index: product_discount in _field_ui_bundle_admin_path() (line 325 of /www/modules/field_ui/field_ui.module).
Notice: Undefined index: product_discount in field_ui_fields_list() (line 35 of /www/modules/field_ui/field_ui.admin.inc).

lukasss’s picture

I have this problem!

joelpittet’s picture

Status: Active » Needs review
StatusFileSize
new2.37 KB

Yeah this is still a problem. Here's a patch that should work, it fixes a couple other related issues but the main issue here is that the two custom line item types are not deleted.

joshtaylor’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new39 KB
new152.24 KB

Patch works well, removes the error. Attached are the before / after screenshots.

Without:

With:

  • joelpittet committed e4cecd8 on 7.x-1.x authored by joshtaylor
    Issue #2416383 by joelpittet, joshtaylor, zmove: Notices on admin/report...
joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

Thank you @joshtaylor for the screenshots. Committed and pushed to -dev branch.

Status: Fixed » Needs work

The last submitted patch, 3: notices_on-2416383-3.patch, failed testing.

mglaman’s picture

Status: Needs work » Fixed

;) Test bot got fixed, so it's running queued patches.

Status: Fixed » Closed (fixed)

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