Webform issue during enabling

Created on 28 June 2024, 4 months ago
Updated 19 July 2024, 3 months ago

Problem/Motivation

Webform 6.2.3 gives the error message "In Role.php line 210:
Adding non-existent permissions to a role is not allowed. The incorrect permissions are "execute node_assign_owner_action node", "execute node_unpublish_by_keyword_action node".

It's also missing the configuration form.

Steps to reproduce

drush en webform, drush updb, drush cr
drush pmu webform, drush updb, drush cr

These are the latest messages when running drush ws

3066655 28/Jun 14:53 system Info webform module uninstalled.
3066654 28/Jun 14:52 php Error RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions
are "execute node_assign_owner_action node", "execute node_unpublish_by_keyword_action
3066653 28/Jun 14:46 system Info webform module uninstalled.
3066652 28/Jun 14:45 php Error RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions
are "execute node_assign_owner_action node", "execute node_unpublish_by_keyword_action
3066651 28/Jun 14:45 php Error RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions
are "execute node_assign_owner_action node", "execute node_unpublish_by_keyword_action
3066650 28/Jun 14:42 system Info webform module uninstalled.
3066649 28/Jun 14:42 system Info webform_ui module uninstalled.
3066648 28/Jun 14:33 update Warning Schema information for module webform was missing from the database. You should manually review the
module updates and your database to check if any updates have been skipped up to, and in

Also, when trying to enable through the UI, it gives the white screen error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

6.2

Component

Code

Created by

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

Comments & Activities

  • Issue created by @albertho425
  • I'm using the webform on my Drupal 10 multisites. Got it to work on 3 multisites, but the original multisite just won't work despite uninstalling, reinstalling, updb, cr.

  • It looks like the configuration is mangled on that site. Have you tried drush webform:repair?

  • Thank you. drush webform:repair did the trick. The main site and all 12 multisites are working now. Thanks.

  • Status changed to Fixed 4 months ago
  • Sorry, I spoke too soon. The repair command works on local, but not on staging. On staging, the config form is still missing for the main site.

    It still gives this message when running drush en web

    In Role.php line 210:

    Adding non-existent permissions to a role is not allowed. The incorrect permissions are "execute node_assign_owner_action node",
    "execute node_unpublish_by_keyword_action node".

    When running drush ws it says

    ----------------------
    3067837 29/Jun 12:05 update Warning Schema information for module webform was missing from the database. You should
    manually review the module updates and your database to check if any updates
    have been skipped up

    drush updb, drush cr, drush webform:repair, and drush pmu webform doesn't work on staging. There are 3 other multisites on staging that are running webform without issue.

    Is there a SQL query I could run?

  • I read this link: https://git.drupalcode.org/project/webform/-/blob/6.2.x/includes/webform... and referenced webform_update_8637() but couldn't figure what I'm supposed to do.

    Today I ran

    drush pm-uninstall webform
    drush en webform

    and it says In Role.php line 210:
    Adding non-existent permissions to a role is not allowed. The incorrect permissions are "execute node_assign_owner_action node", "execute node_unpublish_by_key
    word_action node".

    In the logs, it doesn't log webform as installing. When I try to install again, it says webform already enabled.

    Next I tried the following commands which didn't help:
    drush php-eval 'node_access_rebuild();'
    drush updb
    drush cr

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • 🇳🇿New Zealand ericgsmith

    @albertho425 I believe your issue is unrelated to webform and is related to the node_assign_owner_action action plugin moving from node to the deprecated actions ui module.

    You can enable the actions module (part of core) if you need these plugins.

    I've opened 📌 Undo deprecation of UnpublishByKeyword and AssignOwnerNode action plugins Active to undo that move

Production build 0.71.5 2024