Installing civictheme via drush results in "This block is broken or missing." on main page

Created on 6 August 2024, 7 months ago
Updated 4 September 2024, 6 months ago

Problem/Motivation

When installing/enabling civictheme via drush, it results in home page with errors, whereas installing via gui works fine.

Steps to reproduce

Assuming you have all the prerequisites for civictheme installed, run:
drush theme:enable civictheme -y

Go to the main page and you will see a series of blocks that says:
This block is broken or missing. You may be missing content or you might need to install the original module.

When enabling civictheme via drush, there are errors which may be related to this issue (?), see issue: 3465078

Doing everything else the same, but installing via the GUI results in a page without errors.

Proposed resolution

Unsure

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

1.8

Component

Code

Created by

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

Comments & Activities

  • Issue created by @javexed
  • Assigned to RichardGaunt
  • @richardgaunt can you please check this one out? Thanks.

  • πŸ‡¦πŸ‡ΊAustralia RichardGaunt Melbourne

    @javexed Apologies for the slow reply but did you manage to install civichteme with the blocks correctly placed?

    There are installation instructions provided here:

    https://docs.civictheme.io/development/drupal-theme

    I have tried to replicate but when I have followed installation instructions it has worked.

  • Issue was unassigned.
  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡¦πŸ‡ΊAustralia RichardGaunt Melbourne
  • πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

    I'm seeing this error every no matter how I install the theme and subtheme so I'm not sure my "steps to reproduce" would actually help.

    I've tried following:

    - the project page: https://www.drupal.org/project/civictheme β†’
    - the docs: https://docs.civictheme.io/development/drupal-theme, https://docs.civictheme.io/development/drupal-theme/sub-theme
    - the "Next steps" after installing civic theme subtheme dependencies:

        npm install
        npm run build
        npm run storybook
    
      Enable theme in Drupal:
    
        drush theme:enable civictheme -y
        drush config-set system.theme default civictheme
        drush theme:enable dink_civic -y
        drush config-set system.theme default dink_civic

    I've tried via GUI and Drush for each step. Using Drush to install CivicTheme produced the following "warnings":

    drush then civictheme
     [warning] The "extra_field_block:node:civictheme_page:content_moderation_control" was not found
     [warning] The "extra_field_block:node:civictheme_page:content_moderation_control" was not found
     [warning] The "extra_field_block:node:civictheme_event:content_moderation_control" was not found
     [warning] The "extra_field_block:node:civictheme_event:content_moderation_control" was not found
     [warning] The "block_content:50c52459-c100-4e4d-92a4-9c4c77d8f8d0" was not found
     [warning] The "block_content:7cf65f98-cbae-4e9d-b6ea-7d6d1c437c1c" was not found
     [warning] The "block_content:d7098a8c-3ba3-48f7-bc0c-5787ebaa0427" was not found
     [warning] The "block_content:5c0ad15f-3e9c-4eeb-8525-7a064b06fc58" was not found
     [warning] The "block_content:b7f36176-620f-4178-aadd-9b448c610986" was not found
     [warning] The "block_content:286ff750-a9a9-423a-8a4e-515f79fc0a8f" was not found
     [warning] The "block_content:5508dc51-1cf8-4577-9038-b572fbd698ae" was not found
  • πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

    Never mind. Go to /admin/appearance/settings/civic_subtheme, go to "Content provisioning" and click "Provision content".

  • πŸ‡ΊπŸ‡ΈUnited States cruzxalejandro

    Thank you @imclean, I was running into the same issue as op. I can confirm "Provision content" fixed my issue.

Production build 0.71.5 2024