Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I get the error as this when I set an exposed filter in the views page.
I check the views-exposed-form.tpl.php and change the line 32 code from
<div id="<?php print $widget->id; ?>-wrapper" class="views-exposed-widget views-widget-<?php print $id; ?>">
to:
<div id="<?php print $id; ?>-wrapper" class="views-exposed-widget views-widget-<?php print $id; ?>">
So the error is gone. But I don't know any PHP code, could anybody tell me the change is right or not?
Comment | File | Size | Author |
---|---|---|---|
#3 | 1300054.patch | 479 bytes | dawehner |
Comments
Comment #1
hb.tan CreditAttribution: hb.tan commentedComment #2
ak CreditAttribution: ak commentedI got the exact same error in views 3.0.
Scanning the DOM, I noticed that
$widget->id
seems to be undefined for the exposed filter "Content: Has new content (exposed)":Views widget output reads:
<div id="-wrapper" class="views-exposed-widget views-widget-checkboxes"></div>
where the id should read something like "edit-checkboxes-wrapper" instead.
Reproduce:
Set the filter "Content: Has new content" to exposed, save and visit the view page (doesn't happen on views preview).
Comment #3
dawehnerHere is a patch which fixes this issue, please try it
Comment #4
dawehnerJust committed that patch as it looks fine.
Thanks for reporting this issue.