Custom blocks are no longer displayed and no longer appear in the custom block library

Created on 6 September 2018, over 5 years ago
Updated 2 December 2023, 6 months ago

Problem/Motivation

Hello,
After updating the core from 8.5.6 to 8.6.0, the custom block library appears empty. Custom block types still exist, but the custom block list is empty. Yet, they still exist in the database.

On the Block Layout page, custom blocks are listed in their place in the regions, but they do not appear with the message :

This block is defective or missing. The content is missing or you may need to activate the original module

.The TypedConfigManager.php file is identical to https://cgit.drupalcode.org/drupal/tree/core/lib/Drupal/Core/Config/Type... and I restarted the server without success.

The update operations for the blocks ran successfully :
block_content 8600 hook_update_n Add 'reusable' field to 'block_content' entities.
block_content add_views post-update Adds a 'reusable' filter to _reusable Custom Block views. _filter

The drush command php with

$ service=\Drupal :: service ('config.typed');
get_class ($ service);

return :

=> Drupal\Core\Config\TypedConfigManager {# 917
     + "_ serviceId": "config.typed",
   }

And after a press on entry :

=> "Drupal\Core\Config\TypedConfigManager"

Commenting out the line $context->setTypedDataManager($old_context->getTypedDataManager());in the core/lib/Drupal/Core/Plugin/Context/Context::createFromContext() file does not solve the problem.

Thank you for considering this case

Steps to reproduce

None have been provided for starting at install Drupal core

Proposed resolution

Workaround

Running this command drush sqlq "update block_content_field_data set reusable = 1;" | drush cr fixed it. From #9 πŸ› Custom blocks are no longer displayed and no longer appear in the custom block library Closed: cannot reproduce

or

the patch in #21 πŸ› Custom blocks are no longer displayed and no longer appear in the custom block library Closed: cannot reproduce

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: cannot reproduce

Version

9.5

Component
Block contentΒ  β†’

Last updated 23 days ago

Created by

πŸ‡«πŸ‡·France ohmdesbois

Live updates comments and jobs are added and updated live.
  • Regression

    It restores functionality that was present in earlier versions.

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.

Production build 0.69.0 2024