Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
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?
Thanks
Javier
Comments
Comment #1
pounardHello! This error should not happen, do you have a procedure I can do to reproduce?
Comment #2
pounardHow 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.
Comment #3
pounardOups sorry wrong module, better exposed filters I meant.
Comment #4
mikeker CreditAttribution: mikeker commentedThese 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.
Comment #5
mikeker CreditAttribution: mikeker commented