Closed (fixed)
Project:
Legal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 06:32 UTC
Updated:
11 Nov 2017 at 13:59 UTC
Jump to comment: Most recent
The default views that come with this module use the 'language' field.
However, this field is only conditionally defined in hook_views_data(), dependent on locale module being enabled.
This means that if local module is not present, Views is trying to show a field whose handler cannot be found, and therefore outputs error messages.
It occours using Legal 7.x-1.2 and Views 7.x-3.x-dev (as of 26-oct-2011)
Comments
Comment #1
marcoka commentedyea ok...well please provide the error output. thank you.
Comment #2
mandreato commentedField "Legal: Additional Checkboxes" on views has a broken handler.
It occours using Legal 7.x-1.2 and Views 7.x-3.x-dev (as of 26-oct-2011).
Comment #3
marcoka commenteduhm. you wrote that already. i asked you how to reproduce the error
Comment #4
mandreato commented- install a fresh D7 environment
- install ctools 7.x-1.0 + views 7.x-3.3+108-dev (as of today) + legal 7.x-1.x-dev (as of today)
- on admin/config/people/legal set display style to "page link", then add "test" on Terms & Conditions, then add a "test label" under additional checkboxes
- on admin/structure/views, add a new view which show "Legal terms and conditions"
- try to add a "Legal: Additional Checkboxes" field, it will have "Broken/missing handler"
Comment #5
muschpusch commentedJust run: drush views-dev
Views will create this output on any view (views backend):
Comment #6
sdrycroft commentedBy default the legal_users and legal_terms views defined in legal.views_default.inc both include a sort on language which will result in a Missing handler error if the locale module is not installed. There are other issues in this file, as visiting "admin/structure/views/view/legal_users" and "admin/structure/views/view/legal_terms" even with Locale installed results in Broken/missing handlers on the page (and the "All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard your changes." message which is only displayed when views has had to clean up a messy view).
Comment #7
sdrycroft commentedHas there been any progress with this?
Comment #8
joachim commentedUpdated title and summary.
Comment #9
geek-merlinThis sounds like a simple dependency line in the info file should solve this.
Comment #10
sdrycroft commentedI don't think adding the Locale module as a dependency is a good fix for this. The default views should instead check for the presence of the locale module and change the view accordingly. No functionality of the module requires the Locale module, so adding it as a dependency just to fix a badly structured view is not a good fix.
Comment #11
robert castelo commentedI think this was fixed a while back as part of another issue by adding a few if (module_exists('locale')) { conditions to the legal.views.inc file.
If anyone still experiencing this please re-open.