Intermittent "broken/missing handler" when using socrata_views

Created on 24 February 2022, about 3 years ago
Updated 22 February 2023, about 2 years ago

Problem/Motivation

Occasionally after a cache clear a view created to use a Socrata endpoint with the socrata_views module will show "broken/missing handler" for all of the view's fields.

Steps to reproduce

  1. Enable Socrata and Socrata Views modules
  2. Create an endpoint to a valid Socrata dataset. In this case I'm using WDFW-Fish Plants
  3. Create a Socrata view block using the above endpoint, assign fields, save.
  4. In the Drupal admin menu UI, click the "Flush all caches" link: /admin/flush
  5. The view will show "broken/missing handler" for all of the fields.
  6. Try "Flush all caches" again (and sometimes again) and the field handlers reappear and the view works again.

Proposed resolution

After going over the code it looks like there is a naming issue in the socrata_views module where hook_views_data() is defined. The function name should be socrata_views_views_data(). Once I made that change and pushed to my site, I haven't been able to cause that "broken/missing handler" error to appear again when I clear cache, where before it happened pretty consistently.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mikeedfw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024