Error when trying to create a new Webform

Created on 27 June 2023, over 1 year ago
Updated 28 June 2023, over 1 year ago

Problem/Motivation

After upgrading to Drupal core 10.1.0 and latest version of Webform, I am no longer able to create a Webform.

Steps to reproduce

  1. Navigate to: /admin/structure/webform
  2. Click Add Webform
  3. Enter title and machine name
  4. Click Save

An error occurred while attempting to process /admin/structure/webform/add?_wrapper_format=drupal_modal&ajax_form=1&_wrapper_format=drupal_ajax: ajax.$form.ajaxSubmit is not a function

🐛 Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

🇺🇸United States sassafrass

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

Comments & Activities

  • Issue created by @sassafrass
  • 🇮🇳India snehal-chibde

    @sassafrass, I installed Drupal core 10.1.0 and Webform 6.2.0-beta6 followed the steps as mention in the "Steps to reproduce" but not able to replicate the issue.

  • There must be some other conditions or setup needed. There have been issues opened in the core queue about CSS/JS asset generation changes.

  • 🇺🇸United States sassafrass

    Thanks for the quick response. I think you are right and this may be due to a core issue given your comment and the fact that I see the following issues in the console:

    webform:1 Refused to execute script from 'https://fonts.googleapis.com/css?family=Crimson+Text:400,400i,600,600i%7CMontserrat:300,400,600,700&display=swap' because its MIME type ('text/css') is not executable, and strict MIME type checking is enabled.
    
    ajax.js?v=10.1.0:1118 An error occurred during the execution of the Ajax response: The following files could not be loaded: //fonts.googleapis.com/css?family=Crimson+Text:400,400i,600,600i|Montserrat:300,400,600,700&display=swap1
    (anonymous) @ ajax.js?v=10.1.0:1118
  • 🇺🇸United States sassafrass

    So this came down to an edge case where our custom theme is trying to load fonts into a WYSWIG, which fails when that WYSIWYG is in a modal. Closing - Works as designed. Thanks!

  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024