Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

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

Can't extend schema of an existing `config_object`

Use-case: Module A defines the following schema: module_a_commerce.schema.yml module_a_commerce.settings.api: type: config_object label: LPG Commerce API settings mapping: store: ...
4
votes
2answers
515 views

Development with git branches/ gitflow and new modules

I wonder if somebody found a solution for the following issue related to Drupal 8 development with Git branches: You work on a new feature in a local feature branch for that you activate a ...
2
votes
1answer
834 views

TypeError on “drush config-export”

I've been receiving the following error message when trying to do a drush config-export command. However, I am able to successfully do the configuration export from the Drupal admin page (admin/config/...
3
votes
2answers
542 views

Overriding permissions selectively via settings.php/settings.local.php

The use case is a development module that you would only have installed on a local environment. My thought was to use $config in settings.php to do this: $config['user.role.anonymous']['permissions']...
1
vote
1answer
417 views

Can I create an “unlimited” values variable?

I'm trying to create an exclude list of sorts that is configurable via the variable admin interface. I have created lots of single value variables, but never a variable as an array where through the ...
1
vote
2answers
420 views

Unable to save content language configuration

My Drupal 8 website is multilingual and has many entity type bundles for nodes, taxonomy terms, paragraphs, media et cetera. This leads to a content language settings form (admin/config/regional/...
49
votes
7answers
34k views

How can I import the configuration on a different site?

I have this error when I try to import the config of an another site: The staged configuration cannot be imported, because it originates from a different site than this site. You can only ...
7
votes
3answers
9k views

Site UUID in source storage does not match the target storage

When I run drush cim -y on my staging instance of my site I get the following error: Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. in Drupal\...
0
votes
0answers
16 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 ...
2
votes
2answers
535 views

Can a domain redirect work for both http and https?

Currently hosting a site on Pantheon and I would like to redirect traffic to a single domain. There is already a lot of links inside my site that are using: http://example.com/somepage, http://www....
0
votes
1answer
24 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 ...
6
votes
2answers
820 views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
1
vote
1answer
454 views

Copy installed modules and configuration to new installation

I have a Drupal 8 application with mysql as database. I installed bunch of third part modules such as domain, search_api, pdf etc... Most I installed using composer and a very few using "Install ...
0
votes
3answers
342 views

alternative to storing api keys in migration yaml files?

I've created a yaml file to import Twitter timeline items (not super simple since documentation on the migrate_plus OAuth plugin seems to be few and far between); this migration naturally requires the ...
1
vote
0answers
29 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 ...
2
votes
2answers
372 views

How can I force changes to go to settings.local.php?

I have a settings.php file in git which has the logic to include settings.local.php already uncommented, with settings.local.php in .gitignore for security purposes. I would like to be able to ...
1
vote
1answer
938 views

Config import constantly showing configs to import

Recently after doing a config import via drush (drush cim sync), the config files don't seem to import properly, as the files are listed after a supposed successful import. (and doing a cex sync shows ...
0
votes
1answer
150 views

What is the difference in State API and Config API?

It is a bit confusing to understand the difference in State API and Config API in Drupal 8. I went through the documentation of both on drupal.org but it is not clear to me yet. Do we define both ...
1
vote
1answer
16 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
46 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,...
2
votes
1answer
456 views

Overriding system.site.uuid with an environment variable

I have a need to have separate sites behave as if they are clones of each other; that is, they each need to have the same site UUID. Due to the environment I am operating in, I am unable to change ...
1
vote
1answer
463 views

How to check for differences in config

Is there any way to check for differences with config in Drush? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
0answers
28 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 ...
4
votes
1answer
1k views

Configuration changes that will not import?

I have some configuration that will not import. If I run drush config-import --preview I see the changes to be imported; I hit 'y' to import. When I run the same command, the changes are still there? ...
0
votes
1answer
589 views

All instances of block are not getting removed

This question is a continuation of this Block in Drupal 8, The second problem I am facing is that suppose I select block made for comment section and place it under Sidebar second section and ...
0
votes
0answers
25 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
60 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('...
33
votes
6answers
11k views

How do I update the configuration of a module?

I'm building a custom module in Drupal 8. It includes some YAML config files. As I develop I need to change and add to the config, e.g. to add another field onto my custom entity. At present the ...
0
votes
0answers
43 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
853 views

Image styles with $settings['file_public_base_url']?

I deep dive in the settings.php file of Drupal 8.1 and try to configure $settings['file_public_base_url']and $settings['file_public_path']. All media links are correctly rewritten, that works with ...
0
votes
1answer
890 views

How do I create a configuration sync folder?

I've inherited a Drupal 8 site but it has no config_HASH folder with it which means that the majority of admin paths throw an exception. How do I generate a new configuration folder based on the ...
0
votes
1answer
400 views

How do I tell drush not to overwrite some configuration settings?

I tell drush this: drush @live cim --skip-modules=system,swiftmailer and drush replies with this: Collection Config Operation swiftmailer....
1
vote
2answers
832 views

Why is it possible to write any string in the hash salt

I have researched a bit, but I couldn't find a precise answer to why it's possible to write any string in $settings['hash_salt']. For me it doesn't make sense that the site chashes if no hash salt ...
0
votes
1answer
28 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
39 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
1answer
707 views

Help with $base URL path in settings.php

Since I created my site (long time ago!) I have added content and changed many settings. My URL has always been www.domain.com/'drupalfolder'/(content) I want to remove the drupal folder from the URL ...
0
votes
0answers
31 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 ...
1
vote
1answer
482 views

Conf_path is deprecated but what is its replacement?

Im upgrading a D7 module to D8 and it turns out conf_path() is deprecated but I cant find the replacement. I found a github page that said use this DrupalKernel::findSitePath(Request::...
0
votes
1answer
37 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
30 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
1answer
23 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 ...
0
votes
1answer
762 views

Why when I do a configuration export does the config.tar.gz in tmp not get copied to the sync folder?

This happens when I use the UI and drush cex. The config.tar.gz is created in the tmp folder but nothing is created in the sync folder that I created in sites/default. I have searched for similar ...
0
votes
1answer
558 views

where are menu item configurations stored?

In drupal 8, which file holds the information of the menu items? I do a config-export and do not see which file is changed when I change the menu items.
0
votes
2answers
36 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 ...
6
votes
1answer
929 views

Are configurations written and read directly to/from .yaml files or still to the database?

Background Drupal 7 and previous versions have attracted criticism for Drupal web site admin configuration being stored in the MySQL database, the criticism being that being in a database means that ...
1
vote
1answer
62 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 ...
1
vote
1answer
185 views

PHPUnit Test run Error with ConfigFactory

I'm running an error with the following test I wrote including some config. I don't know if my test is even properly written so any advice in improving that code is welcomed. Since my test is not ...
9
votes
4answers
6k views

Export menu configuration [closed]

Looking for a way to export menu configuration. The Configuration management system will export the menu itself, but not the menu links configuration. I am looking for a way to put one of those mega ...
4
votes
3answers
616 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
1answer
672 views

How does Acquia Dev Desktop create the connection to the database?

I am using Acquia Dev Desktop 2 on my windows 10 PC in order to develop Drupal 8 websites. As far as I know, every Drupal website requires a connection between its files and the database which is ...