Closed (fixed)
Project:
Better Exposed Filters
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2012 at 22:27 UTC
Updated:
28 Oct 2013 at 18:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
Refineo commentedI modified the title so it reflects the problem more precisely.
In this case there is no $options['more_options']['tokens'] under $options['more_options'] at all.
Comment #2
Refineo commentedI found out that these warnings and notices are showing only if there are no tokens used inside the BEF configuration.
It should be easy to correct this with sth like:
Comment #3
KLicheR commentedI made a patch of the suggestion at #2.
It work on 7.x-3.0-beta3.
Comment #4
renat commentedFor me patch from #3 works just fine, and it's code looks reasonable.
Comment #5
mgiffordAgreed. It's just wrapping it in
if (isset($options['more_options']['tokens'])) {Seems really safe.
Comment #6
PuntoAndroid commentedIt worked for me ! Great contribution!!!
Comment #7
renat commented@PuntoAndroid, as far as I understand, patch is not committed yet, right? If so, we should make it "RTBC" rather than "fixed".
Comment #8
mikeker commentedThanks for the bug report and patches. But the real solution is to set the correct default value. Note that this only happens for existing views that were built before the token replacement code was added and then the BEF code was updated.
Regardless, a fix has been committed. My apologies for the delay in resolving this issue.
Comment #10
shaysmith commentedResolved this without the patch by opening affected views, viewing the BEF settings and saving out of the settings and view.
Any info on when the updated module might be out, would be nice though.
Comment #11
mikeker commented@shaysmith, these changes are available in the latest -dev release.
I'll probably be rolling a "real" release in the next few weeks -- I've got a few more issues I want to close first.
Comment #12
leistiko_texvet commentedThanks to shaysmith for, "Resolved this without the patch by opening affected views, viewing the BEF settings and saving out of the settings and view."
For people who need a little more of an explanation for the fix than the above (like me, about 40 minutes ago...), I made a very short (<30 seconds) movie of me following the recommended steps:
http://screencast.com/t/eCezdC5Mb7
I hope this helps...
Comment #12.0
leistiko_texvet commentedThis occurs also when there is a filter block visible on a page.