Problem/Motivation

Configuration objects provided by blog have unmet dependencies: field.field.node.blo
g_post.body (field.storage.node.body)

I checked the drupal 11 instance,its field name is like “node.blog_post.field_body” for the content type blog_post

please check it and I really hope to user the mutilple users blog system

thanks very much

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#4 blog-fix-11-3-x-3546341-4.patch291 bytessmulvih2

Comments

jjwfcd created an issue. See original summary.

nevergone’s picture

Status: Active » Postponed (maintainer needs more info)

I just tested it with the latest Drupal 11.2.x and version 3.1.4 of the Blog module:

www-data@cli-drupal11-test:/var/www$ drush st
Drupal version   : 11.2.8                                
Site URI         : http://web-drupal11-test.docker.test/ 
DB driver        : mysql                                 
DB hostname      : mysql                                 
DB port          : 3306                                  
DB username      : mysql                                 
DB name          : drupal11_test                         
Database         : Connected                             
Drupal bootstrap : Successful                            
Default theme    : stark                                 
Admin theme      : seven                                 
PHP binary       : /usr/bin/php8.3                       
PHP config       : /etc/php/8.3/cli/php.ini              
PHP OS           : Linux                                 
PHP version      : 8.3.6                                 
Drush script     : /var/www/vendor/bin/drush.php         
Drush version    : 13.6.2.0                              
Drush temp       : /tmp                                  
Drush configs    : /etc/drush/drush.yml                  
                   /var/www/vendor/drush/drush/drush.yml 
Install profile  : minimal                               
Drupal root      : /var/www/web                          
Site path        : sites/default                         
Files, Public    : sites/default/files                   
Files, Temp      : /tmp                                  
Drupal config    : ../config/sync                        
www-data@cli-drupal11-test:/var/www$ drush si minimal -y
 You are about to:
 * DROP all tables in your 'drupal11_test' database.

 // Do you want to continue?: yes.                                                                                      

 [notice] Starting Drupal installation. This takes a while.
 [notice] Performed install task: install_select_language
 [notice] Performed install task: install_select_profile
 [notice] Performed install task: install_load_profile
 [notice] Performed install task: install_verify_requirements
 [notice] Performed install task: install_verify_database_ready
 [notice] Performed install task: install_base_system
 [notice] Performed install task: install_bootstrap_full
 [notice] Performed install task: install_profile_modules
 [notice] Performed install task: install_profile_themes
 [notice] Performed install task: install_install_profile
 [notice] Performed install task: install_configure_form
 [notice] Performed install task: install_finished
 [success] Installation complete. (Admin)
 [success] User name: admin  User password: DJj7ryqzPY
www-data@cli-drupal11-test:/var/www$ drush en -y blog; drush cr
The following module(s) will be installed: blog, comment, menu_ui, menu_link_content, link, path, taxonomy, views

 // Do you want to continue?: yes.                                                                                      

 [success] Module blog has been installed.
 [success] Module comment has been installed. (Permissions - Configure)
 [success] Module menu_ui has been installed. (Configure)
 [success] Module menu_link_content has been installed.
 [success] Module link has been installed.
 [success] Module path has been installed. (Permissions - Configure)
 [success] Module taxonomy has been installed. (Permissions - Configure)
 [success] Module views has been installed.
 [success] Cache rebuild complete.
smulvih2’s picture

Status: Postponed (maintainer needs more info) » Active

I am running into this issue too, during my upgrade for core 11.2.x to 11.3.x. The issue is, core's node module in 11.2.x provides the base config for the body field, but it has been moved for 11.3.x:

Drupal 11.2.x node body config - https://git.drupalcode.org/project/drupal/-/tree/11.2.x/core/modules/node/config/install?ref_type=heads

Drupal 11.3.x node body config - https://git.drupalcode.org/project/drupal/-/tree/11.3.x/core/modules/node/modules/node_storage_body_field/config/install?ref_type=heads

So core moved the required config into a new sub-module of node, called node_storage_body_field. So I think the fix here is actually adding this new sub-module as a dependency of drupal/blog.

smulvih2’s picture

StatusFileSize
new291 bytes

Adding patch to test this against my automated build.

smulvih2’s picture

Status: Active » Needs review

I tested patch #4 and it works for me.