Looking around the current active and fixed issues, I see that many people have notices/warnings in different situations, but none is exactly like mine.

This issue may be a duplicate of:
#1536054: Enabling Better Exposed Filters Generates Errors
#1784424: After updating to beta2 I get these 2 errors
#1484200: Undefined index - options_form()
#1823874: Warnings after clear cache

Or maybe not :) because my errors are only "Undefined index: type" and none of the indicated solutions in the issues worked for me.

My scenario:

Drupal: 7.24
Better Exposed Filters: 7.x-3.0-beta3
Views: 7.x-3.7

The Notices appear only on the system log, and are thrown twice on each form opening (options form). I don't know if it matters or not, but it's not a node view, it happens either with a profile2 entity view and with a commerce_product entity view.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcoscano’s picture

just adding the corresponding isset() solved the issue for me

patch attached

marcoscano’s picture

Status: Active » Needs review
marcoscano’s picture

Issue summary: View changes

Status: Needs review » Needs work

The last submitted patch, 1: fix-notice-undefined-index-type-2167529-1.patch, failed testing.

marcoscano’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: fix-notice-undefined-index-type-2167529-1.patch, failed testing.

berliner’s picture

The test fails because the test files are not found. From the review log:

[12:31:35] Scanning sites/default/files/checkout/sites/default/modules/better_exposed_filters for .test files.
[12:31:35] Scanning sites/default/files/checkout/sites/default/modules/better_exposed_filters for /Tests/*.php files.

So the patch might as well be a fix for the notices. Anybody cares for manual test and feedback?

hwasem’s picture

Thank you for this. I manually applied and it takes the error away. It was showing up every time I went into my view and click on the BEF setting form.

Drupal 7.26
Better Exposed Filters 7.x-3.0-beta3
Views 7.x-3.7

Neslee Canil Pinto’s picture

Status: Needs work » Closed (won't fix)

Hi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).