Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

0
votes
1answer
96 views

Error on config import - Field Collection

I am currently running into a config import error and it seems like it has something to do with field collections: Finalizing configuration synchronization. ...
0
votes
1answer
28 views

Why the menu items to edit a specific vocabulary and terms does not show up in administration tool bar?

I created a new user with specific role and permissions to CRUD 1 content type and 1 taxonomy vocabular and terms. The thing is that the administration menu item does not show up for the taxonomy ...
0
votes
1answer
57 views

Installing entity form/view display config in custom module using options_select plugin

I am trying to provide a default content type, entity form display, entity view display and a list (text) field on module installation. Installation errors out (though the module is installed) because ...
1
vote
0answers
413 views

How should I solve a module load order problem in a custom install profile?

I'm building a custom install profile for Drupal 8.4. It uses the new core Media module, and includes custom config files for the entity forms for media's image and file entities. One of those changes ...
0
votes
1answer
254 views

Full archive configuration export doesn't work

When I go to /admin/config/development/configuration/full/export and want to export the full archive, the site loads for a while and then just goes completely blank and the URL bar shows /admin/config/...
2
votes
0answers
122 views

Exported field collection field has null UUID

In D8, I have a configuration management error. I have created a field named 'field_icon_link' of type “Field Collection”. I export my config. If I try to import this config I get a UUID error. ...
5
votes
2answers
226 views

Configuration management with different database and websites

We have a central code base (Git repo). From this code base we deployed several websites already. Till now we used features. The websites which are already in production they have a filled database ...
1
vote
0answers
145 views

Exported configuration with drush cex only visible in docker shell, not in local repo [closed]

I have a Drupal 8 local development environment running with Docker. I can use drush (use drush cr, drush cex -y etc) after I login with ssh in docker. I make some configuration changes in my Drupal ...
0
votes
0answers
15 views

Configuration Management module fails exporting

On a large multisite i have configuration management installed. But it fails to export large lists of e.g. tracked variables. When i click on the "select all" checkbox and proceed to "export to tar ...
0
votes
1answer
12 views

Connection process

I have a D7 site online on linux server. I made a backup of it on my Win PC usine Xampp server. I cannot connect (as user 1) despite i have the correct password. How to follow to connection process ...
5
votes
1answer
410 views

Difference between $this->config and \Drupal::config in ConfigFormBase

I want to override a custom module configuration in the settings.php file. So the configuration in database can be independent from the environment. $config['my_module.settings']['prop'] = 'foo'; I ...
3
votes
1answer
275 views

Module's optional field config not imported on install

I've got a module which contains a config/optional folder which has the content: paragraphs.paragraphs_type.my_paragraph_id.yml field.field.paragraph.my_paragraph_id.field_my_field.yml field.storage....
4
votes
2answers
2k views

How can I programatically change the (D8 core) workflow state of an entity with Content Moderation?

I'm using Drupal 8.4-rc2. When you enable the Workflow and Content Moderation modules, you automatically get the Editorial Workflow as a demonstration. The states are as follows: Archived Draft ...
4
votes
1answer
186 views

Should drush configuration export automatically update core.extension.yml?

The Drupal 8 documentation seems to be lacking in regards to the core.extension.yml file, so I'm a little confused on the right way of updating it. Should drush be populating it on config export, or ...
1
vote
1answer
213 views

How to determine the code for settings.php config override based on .yml?

I am trying to put my API keys in a separate file instead of storing them in config management. For example, I installed the Commerce Stripe module. When I export the config, it looks like this: ...
2
votes
2answers
174 views

Why do I have error related to unknown themes during synchronization?

