I have been reading about this module and I think it is quite interesting. I have installed the module and configured like All Pinage! and Dual mode.

After this, I have cleared the cache and I have started to test it.

Some pages (pages that are not using better exposed filters) show up the error:

TypeError: Drupal.settings.better_exposed_filters is undefined
[Parar en este error] 	

if (Drupal.settings.better_exposed_filters.bef_datepicker) {

Is there any way to know how to avoid this error?



pounard’s picture

Hello! This error should not happen, do you have a procedure I can do to reproduce?

pounard’s picture

Project: Core Library » Better Formats
Version: 7.x-2.0-beta2 » 7.x-1.x-dev

How I guess why, the better filter module will attempt to iterate on a non existing setting key, because we force its JS file to be included even when useless. That's the bug, but a bug for them, they should make their JS more robust by not doing anything when the settings key does not exists, instead of letting it crash.

I'm moving this issue in their project queue, but I will attempt a compat fix on my side. They should definitely fix it by themselves: we can alter JS files and included them pragmatically even without the "core library" module.

pounard’s picture

Project: Better Formats » Better Exposed Filters

Oups sorry wrong module, better exposed filters I meant.

mikeker’s picture

Status: Active » Postponed (maintainer needs more info)

These errors can generally be avoided by upgrading the the latest version of BEF. Earlier versions didn't have a good upgrade path when new options were added to the module.

Please try the latest beta and let me know if you're still getting this error.

mikeker’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)