An error occurred while attempting to process /node/add/page?_wrapper_format=drupal_ajax: ajax.$form.ajaxSubmit is not a function

Created on 28 July 2021, over 3 years ago
Updated 31 January 2024, 10 months ago

I have update drupal/core (9.2.1 => 9.2.2) and When I need to add a Basic page. the error has appeared.

๐Ÿ› Bug report
Status

Closed: outdated

Version

9.5

Component
Ajaxย  โ†’

Last updated about 12 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia heni_deepak Jaipur, Rajasthan, India

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.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia rajeshreeputra Pune

    Facing same error with 10.0.7 as well.

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil adrianopulz Florianรณpolis

    I'm facing the same issue after updating to Drupal 10.0.9. No special step to reproduce, I've updated all modules and core to the latest D9 version. After that, I upgraded to Drupal 10. I executed the drush cache rebuild and updb.

    Now I have this same message "ajax.$form.ajaxSubmit is not a function".

  • Had same issue after updating to Drupal 10.1.1.

    Got a custom route that returns AjaxResponse, but for some reason it started to throw the ajax.$form.ajaxSubmit is not a function alert.

    After searching it appears that core/jquery.form is being removed at Drupal 10. After digging into the core files, found core/internal.jquery.form is being used instead. After replacing it in the .libraries.yml file of the current theme, it started to work.

    Hope that will help someone.

  • ๐Ÿ‡ป๐Ÿ‡ณVietnam phthlaap

    Thank Engerrs,

    #16 fixed this issue.
    I'm using Drupal 10.1.4
    - Create a custom theme with base stable9
    - Add webform module
    - Add new webform, attach to a node
    - Enable Ajax for the webform

    The issue will happen. Add dependency to the theme will resolve this issue.

      dependencies:
        - core/internal.jquery.form
    
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia heni_deepak Jaipur, Rajasthan, India

    @Engerrs, thank you for reproducing this issue and also thank you to @phthlaap for testing. Perhaps we can find a solution to this bug without making any changes to Drupal 11.

  • I had same issue after upgrading to Drupal 10 from 9 with my ajax forms in which I was using use-ajax-submit class in submit buttons.
    #17 fixed the issue. Just added dependency to my library.

      dependencies:
        - core/internal.jquery.form
  • Hi All,

    I have a multistep webform, and using AJAX submit.
    I am having a upload field to attach a document, which has size restriction of 16mb.
    If user uploads a small size file below 16mb, its successfully attached and form getting submitted.
    But If User tries to upload a bigger size file beyond 16mb, getting error as
    An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (16 MB) that this server supports.

    After the error validation , if user submits the form with smaller doc or without any document. unable to submit as getting the below error.

    An error occurred while attempting to process /diversity-scholarship?ajax_form=1&_wrapper_format=html&_wrapper_format=drupal_ajax: blockSubmit is not defined

    Can somebody please suggest on this,
    Thanks in advance,
    Pashupathi Nath

Production build 0.71.5 2024