Problem/Motivation

After installing the required modules, I enabled the base theme and was given a 500 error, with two PHP errors in the Watchdog log.

Field paragraph.civictheme_map.field_c_p_address exists but is missing a corresponding field definition and may be misconfigured.
A non-existent config entity name returned by FieldStorageConfigInterface::getBundles(): entity type: paragraph, bundle: civictheme_map, field name: field_c_p_address

Steps to reproduce

- Install Drupal 10
- Install Components beta 3
- Install the CivicTheme
- Enable the required modules
- Enable the theme via the Appearance admin UI screen

@moziauddin, @Laurent-21
The errors you described are not related to this ticket. Please see a core issue and a patch https://www.drupal.org/node/3204271

Comments

Toby Wild created an issue. See original summary.

toby wild’s picture

Also now getting this error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "civictheme_one_column" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are: layout_twocol_section, layout_threecol_section, layout_fourcol_section, layout_onecol, layout_twocol, layout_twocol_bricks, layout_threecol_25_50_25, layout_threecol_33_34_33, layout_builder_blank in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /Users/tobywild/Sites/second/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

toby wild’s picture

Fixing attribution on original issue.

moziauddin’s picture

Hello team,
I can also replicate this issue, I am using

  • PHP v8.1.26
  • composer v2.6.6
  • Drupal v10.2
  • Civic theme v1.6.2
  • Components v3-beta

I tried to downgrade to civictheme v1.6.0 and v1.5.2 without any luck. Please help.

Errors:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "civictheme_one_column" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are: layout_twocol_section, layout_threecol_section, layout_fourcol_section, layout_onecol, layout_twocol, layout_twocol_bricks, layout_threecol_25_50_25, layout_threecol_33_34_33, layout_builder_blank in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /home/*/public_html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Twig\Error\LoaderError: Template "@organisms/list/list.twig" is not defined in "themes/contrib/civictheme/templates/views/views-view.html.twig" at line 7. in Twig\Loader\ChainLoader->getCacheKey() (line 99 of /home/*/public_html/vendor/twig/twig/src/Loader/ChainLoader.php).
laurent-21’s picture

Hello, same error for me :

PHP v8.1.26
composer v2.6.6
Drupal v10.2.2
Civic theme v1.6.2
Components v3-beta

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "civictheme_one_column" plugin does not exist. Valid plugin IDs for Drupal\Core\Layout\LayoutPluginManager are: layout_twocol_section, layout_threecol_section, layout_fourcol_section, layout_onecol, layout_twocol, layout_twocol_bricks, layout_threecol_25_50_25, layout_threecol_33_34_33, layout_builder_blank in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('civictheme_one_column') (Line: 169)
Drupal\layout_builder\Section->getDefaultRegion() (Line: 239)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getDefaultRegion() (Line: 168)
Drupal\Core\Entity\EntityDisplayBase->init() (Line: 153)
Drupal\Core\Entity\EntityDisplayBase->__construct(Array, 'entity_view_display') (Line: 181)
Drupal\Core\Entity\Entity\EntityViewDisplay->__construct(Array, 'entity_view_display') (Line: 48)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->__construct(Array, 'entity_view_display') (Line: 418)
Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords(Array) (Line: 41)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplayStorage->mapFromStorageRecords(Array) (Line: 424)
Drupal\Core\Config\Entity\ConfigEntityStorage->_doCreateFromStorageRecord(Array) (Line: 399)
Drupal\Core\Config\Entity\ConfigEntityStorage->createFromStorageRecord(Array) (Line: 386)
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array) (Line: 149)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('theme', 'civictheme') (Line: 75)
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('theme', 'civictheme') (Line: 244)
Drupal\Core\Extension\ThemeInstaller->install(Array) (Line: 141)
Drupal\system\Controller\ThemeController->install(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

alex.skrypnyk’s picture

The "civictheme_one_column" is a core issue and it was discussed here https://www.drupal.org/project/civictheme/issues/3401376

alex.skrypnyk’s picture

Assigned: Unassigned » joshua1234511

@joshua1234511
could you please check if the issue still appears by following the steps provided in the issue summary.

Please try to use the latest 1.6.x version.

fionamorrison23’s picture

Issue tags: +civictheme-release-1.8
fionamorrison23’s picture

Issue tags: -civictheme-release-1.8 +civictheme-release-1.7
kristen pol’s picture

Using the dev version fixed the error for me.

joshua1234511’s picture

@alexskrypnyk

Tried to replicated the issue using latest 1.6.x version

Results

Test 1
Issue is replicable if
- Install Drupal 10
- Install Components beta 3
- Install the CivicTheme
- Enable the required modules
- Enable the theme via the Appearance admin UI screen
Clear cache is not done after the Theme download/ or added via composer. (https://www.drupal.org/project/civictheme/issues/3401376)

Test 2
Issue Non Replicable
- Install Drupal 10
- Install Components beta 3
- Install the CivicTheme
- Clear Cache
- Enable the required modules
- Enable the theme via the Appearance admin UI screen

alex.skrypnyk’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Our documentation describes the steps that should be taken to instal CivicTheme - https://docs.civictheme.io/development/drupal-theme/using-in-govcms-saas...

The order is as follows:

- Install Drupal 10
- Enable the required modules using a drush command ahoy drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();" (because Drupal core does not allow themes to automatically enable dependant modules - see https://www.drupal.org/project/drupal/issues/3100374)
- Enable CivicTheme
- Set CivicTheme as default

The issue described is not related to CivicTheme. To avoid this to happen in the future - please contribute to this issue https://www.drupal.org/project/drupal/issues/3100374

fionamorrison23’s picture

Issue tags: -civictheme-release-1.7
ivrh’s picture

StatusFileSize
new259.81 KB

@alex.skrypnyk

Followed the steps to intall and enable the CivicTheme, using version 1.7.1 on a blank GovCMS site (Drupal 10).

Same error as described in the original post.

I see you referring to Drupal core issue, but I suspect the steps on the documentation page, specifically this step:
ahoy drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"

Should resolve the issue, except that it doesn't.

I also tried to run it inside the container (I tried via `ahoy` too), with no success:

ahoy cli
drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"

Steps
Steps to reproduce

ivrh’s picture

Version: 1.6.0 » 1.7.1
Component: Code » Miscellaneous
Assigned: joshua1234511 » Unassigned
Status: Closed (works as designed) » Active

Updated issues status to Active.

ivrh’s picture

StatusFileSize
new307.46 KB
new320.64 KB

The outcome of the error is missing form fields:
Missing fields

And all fields are listed under Disabled tab on the content type Form fields configuration page
Form configuration page

I also tried fresh site (drush si) on GovCMS Drupal 10 (latest as of today) and the same issue is happening:

Only local images are allowed.

ivrh’s picture

ivrh’s picture

The solution is to clear the cache before executing the step 2.3 to enable CivicTheme (it is not included in the steps in the documentation page https://docs.civictheme.io/development/drupal-theme/using-in-govcms-saas...)

alex.skrypnyk’s picture

alex.skrypnyk’s picture

Component: Miscellaneous » Documentation
Assigned: Unassigned » alex.skrypnyk
Status: Active » Fixed
Issue tags: +civictheme-release-1.7

Thanks, everyone, for investigation and contributing to the resolution.

Looks like the resolution is to document steps.

I have updated the project page on D.O., the generic and GovSMS SaaS-specific installation instructions on the documentation site.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.