Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Automated Testing using CodeShip and Cypress

We are trying to figure out the best way to incorporate CI/CD with our End-to-End cypress tests for our Drupal project which contains a lot of custom code, but are finding it a little difficult given ...
0
votes
0answers
10 views

How to migrate Contributed Module Configuration from one environment to another one?

I have 5 different Development servers and there is one configuration related to contributed module called External links, now I am trying to create feature for that config so that I can easily roll ...
0
votes
0answers
9 views

Custom Block Config - Accepting array of objects

I have built a component following the docs but am wanting to add configure to allow the user to add a series of objects that each contain a 'title' (a text field) and a 'content' (a list of text ...
0
votes
1answer
22 views

How to save values on each form submit without overriding saved datas?

i am having a form with 2 values to save on submit: public function submitForm(array &$form, FormStateInterface $form_state) { if ($_POST['op'] == 'Import Accounts') { $filter = $...
1
vote
0answers
18 views

How to delete content entity type programmatically on uninstall?

I am trying to delete a configuration from a module in hook_uninstall. My module creates a content type bundle which has to be deleted. I tried to use an approach described here: How to delete a ...
0
votes
1answer
41 views

Troubles with external configuration

I'm working in the creation of a custom profile. When the installation is already finished, on the configuration module /admin/config/development/configuration appears the following warning The ...
0
votes
1answer
28 views

Create configuration storage programmattically for list_string

On a paragraph type, I have a field I want to migrate to a new field of type "list_string". To do that in the deployment and like our automatic deployment begin by an update of the database follow by ...
0
votes
0answers
35 views

How can I change the site settings email using Drush?

Env: D8/drush-9.5.2 I need to use drush to change the site details (Home->Administration->Configuration->System) Site name, Slogan, and Email address. I found the configuration key by running: ...
1
vote
1answer
31 views

Config Export: How to store default value of taxonomy field?

When I define a field with taxonomy term fields, I can set a default value depending on the available terms. Since the terms themselves are content, they are not stored via configuration management. ...
5
votes
1answer
103 views

How does the new config_exclude_modules setting work exactly?

Drupal 8.8 introduced a new setting: https://www.drupal.org/node/3079028 By adding these lines to your settings.local.php I expected the modules and their configuration to be excluded from config ...
0
votes
0answers
27 views

Drupal config or routes stays inactive until I disable/re-enable related modules

I know this might be a broad question but maybe someone had the same issue before. Here is the issue: I have installed some contributed module, (e.g Rules); I have configured some rules; Exported ...
1
vote
1answer
28 views

More information than standard “Site Details”, also to be available as tokens [closed]

Is there a way to add additional fields to the config/system/site-information area such as business owner, "business location", "hours of operation", "phone number", etc. I would then like to be able ...
0
votes
0answers
22 views

Updating config schema: Module configuration not automatically reflecting most recent state

I am trying to do a really low-hassle update of config schema for my module: I updated files form: modules/custom/mymod/config/schema/mymod.schema.yml data: modules/custom/mymod/config/install/mymod....
0
votes
0answers
33 views

Prevent update hook from running until config imported?

I have added a new field to an existing content type and want to set its default value as well as all existing nodes of that type. To do that, I have added an update hook in my module that will batch ...
0
votes
0answers
11 views

Drupal: script all admin settings for site cloning

I am a newbie Drupal user here, tasked with an exam taking site for a school. I have run a docker container with version 7.69 and installed Quiz and few other modules, made a lot of settings via an ...
0
votes
0answers
36 views

Configuration split in multilingual and multi domain sites

I want to run 30 Drupal 8 websites, every website runs on different domain. The sites are similar with small differences. The websites are multilingual. Some of them have 2 languages, other have ...
0
votes
0answers
36 views

Configuration Import Error

I have a drupal8 in local system. I want to import my production environment configurations into my local. So i am running drush cim -y I got the following error. Unexpected error during import ...
1
vote
1answer
36 views

How to use a set of global and per subsite permissions in a multisite installation?

Use case: I have a multisite installation in which I want to define a global configuration to be available to all subsites. I define this configuration in the default site. For this example let's say ...
0
votes
0answers
22 views

Testing a function which save some configuration - error called set on null

I have a function which does 2-3 things, one of the activity is to save the configuration. function processProps($data) { $config = $this->configFactory->getEditable('mymodule.settings'); $...
0
votes
0answers
48 views

How to prevent an 'Attempt to create a field field_description that does not exist on entity type group'?

When cron runs I see a notice in the dblog. Drupal\Core\Field\FieldException: Attempt to create a field field_description that does not exist on entity type group. in Drupal\field\...
1
vote
1answer
110 views

Installing a site from existing configuration [closed]

I tried importing a configuration after installing Drupal 8 using the standard installation profile but was getting into errors related to the installation profile being already present. I need a ...
1
vote
2answers
72 views

XAMPP and Acquia Dev Desktop [closed]

I installed XAMPP on my local machine to use it for Drupal. But all the navigation between all the localhost websites are really slow, no matter if it's a brand new vanilla Drupal website or if it's a ...
0
votes
0answers
53 views

Slow localhost Drupal websites and drush

I installed XAMPP on a new laptop to use it for Drupal. All the websites on my localhost are extremely slow, even a brand new vanilla Drupal website. It takes 5-10 seconds to go from one page to the ...
1
vote
1answer
165 views

Can't sync site config from git, entities exist of type x

For whatever reason I seem unable to find a good resource to explain syncing the actual structure of a site (like blocks and configs). I'm using git currently and am doing local development using ...
1
vote
2answers
91 views

How do I enable a module by exporting the configuration?

I enabled these core modules: Language, Content translation, Config translation, and Interface translation. I exported the core.extensions.yml file, but when I placed the same file in the development ...
-2
votes
3answers
86 views

Where is the temporary directory defined in the code?

I wonder where the tmp dir is set in the code of Drupal 8. Indeed the upload_tmp_dir value is not set in the php.ini and I have no access to change it. Where in the code the value is defined and ...
0
votes
1answer
46 views

Is there a way to selectively export specific relevant configuration into custom modules?

I'm learning D8 and gaining familiarity with the configuration management aspects of drush. All my configuration is exported into my config/sync directory and I cherry picked the relevant files and ...
0
votes
0answers
79 views

Can't extend schema of an existing `config_object`

Use-case: Module A defines the following schema: module_a.schema.yml module_a.settings.api: type: config_object label: API settings mapping: store: type: string label: Store ...
0
votes
0answers
57 views

Ignore custom block field content (settings) with config_ignore

I am trying to ignore the content of some fields in a custom defined block plugin. In my block plugin (class MyAwesomeBlock extends BlockBase implements BlockPluginInterface { ... }) I've declared ...
1
vote
0answers
33 views

How to log configuration changes in a sensible way?

In order to log simple configuration changes like a site-name change, contributed modules like contrib_log work fine. It just diffs the changes files in active configuration and logs it. But when ...
1
vote
1answer
50 views

Configuration syncronization not importing everything

I have a remote server which I initially setup with a default Drupal 8.7.7 install. I have since been building the site on my local development server and would now like to transfer the developments ...
0
votes
1answer
47 views

Building a non-config, programmatically-created, semi-dynamic, semi-manual menu

We have a custom entity called "Topic". With this entity, users can build topics and reference other content to "belong" to the topic. We also have a requirement where, whenever a user creates a topic,...
0
votes
0answers
35 views

drush cex re-creates files in config/sync while they already exist in module config folder

Having a config split which says that the location/configuration of the split/module is located under /sites/all/modules/custom/module/config/optional After it got imported with drush csim our_split ...
0
votes
1answer
63 views

Failed to import Bootstrap Paragraph sub module configuration

I tried to implement the Hero with Xeno Hero in the Bootstrap Paragraphs in Drupal 8. I encountered an error when I tried to import the config of the sub module. I am not sure if I do it the right ...
0
votes
0answers
26 views

Why doesn't Synchronize - Export - Full archive work in my production site?

On my production site, when I go to Synchronize - Export - Full archive (i.e. http://mysite/admin/config/development/configuration/full/export), I get a blank web page, nothing in my temp folder and ...
2
votes
1answer
65 views

How can I programmatically import configuration?

I try to import specific configuration. I use this : $config_path = config_get_config_directory(CONFIG_SYNC_DIRECTORY); $source = new FileStorage($config_path); $config_storage = \Drupal::service('...
0
votes
0answers
258 views

The provided host name is not valid for this server even after updating settings.php

I'm running in to the error message The provided host name is not valid for this server. I found the previous solution here however even once updating my settings.php file I'm continuing the hit this ...
0
votes
1answer
31 views

Where do I put configuration files for testing?

Hopefully, this will be a simple question. I am writing a kernel test for a class, called FooConfig, that reads from a configuration file. For the purpose of facilitating this test, I need a ...
0
votes
1answer
110 views

How to install and enable a default and admin theme in a Drupal 8 install profile with just YML (without using hook_install() or a .profile file)?

I want to avoid using hook_install() so I can install from configuration. I'd like my install profile to use seven for the admin theme, and my custom theme rutherford for the default/main frontend ...
0
votes
0answers
40 views

Default Paragraph Config Per Content Type

We're using a paragraph for the hero/header of our site. Within the paragraph are a number of different toggles to define various options for the hero. I'd like to have it so that if the user is ...
0
votes
1answer
40 views

Where is the configuration actually saved in the system?

I am new to Drupal 8. I installed the Drupal webform module. I am able to export the configuration file but unable to figure out where the configuration is actually is saved in the Drupal system.
1
vote
0answers
31 views

Where to describe a State API variable?

We can describe the configuration variables in the *.schema.yml files but there is a place to describe the State API variables? I searched in the Core for some State variables and I don't find a ...
0
votes
2answers
50 views

How can I move a node type's configuration into a custom module?

I still a bit new to D8 and loving the new configuration management system that has replaced Features. I am looking for the best technique for containing particular configurations in my custom ...
0
votes
1answer
57 views

Error when trying to upload a Configuration Synchronization file

I want to create a local copy of a production website. I read that I could use Configuration Synchronization to copy some of the settings of the production website over to my local website. When I try ...
1
vote
1answer
81 views

Config split ignore dependencies

I'm using the config_split module to split configuration to an installation profile, that I use in multiple Drupal sites. I have 2 sites using the same installation profile, both using the same ...
4
votes
3answers
1k views

What is the appropriate way to store arrays of information with configuration API?

In Drupal 7 with custom forms and variables, one could easily store arrays of information in the 'variables' table. I would sometimes construct configuration forms that provided a setting per say user ...
0
votes
2answers
126 views

Webform Error Occurs During Configuration Import

Currently we are having some trouble handling webform module configuration on our various environments. When running a configuration import drupal config:import --directory=$SYNC_DIR on our dev ...
1
vote
1answer
36 views

Contact email flood limit is per whole system(application) or user/ip based?

I have a question with contact emails flood limit which is present in contact.settings.yml, the limit is going to for whole system(application-wide) or is it going to limit the number of emails per ...
0
votes
0answers
97 views

Where is $config_directories value set in Acquia BLT?

Generally to setup path for Config Directories,it is defined under settings.php as $config_directories['sync'] = 'path/to/config'; but in a blt setup when I checked settings.php sites/default/...
0
votes
1answer
32 views

What does extension-provided configuration mean in Config Snapshot?

Configuration Snapshot enables snapshotting of extension-provided configuration. It's used by Configuration Synchronizer to support updating configuration provided by modules, themes, and the ...

1
2 3 4 5
14