Cannot edit config messages as admin

Created on 22 May 2023, about 1 year ago
Updated 18 August 2023, 10 months ago

I have a fresh installation of Webform on Drupal 9.5.9 and when I go to edit messages at admin/structure/webform/config all the message boxes have

“This field has been disabled because you do not have sufficient permissions to edit it.”

even though I am logged in as an admin with all permissions checked. This applies to the Administrative description when clicking on “Add webform” as well. When I log in as user 1 the problem disappears. The admin role has permission to use all the text formats and editors. I must be missing something really obvious!

💬 Support request
Status

Closed: outdated

Version

6.2

Component

Code

Created by

🇭🇺Hungary Grabby

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

Comments & Activities

  • Issue created by @Grabby
  • 🇺🇸United States cilefen

    That is what a Drupal textarea field shows when the user cannot access the current text format.

  • Status changed to Postponed: needs info about 1 year ago
  • 🇺🇸United States jrockowitz Brooklyn, NY

    I suspect that the update hooks for ckeditor5 were not triggered.

    Please go to /admin/structure/webform/config/elements and make sure the 'HTML editor settings' are set to "- Default -."

  • 🇭🇺Hungary Grabby

    Thank you for the suggestion. I checked the ‘HTML Editor Settings’ and both ‘Element text format’ and ‘Mail text format’ were set to default. I tried checking ‘Disable HTML editor’ and now was allowed to change the message boxes. I tried re-enabling ‘HTML Editor Settings’ and I got back to where I started, not able to edit the messages. Then I changed the settings from default to ‘Full HTML’, then ‘Restricted HTML’, then ‘Basic HTML’, and finally ‘Plain text’. Those all worked. When I changed back to ‘Default’ I again got the message that I had insufficient permissions to edit it, so the only setting that didn’t work was ‘Default’!

  • 🇺🇸United States jrockowitz Brooklyn, NY

    I think you failed to export the new webform filter format and editor settings after updating the module.

    You must see if these files are included in your exported configuration.

    https://git.drupalcode.org/project/webform/-/tree/6.2.x/config/optional

  • 🇭🇺Hungary Grabby

    Not sure what I should have updated since it’s a fresh installation of 6.2.0-beta5. All the files listed in the link are in my exported configuration.

  • 🇺🇸United States jrockowitz Brooklyn, NY

    What version of Drupal are you using?

    Do you have Ckeditor4 or Ckeditor5 enabled?

  • 🇭🇺Hungary Grabby

    I’m running 9.5.9 and have CKEditor 5 enabled. I am also using CKEditor Font Size and Family .

  • 🇺🇸United States jrockowitz Brooklyn, NY

    My best guess is something is off with your webform filter/editor configuration.

    Please check that the below file has the authenticated role assigned to it.

    @see https://git.drupalcode.org/project/webform/-/blob/6.2.x/config/optional/...

  • 🇺🇸United States jrockowitz Brooklyn, NY

    My best guess is something is off with your webform filter/editor configuration.

    Please check that the below file has the authenticated role assigned to it.

    @see https://git.drupalcode.org/project/webform/-/blob/6.2.x/config/optional/...

  • 🇭🇺Hungary Grabby

    For reasons unrelated to Webform I switched branches in my workflow to one where Webform was not installed yet, then installed it, imported my form config from the first branch, and the problem went away, though my new filter.format.webform_default.yml file had no role delimiter. I manually added the role delimiter as shown in your yml file and everything is still good, so not sure what happened initially, but you can mark this issue closed. Thanks for your help!

  • Status changed to Closed: outdated about 1 year ago
  • 🇺🇸United States jrockowitz Brooklyn, NY

    ...though my new filter.format.webform_default.yml file had no role delimiter

    If anyone runs into a similar issue, this is what they need to investigate. If they underlying issue is reproducible and not related to misconfiguration, please report it.

  • This same issue occurred for me this morning.

    I do see the optional config files that have been shared above, these were installed with the update. But, I am not aware if they need configuring somewhere beyond the imported config.

    The quick fix for me was selecting Full HTML, as the particular user that will be updating forms has permission to use that editor.

  • ivnish Poland

    I can't reproduce this.

    1) I have new site with webform 6.1.5
    2) I created new user with role "administrator"
    3) go to /admin/structure/webform/config
    4) All text fields are accessible

  • ivnish Poland

    cilefen, jrockowitz if this issue is "Closed (outdated)" can we remove it from "webform 6.2 plan"?

  • 🇺🇸United States DamienMcKenna NH, USA

    Removing from the 6.2.0 list as it seems like a configuration or permissions problem.

Production build 0.69.0 2024