When I try do synchronize from my local site to the remote one, I get this bunch of errors which prevent configuration to be imported. It seems to be related to some themes (alpha_responsive_theme, ...
2
votes
0answers
104 views

What does a 'reset' refer to with Drupal?

In the docs for the State API, the term 'reset' is used, without any reference as to what a reset is: use State API to store transient information, that is okay to lose after a reset. I've spent ...
1
vote
0answers
374 views

Using config split to keep dev modules separate: how to manage enabled/disabled states?

I'm using the config split documentation to exclude dev module configuration on my site. I made a configuration split that blacklists the following modules: Devel Kint Field UI Menu UI Views UI I ...
3
votes
3answers
2k views

How to solve the “The following module is missing from the file system” error?

Getting the following error in the admin in a Drupal 8 site: The following module is missing from the file system .... Looks like a custom module was enabled and deleted without disabling it. How ...
1
vote
0answers
116 views

How to map (yml) D7 nodes with terms, images, comments and references for migrating to D8?

To better understand how a custom content migration really works apart from all the tutorials showing how to install Drupal and press the migrate button with a 3 lines test import file or endless ...
4
votes
2answers
2k views

How to enable modules through configuration?

I am trying to enable modules by adding them to core.extension.yml file without getting involved with Features, Configuration Installer or similar modules or profiles. The modules are enabled but ...
3
votes
0answers
50 views

Benefit of config entities over regular config entries?

In Drupal 8 it is possible to store configuration in "config entities". However, the same can also be achieved with non-entity config entries. E.g. one example for a config entity schema, from core....
2
votes
1answer
412 views

Custom entries in entity view modes?

Background + question I want to port entdispfieldui to Drupal 8. (issue) The module allows a site builder to add new entries into an entity view mode, configure and position them among the regular ...
1
vote
1answer
533 views

What is the use of sync directory?

I see in Drupal documentation about Configuration Management it is adviced to change the location of the sync directory in a production environnement. But I can't find an explanation about the actual ...
0
votes
1answer
115 views

How to force D8 “Configuration synchronization” to send HTTPS download URL

I have a Drupal 8 site hosted on an Apache Server. There are 2 virtuals hosts : one listening on port 80, which redirects everything to HTTPS one listening on port 443 which serves the htdocs ...
0
votes
0answers
176 views

Upload and set default file in managed_file field on module install

I have managed_file in my module configuration form and one text field, so I want to set default values for these fields on module install. At the moment I have this in config/install/my_module....
5
votes
1answer
1k views

Best Way to Handle Variables Per Environment

I have a custom module. It's FormBase to create a form. And on submit, I post values to an API. All this works. But I want to change the base URL variable (which is used in multiple methods) so that ...
0
votes
1answer
267 views

Custom Module Configuration not working

I have the following file. modules/custom/test_module/config/install/test_module.settings.yml test_module.settings: message: 'Hello' langcode: 'en' But I am not able to get the following ...
0
votes
3answers
112 views

Get node id for page which is set for 403 and 404

I want to get the node number (nid) for the node which is set for 403 and 404 pages in drupal configuration system. Can you please help me for this ?
-1
votes
1answer
38 views

How to prevent users from updating “featurized” settings via the GUI?

We have some configuration pages where it is useful for privileged users to be able to see settings that have been exported as part of a feature, but there is no indication on the admin page that ...
0
votes
2answers
779 views

How to migrate multiple columns to single field in CSV Migrate

In my CSV file, I am having columns by name summary_1,summary_2 and summary_3. I want all of it migrated to a field in Drupal field_summary. The field supports multiple values. id: sections_tfr ...
1
vote
1answer
245 views

Config sync directory outside of webroot causes open_basedir restriction warning

Hello all and thank you for taking the time to help. In following this tutorial and many others like it, I've successfully moved the configuration sync directory outside of my webroot, both locally ...
0
votes
2answers
227 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 ...
0
votes
1answer
19 views

Depending field

So i'm just begining to create a site in my company. the purpose of this internal website is to reference all setup we have in the company and i have to do it on drupal 8. In order to do this i am ...
4
votes
1answer
298 views

I need a .schema.yml file when I create a new custom field?

I just read Create a custom field type and I can't find a lot of information about the .schema.yml file. So, I just create a custom field without the .schema.yml file and I see that if I add my custom ...
2
votes
1answer
124 views

How to pass negative values to config-set

It seems that we can't set negative values with config-set: drush cset block.block.myblock_name weight '-1' --format=string -y doesn't work
5
votes
1answer
215 views

How to make all render caches update on a configuration override?

Short version: I am using a configuration override to override the site name. Changes are reflected in the HTML title, but not in the system branding block. Drupal keeps serving this block from the ...
0
votes
2answers
408 views

Problem with remote sync because of wrong UUID

I have a problem with syncing my config to the remote server with Drupal 8. When I pull everything with GIT, and use drush to update the config via drush cim I get the following error: Attempt to ...
3
votes
1answer
1k views

Add Field to Custom Content Type Programatically

I'm trying to create a module that creates its own content types during installation. I understand that I need to use the Configuration API and the Entity API, but I'm having trouble adding Drupal-...
4
votes
4answers
3k views

Is there a way to clone a content type and its fields?

I have a content type named "event_xyz" that I want to rename to "event". I figure I can clone the content type and then delete the original. But I don't see any tuts or modules on how to do this. ...
1
vote
2answers
504 views

Add new existing field for existing content type

I have a development site (let be site 1) and a site where I check my code (site 2). My goal was to add a new existing field to a paragraphs type (/admin/structure/paragraphs_type), so I did the ...
0
votes
0answers
59 views

How to import the exported yaml of a view

When attempting to import a view's exported yaml, the following message is received: The configuration cannot be imported because it failed validation for the following reasons: Configuration ...
3
votes
2answers
2k views

How to use wysiwyg text editor (text_format) in a system configuration form

I couldn't find any documentation or examples about this. The implementation is very problematic. Do you a means to do this? Problems While trying to create a system settings form with text_format ...
4
votes
3answers
620 views

What are configuration entities used for?

I’m trying to wrap my head around D8 Configuration Entities (CFE). The concept of a Content Entity (CTE) seems easy – if you want an application that keeps the information for a CD music collection ...
3
votes
2answers
364 views

Manage config translations programmatically

My module creates and manages some config_entities programmatically (ie. not through an EntityForm) in response to associated content entities being saved. In order to handle multi-language content ...
3
votes
1answer
1k views

variables table in D8?

What database table in Drupal 8 replaces variables table in Drupal 7? Where are the values of Configuration stored? example : $config->set('message', 'Hi')->save(); Where can I find value of ...
1
vote
1answer
49 views

How to port active configuration to module configuration

Scenario: I have a website which was initially developed with a single site (A) in mind. Now, because reasons, I need to make this a multi-site setup (A & B). So, I have functionality in A I want ...
0
votes
2answers
39 views

How can I be sure configuration is never changed on live system?

The documentation for the Drupal 8 configuration manager says: Making configuration changes on a live site is not recommended. When managing a site used by dozens of content managers, how can I ...
4
votes
1answer
50 views

View a log of administration configuration changes for Drupal 7?

I'm working on a Drupal 7 site and we have multiple developers and administrators accessing the site. Many times when the site breaks I can't see what was changed previously and by whom. Is there a ...
3
votes
2answers
330 views

Can I safely use the same UUID on independent sites?

I'm trying to create a site building workflow which uses some sort of blueprint site, providing a shared, tested set of the Drupal core, modules, content types, paragraph types, a base theme, etc. for ...