Module crashes configuration import

Created on 6 August 2019, over 5 years ago
Updated 5 March 2025, about 1 month ago
    The configuration cannot be imported because it failed validation for the following reasons:
    Configuration block.block.privatemessageactions depends on the Bartik theme that will not be installed after import.
    Configuration block.block.privatemessageinbox depends on the Bartik theme that will not be installed after import.
    Configuration block.block.privatemessagenotification depends on the Bartik theme that will not be installed after import.

Hi,
error message above appears and it's impossible to import my site configuration (although I don't use bartik at any time on my site). IMO it's an error that the module depends on bartik.

Changing the yaml file doesn't work for me, because the checksum isn't valid then.

My block.block.privatemessageinbox.yml at /admin/config/development/configuration/single/export shows this:

uuid: 11a913e2-83dd-48c3-ab51-9445da996c76
langcode: de
status: false
dependencies:
  module:
    - private_message
    - system
  theme:
    - bartik
_core:
  default_config_hash: l3BQDhyCtI6351203W83eL1vO9MzqkIKdzAKhO7BYPY
id: privatemessageinbox
theme: bartik
region: ''
weight: 0
provider: null
plugin: private_message_inbox_block
settings:
  id: private_message_inbox_block
  label: 'Private Nachricht - Posteingang'
  provider: private_message
  label_display: visible
  thread_count: 5
  ajax_load_count: 5
  ajax_refresh_rate: 15
visibility:
  request_path:
    id: request_path
    pages: "/private_messages\r\n/private_messages/*"
    negate: false
    context_mapping: {  }
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany dercheffe Sersheim, Germany

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.

  • 🇵🇹Portugal TiagoZ

    I have an issue with version when upgrande to version 3.0.7. I want to load the block programmatically

    $block = Block::load('privatemessagenotification');
    

    but is not working anymore since i upgrade the Drupal version to 10 because the config depends on bartik and we dont use it. Can someone create a patch for this?

Production build 0.71.5 2024