drupal.js?v=10.4.1:64 Uncaught TypeError: rowHandlers[data.rowHandler] is not a constructor

Created on 31 January 2025, 5 days ago

Hello,

I get this error immediately after clicking the 'Add field group' button (Structure > Content Type -> Manage Form Display).

drupal.js?v=10.4.1:64 Uncaught TypeError: rowHandlers[data.rowHandler] is not a constructor
    at HTMLTableRowElement.<anonymous> (field_ui.js?v=10.4.1:125:32)
    at Function.each (jquery.min.js?v=3.7.1:2:3129)
    at ce.fn.init.each (jquery.min.js?v=3.7.1:2:1594)
    at Object.attach (field_ui.js?v=10.4.1:116:10)
    at field_ui.js?v=10.4.1:55:32
    at Array.forEach (<anonymous>)
    at Object.attach (field_ui.js?v=10.4.1:54:9)
    at drupal.js?v=10.4.1:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.4.1:162:34)

I tried with both versions of the field group module.

composer require 'drupal/field_group:^3.6'
composer require 'drupal/field_group:^4.0@alpha'
cat web/modules/contrib/field_group/field_group.info.yml | grep version
core_version_requirement: ^10.3 || ^11
version: '4.0.0-alpha1'
๐Ÿ› Bug report
Status

Active

Version

3.6

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States drupol

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

Comments & Activities

  • Issue created by @drupol
  • @drupol, I am unable to replicate the issue for both drupal/field_group:^3.6 and drupal/field_group:^4.0@alpha. It could be an issue with another module and not caused by this module. Additionally, can you provide the contemt type for which you are getting this issue and also attach a screenshot of the error.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinayakmk47

    Hello @drupol,

    I tried to replicate the issue you reported after clicking the "Add field group" button (Structure > Content Type > Manage Form Display), but I couldn't reproduce it on my end.

    Hereโ€™s what I tested:

    Cleared caches using drush cr and cleared browser cache.
    Tested with both field_group versions: 3.6 (stable) and 4.0.0-alpha1.
    Verified compatibility with Drupal Core (10.4.1 in my setup).
    Checked for any JavaScript errors in the browser console, but found none.
    The functionality worked as expected without throwing the rowHandlers[data.rowHandler] is not a constructor error.

    If the issue persists for you, it might be related to your environment or customizations. I recommend:

    Clearing caches again (drush cr).
    Checking for JavaScript conflicts caused by other modules or custom scripts.
    Verifying that all module files are installed correctly by running composer install.
    Testing in an incognito/private browser window to rule out cache issues.
    If the problem continues, it could help to share more details, such as your exact Drupal version, enabled modules, or any customizations applied to the field UI.

    Let me know if you need further assistance!

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vinayakmk47

    Hello @drupol,

    I tried to replicate the issue you reported after clicking the "Add field group" button (Structure > Content Type > Manage Form Display), but I couldn't reproduce it on my end.

    Hereโ€™s what I tested:

    Cleared caches using drush cr and cleared browser cache.
    Tested with both field_group versions: 3.6 (stable) and 4.0.0-alpha1.
    Verified compatibility with Drupal Core (10.4.1 in my setup).
    Checked for any JavaScript errors in the browser console, but found none.
    The functionality worked as expected without throwing the rowHandlers[data.rowHandler] is not a constructor error.

    If the issue persists for you, it might be related to your environment or customizations. I recommend:

    Clearing caches again (drush cr).
    Checking for JavaScript conflicts caused by other modules or custom scripts.
    Verifying that all module files are installed correctly by running composer install.
    Testing in an incognito/private browser window to rule out cache issues.
    If the problem continues, it could help to share more details, such as your exact Drupal version, enabled modules, or any customizations applied to the field UI.

    Let me know if you need further assistance!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States mengi

    This a duplicate of https://www.drupal.org/project/field_group/issues/3491233 ๐Ÿ› Drupal 10.4 RC1 error with field_ui.js Active . There is a working patch in there.

Production build 0.71.5 2024