Not compatible with conditional_fields module

Created on 9 January 2024, 11 months ago
Updated 11 February 2024, 10 months ago

Problem/Motivation

Error: Call to a member function bundle() on null in Drupal\conditional_fields\ConditionalFieldsElementAlterHelper->afterBuild() (line 64 of modules/contrib/conditional_fields/src/ConditionalFieldsElementAlterHelper.php).
conditional_fields_element_after_build(Array, Object)
call_user_func_array('conditional_fields_element_after_build', Array) (Line: 1083)

Steps to reproduce

Install conditional_fields module composer require 'drupal/conditional_fields:^4.0@alpha'
Go to admin/config/development/configuration/config-split/add

Proposed resolution

Add config split entity in $form["#entity"]

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇺🇸United States khaldoon_masud

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

Comments & Activities

  • Issue created by @khaldoon_masud
  • 🇮🇳India samir_shukla bareilly

    Hi, I was facing this issue Drupal\Component\Plugin\Exception\PluginNotFoundException: The "config_split" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() and it got solved when i cleared all cache from /admin/config/development/configuration/config-split/add and i didnt face the specific error mentioned by you. Can you try doing the same, whether it solves your issue as well. Here is the image of the page as well.

  • 🇺🇸United States khaldoon_masud

    @samir_shukla, Thanks for the suggestion.
    The problem is that I can't even load the page /admin/config/development/configuration/config-split,
    I get the below error:
    Error: Call to a member function bundle() on null in Drupal\conditional_fields\ConditionalFieldsElementAlterHelper->afterBuild() (line 64 of modules/contrib/conditional_fields/src/ConditionalFieldsElementAlterHelper.php).
    conditional_fields_element_after_build(Array, Object)
    call_user_func_array('conditional_fields_element_after_build', Array) (Line: 1083)

  • 🇨🇭Switzerland bircher 🇨🇿

    Unless someone can point out to me how config split is not using EntityForm correctly despite it working in all other circumstances I think this is rather a bug with conditional_fields.

  • 🇺🇸United States khaldoon_masud

    Not sure where the fix needs to happen, I also logged a ticket in the conditional_fields module https://www.drupal.org/project/conditional_fields/issues/3413906 🐛 Not compatible with config_split module Active

  • Status changed to Closed: works as designed 10 months ago
  • 🇨🇭Switzerland bircher 🇨🇿

    There is an issue opened on the other module and nobody could point out what the mistake would be in config split. So I am closing this issue.
    Please don't hesitate to open it again in case there is really something wrong in Config Split.

Production build 0.71.5 2024