Schedule Publish view referencing incorrect text_format.

Created on 5 May 2021, over 3 years ago
Updated 17 July 2024, 4 months ago

Problem/Motivation

I'm getting an Alert about the view located at /admin/structure/views/view/scheduled_publish/ that states:

Missing text format: rich_html.

Drupal 8 out of the box ships with:
basic_html
restricted_html
full_html
plain_text

Should the existing configuration be using one of the 4 text formats above?

You can find this in the config

views.view.scheduled_publish.yml

      title: 'Scheduled publish'
      header:
        area:
          id: area
          table: views
          field: area
          relationship: none
          group_type: group
          admin_label: ''
          empty: true
          tokenize: false
          content:
            value: "<div class=\"action-links\">\r\n  <a href=\"[site:url]/admin/content/scheduled-publish/add\" class=\"button button-action button--primary button--small\">Add bulk scheduled publishing entries</a>\r\n</div>"
            format: rich_html
          plugin_id: text

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

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.

  • 🇮🇪Ireland lostcarpark

    Thanks for reporting this. Sorry it's taken a while to get to it, I only took over this module recently.

    You are correct that the issue is caused by the non existent field format, and it could probably be fixed by switching to a different format.

    However, this also causes issues for the translation interface, as reported in 🐛 SID 2776211 contains div element Needs review .

    I think embedding the link in the header of the view is a hacky solution. I plan to take it out of the view and add it to the render array of the controller. This will remove any dependency of the format.

    I'll carry the change under 🐛 SID 2776211 contains div element Needs review .

  • 🇮🇪Ireland lostcarpark

    I have a change for 🐛 SID 2776211 contains div element Needs review mostly ready (just an issue with D9 tests to resolve). Would appreciate reviews.

  • Status changed to Postponed: needs info 4 months ago
  • 🇮🇪Ireland lostcarpark

    I believe this should be fixed by 🐛 SID 2776211 contains div element Needs review .

    I'm updating to "maintainer needs more info", and would appreciate if anyone could retest.

    Once I'm happy this is no longer an issue I'll move to "Closed (outdated)".

Production build 0.71.5 2024