Closed (outdated)
Project:
CivicTheme Design System
Version:
1.8.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Jul 2024 at 09:51 UTC
Updated:
10 Dec 2024 at 03:48 UTC
Jump to comment: Most recent
Components field is not added to node form display with GovCMS sites.
This issue has been detected by customers using LaunchPad to spin up a GovCMS Drupal 10 CivicTheme site, as well as manually spinning GovCMS SaaS site
For LaunchPad site:
For Non LaunchPad:
There are no components available to add to the node. Only the Title field and moderation/publishing state widget is available.
| Comment | File | Size | Author |
|---|---|---|---|
| image001 (6).png | 22.5 KB | fionamorrison23 |
Comments
Comment #2
fionamorrison23 commentedComment #3
alex.skrypnyk@joshua1234511
Could you please follow the steps for "Non LaunchPad" an check if the components are present. Thank you
Comment #4
joshua1234511@alexskrypnyk
Tested the issue in two scenarios:
Test 1
Without running the necessary Drush command:
Components field was missing due to an incomplete installation process.
Test 2
With running the necessary Drush command:
Components field was added correctly, and everything worked as expected.
Solution:
Ensure that the installation steps are followed correctly, including running the essential Drush command to enable the required modules.
Related to
Please do not submit issues if your installation finished with WSOD - this means that you are using CivicTheme that was not fully installed. Install a patch mentioned above and restart your installation from scratch.Steps Taken to Debug:
Fresh Installation:
Downloaded CivicTheme as an archive.
Extracted it to the themes directory.
Ran the sub-theme script and followed the instructions in the project/readme.
Scenario 1: Missing Components Field
Did not run the necessary Drush command:
drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"Result: The field components were missing due to an incomplete installation process.
Scenario 2: Successful Installation
Followed the latest installation steps from CivicTheme Drupal project page.
Ran the necessary Drush command & followed the Patch installation.
drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"Result: All components were added correctly, and everything worked as expected.
Conclusion:
The issue of missing components field in the node form display was due to not running the required Drush command during the installation process. https://docs.civictheme.io/development/drupal-theme#usage
Comment #5
fionamorrison23 commented@richardgaunt investigation has taken place in LaunchPad and Joshua has confirmed this issue in with the civictheme_govcms module. Can you please check this one out and add solution direction? Happy to talk further about the issues faced. I believe Toby has also encountered this issue whilst not using LaunchPad, but in creating a fresh CivicTheme for GovCMS site.
Comment #6
fionamorrison23 commentedComment #7
fionamorrison23 commented