Validation errors on block.block.ai_chatbot

Created on 24 June 2025, 3 days ago

Problem/Motivation

I required drupal/drupal_cms_ai on a Drupal 11.2 site. On application, I receive the following validation errors.

1/4 [▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░]
Installed configuration for Content editor role recipe.

In ConfigActionManager.php line 167:

  There were validation errors in block.block.ai_chatbot:
  - dependencies.theme.0: This value should not be blank.
  - dependencies.theme.0: Theme '' is not installed.
  - theme: This value should not be blank.
  - theme: Theme '' is not installed.
  - region: This value should not be blank.
  - region: This block does not say which theme it appears in.

Steps to reproduce

composer require drupal/drupal_cms_ai
drush recipe ../recipes/drupal_cms_ai
🐛 Bug report
Status

Active

Component

Track: AI

Created by

🇺🇸United States thejimbirch Cape Cod, Massachusetts

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

Comments & Activities

  • Issue created by @thejimbirch
  • 🇺🇸United States thejimbirch Cape Cod, Massachusetts

    Is the block is created using the placeBlockInAdminTheme config action?

        block.block.ai_chatbot:
          placeBlockInAdminTheme:
            region:
              gin: content
              claro: content
            default_region: content
            plugin: ai_deepchat_block
            settings:
              id: ai_deepchat_block
              label: 'Drupal Agent Chatbot'
              label_display: '0'
              provider: ai_chatbot
              ai_assistant: drupal_agent_assistant
              bot_name: 'Drupal Agent'
              stream: 0
              default_avatar: /core/misc/druplicon.png
              first_message: 'Hello! How can I assist you today?'
              show_structured_results: 1

    ai_chatbot is a submodule of the ai module. It has no config entities, nor does the ai module.

  • 🇺🇸United States thejimbirch Cape Cod, Massachusetts

    If I manually create the block and export the config, it looks like this. Most of the additional settings are the default values.

    langcode: en
    status: true
    dependencies:
      module:
        - ai_chatbot
      theme:
        - gin
    id: ai_chatbot
    theme: gin
    region: content
    weight: 0
    provider: null
    plugin: ai_deepchat_block
    settings:
      id: ai_deepchat_block
      label: 'Drupal Agent Chatbot'
      label_display: visible
      provider: ai_chatbot
      ai_assistant: drupal_agent_assistant
      bot_name: 'Drupal Agent'
      bot_image: /core/misc/druplicon.png
      use_username: 1
      default_username: User
      use_avatar: 1
      default_avatar: /core/misc/favicon.ico
      first_message: 'Hello! How can I assist you today?'
      stream: 0
      toggle_state: remember
      width: 400px
      height: 500px
      placement: bottom-right
      show_structured_results: false
      show_copy_icon: true
      collapse_minimal: false
      style_file: 'module:ai_chatbot:bard.yml'
      verbose_mode: false
    visibility: {  }
    
  • 🇺🇸United States phenaproxima Massachusetts

    I've seen this bug before; you'll get it if you don't have a theme installed. What is the situation you're running this on? Is it an existing site? Can you give me some steps to reproduce this from scratch?

  • 🇺🇸United States thejimbirch Cape Cod, Massachusetts

    This was a new site spinup on 11.2 for an internal demo. It's been buggy, so it could be something unrelated.

    But my unusual thing here is that I only have Gin as the front end and admin theme.

    Steps to replicate

    drush si minimal -y
    composer require drupal/gin drupal/drupal_cms_ai
    drush uli
    Visit /admin/appearance
    Set Gin as the default theme
    Set Default theme as the Administration theme
    Save
    drush recipe ../recipes/drupal_cms_ai
    
Production build 0.71.5 2024