Problem/Motivation

The form at /admin/config/search/path/patterns/add doesn't fully work with JavaScript enabled, when Config Enforce Devel is installed.

Steps to reproduce

  1. Clean install of Drupal 11.x
  2. Install Config Enforce Devel
  3. Navigate to /admin/config/search/path/patterns/add
  4. Select an option from the Pattern type select list

Expected result: The form works as expected, presenting Path pattern, token browser, and bundle selection elements.

Expected result of pathauto form

Actual result: The additional form elements do not appear, and there is an AJAX error.

Actual result of pathauto form

Error message:

Exception: Serialization of 'Closure' is not allowed in serialize() (line 14 of /var/www/html/.local-dev/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php).

Proposed resolution

TBD, disabling enforce by default has no effect.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

star-szr created an issue. See original summary.

star-szr’s picture

Issue summary: View changes

star-szr’s picture

Title: Enforce by default submit handler conflicts with pathauto new pattern form » DevelEnforceFormHandler cannot be serialized: bugs on config forms that use AJAX
Status: Active » Needs review

Re-titling, and there is an MR now.

  • star-szr committed ec0d950d on 2.0.x
    fix: #3559287 DevelEnforceFormHandler could not be serialized
    
    Without...
star-szr’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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