Open Closed

ABP framework bug with CMSKit in version 10.2 - version incompatibility #10584


User avatar
0
henrry.araujo created

  • Steps to reproduce the issue:

ABP framework bug (version incompatibility).

Findings" Commit 7db2059 by maliming on January 21, 2026, tagged on both rel-10.2 and 10.2.0-rc.1, did this:

Change Detail Deleted JQueryFormScriptContributor.cs — the class that contributed /libs/jquery-form/jquery.form.min.js to the global bundle Removed @abp/jquery-form NPM dependency from aspnetcore.mvc.ui.theme.shared/package.json Rewrote jquery-form-extensions.js — replaced $form.ajaxForm(options) with a native FormData + $.ajax submit handler Kept $.fn.abpAjaxForm — ABP's own wrapper, now standalone But Volo.CmsKit.Pro.Admin.Web version 10.2.0 was NOT updated to match. These 4 files still call $createForm.ajaxSubmit():

create.js:38 update.js:36 create.js:58 update.js:45 $.fn.ajaxSubmit no longer exists — it was provided by the third-party jquery-form plugin that ABP 10.2 removed. Hence: TypeError: n.ajaxSubmit is not a function.

The file wwwroot/libs/jquery-form/jquery.form.min.js is physically present (from @abp/jquery-form in your package.json), but no bundle contributor adds it to any bundle since JQueryFormScriptContributor was deleted.

What is the solution for this Bug?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • This is a known incompatibility in the ABP 10.2 line: ABP removed the third‑party jquery-form integration (so $.fn.ajaxSubmit / $.fn.ajaxForm are no longer available), but CmsKit Pro Admin (10.2.0) still contains scripts calling ajaxSubmit(), which results in TypeError: n.ajaxSubmit is not a function.

    • Definitive fix: upgrade to a CmsKit Pro package version where those scripts were updated to use ABP’s current abpAjaxForm implementation (i.e., not ajaxSubmit). Since I can’t access/verify the commercial package changelog via the available tools here, I can’t name the exact fixed patch version.

    • Immediate workaround (no waiting for a package update): add jquery-form back into the global bundles so ajaxSubmit() exists again:

      1. Ensure @abp/jquery-form is present in your web theme/package (you already have it, as you stated the file exists under wwwroot/libs/jquery-form/jquery.form.min.js).
      2. Add the script to a global bundle explicitly in your Web module:
    using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
         using Volo.Abp.Modularity;
    
         [DependsOn(typeof(AbpAspNetCoreMvcUiBundlingModule))]
         public class YourWebModule : AbpModule
         {
             public override void ConfigureServices(ServiceConfigurationContext context)
             {
                 Configure<AbpBundlingOptions>(options =>
                 {
                     // Add to the global script bundle (adjust bundle name if your UI uses a different one)
                     options.ScriptBundles.Configure(
                         StandardBundles.Scripts.Global,
                         bundle =>
                         {
                             bundle.AddFiles("/libs/jquery-form/jquery.form.min.js");
                         });
                 });
             }
         }
    
    1. Clear browser cache and restart the application.
    • Alternative workaround (code-level): replace the CmsKit Pro Admin JS calls from ajaxSubmit() to abpAjaxForm() / native FormData + $.ajax approach. However, since those files come from the NuGet/package, the practical way is to override/replace the embedded resource in your app (virtual file system) or serve your own patched scripts. (This is more invasive than just re-bundling jquery.form.min.js.)

    Sources (validated)

    • https://abp.io/contact

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I’ll fix it as soon as possible and share a temporary solution. Your current ticket has been refunded.

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    Thanks for the detailed report. This is a confirmed bug — when we removed the jquery-form package dependency and deleted JQueryFormScriptContributor in ABP 10.2, we missed updating the 4 JS files in the CmsKit module that still call ajaxSubmit().

    We've already fixed this. The fix replaces ajaxSubmit() with abp.ajax() + FormData in those files. It will be included in the next patch release.

    As a temporary workaround, you can manually add jquery-form back to the global bundle since the file is still physically present in your project:

    Configure<AbpBundlingOptions>(options =>
    {
        options.ScriptBundles.Configure(
            StandardBundles.Scripts.Global,
            bundle =>
            {
                bundle.AddFiles("/libs/jquery-form/jquery.form.min.js");
            });
    });
    

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.