We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
1
vote
1answer
139 views

Create config object with array containing key-value pairs

We have a custom module, mymodule, that we want to use to create a config object for so that it can contain an array of key-value pairs. We need to be able to click button Add More on the form that ...
1
vote
1answer
31 views

Is there any “block_user” module?

After moving my sites to the new server, and some updates in the mean time. I have found one of the sites displaying the "The following module is missing from the file system: block_user bootstrap....
3
votes
1answer
370 views

How to access variables in a fieldset with variable_get

function bi_mx_enhancement_form($form, &$form_state) { $form['bi_mx_enhancement_government_ws'] = [ '#type' => 'fieldset', '#title' => t('Government Web Service Settings')...
0
votes
0answers
33 views

Configuration translate Form Access Denied

This questions has repeat several times, but I face similar issues. Here are configuration yml information webform_protected_downloads.configsettings.yml token_text: 'test' langcode: en ...
0
votes
0answers
29 views

How do you add a field to a node type form?

I would like to add a boolean field to all node type forms and save it's value in config. I found this tutorial, but the code formatting is really bad. http://www.jaypan.com/tutorial/drupal-8-...
0
votes
1answer
66 views

Vague error message on config import: Config x depends on x that will not exist after import

I don't understand what is missing. It's just a simple blogpost content type that I created before I reset the db and tried to re-import it. All the modules requires are enabled and I did try to clear ...
0
votes
0answers
45 views

What If I Need Conditional/Overriding (synchronized) .yml Config Install With a Custom Module?

With D8, the appropriate method for adding fields during install with a custom module is with the config system and .yml files in a config/install directory. I have a module for user theming I like ...
1
vote
1answer
469 views

How to resolve error Unable to install the responsive_tables_filter module since it does not exist

I am getting an error when importing the configuration from our development branch. When running. drush cim staging. The error is. The import failed due to the following reasons: Unable to install ...
1
vote
1answer
389 views

drush cim creates and immediately deletes field

Importing the following yml fails. With UUID it wants to be deleted. After removing the UUID it fails with field type doesn't exist. Any ideas? Is there some kind of order that might make the import ...
0
votes
1answer
64 views

Settings.php in read only mode? [closed]

When does drupal settings.php become read-only? I experienced the drupal encountered an error when I was just creating a view. Cannot see the error logs from the admin side. Thought will enable the ...
2
votes
1answer
138 views

What is the deal with config collections?

When manipulating configuration yaml files in config/sync, I note that if you put files in subdirectories, and run drush config:import, the files in those subdirectories are denoted as belonging to a '...
0
votes
1answer
165 views

How do I recreate the system.site configuration element?

For some reason system.site, system.performance and system.date config values have been deleted from our site. I have the original configuration files, but when attempting to import those using ...
5
votes
1answer
4k views

Attempt to create a field body that does not exist on entity type node

I am getting the following error: Drupal\Core\Field\FieldException: Attempt to create a field body that does not exist on entity type node. in Drupal\field\Entity\FieldConfig->...
0
votes
1answer
113 views

Get out of maintenance mode using database query (without using drush or admin area)

I understand there are very many stackoverflow questions on this very topic. How can get my site out of maintenance mode? for example. However I've never seen one that explains how to turn off ...
1
vote
1answer
578 views

Cannot activate parameter cors.config

I am using the RESTful Web Services that is included in core of Drupal 8.2.7. I need to activate CORS to be able to call the API from another domain. I put this configuration in this file: "core/lib/...
0
votes
1answer
104 views

Link field is removing query parameters

We have an Article that a link field, field_link. When we create a new page of type Article, we set the link field to have a URL of www.example.com/somepath?someid=123345 and label of View. When the ...
1
vote
1answer
156 views

Image styles not generated during config import

Situation: Drupal 8.6.9 running DrupalVM with Ubuntu 16.04, Apache 2.4.18, Php 7.1.26 with default settings except for the location of the drupal site. I am trying to do a migration of a Drupal 7 ...
0
votes
0answers
25 views

Custom module - views config dependencies

I have created a module which having two submodules. submodule-1 submodule-2 Within submodule-1 I am defining multiple Views fields and filters based on a custom entity type. Within submodule-2 I ...
6
votes
1answer
1k views

How to disable modules using config split?

I have created different split for each environement (local, dev, test, prod) using the Configuration Split module. How can manage modules (enable/disable) in each environment? Should I keep core....
1
vote
2answers
853 views

Change max length of link field link text

In order to modify the length of a file field description field I put the following line in settings.php: $config['file.settings']['description']['length'] = 512; Now I want to do the same for the ...
-4
votes
2answers
67 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
0
votes
0answers
59 views

Proper security for settings.php

I've been developing my Drupal site locally and am planning to migrate it to a proper live host server. When going through the guide to track Drupal with Git, I noticed that it says to put settings....
13
votes
2answers
3k views

What are cloned sites in Drupal 8?

When trying to export my site configurations from one Drupal 8 site to other I keep getting the following error The staged configuration cannot be imported, because it originates from a different ...
0
votes
1answer
16 views

Is it possible to set a role specific value for “allow_insecure_uploads?”

I want to override the value for "allow_insecure_uploads" which is in system.file config, but only for specific roles. Am I going to need to do this in a module / does one already exist?
-2
votes
1answer
197 views

Should configuration synchronization be used only between cloned sites?

Can it be used to get configuration from one site to another site which is not a clone. eg: SiteX is installed using composer create-project drupal-composer/drupal-project:8.x-dev SiteX and ...
3
votes
1answer
2k views

How do I export and import content types (including fields) between environments?

I've been trying to find a smart way of exporting content type and all its fields from one installation of Drupal to another. The core "Configuration synchronization" export only export the content ...
0
votes
1answer
36 views

Grant permission to current user at runtime in specific environment

Many Drupal contrib modules have inverse "feature flag" implementations vis-a-vis a killswitch variable added to settings.local.php to disable a feature: // Killswitch setting. $settings['...
0
votes
0answers
23 views

Proper Schema file for integer and select

We have a custom module, mymodule that has an admin form where it stores field of type: number and select. I need to create a mymodule/config/schema/mymodule.schema.yml file, but don't know what to ...
0
votes
1answer
224 views

Change site name programmatically

We have a requirement that when we save a node that nodes title should be the site name. We used to do it in Drupal 7. But I was not able to find the proper method for it in Drupal 8. This is what we ...
0
votes
1answer
124 views

How to set a multi line value from drush vset

I was trying to add a value to the drupal antibot antibot_form_ids variable. drush vget antibot_form_ids returns a string separated by /r/n Adding just a value to this string isn't just enough. If ...
1
vote
2answers
1k views

Programmatically set the front page per site?

I have a site that is using a 'fake' multi-site instance (I think, someone else implemented it). We created 3 directories in sites: sites/site1 sites/site2 sites/site3 and in each settings.php ...
1
vote
1answer
70 views

How to sync configuration between multiple developers' environments

D8 Configuration management is really awesome and easy to use when there's only one developer working on a project. We are running into challenges in keeping configuration synced between environments ...
3
votes
2answers
234 views

Is it possible to update module provided configuration schema in an hook_update_N()?

So I have a custom module with a module.schema file, defining a configuration schema for that module, not talking about database/field schema. module.settings: type: config_object label: 'Settings ...
1
vote
0answers
89 views

Difference between field and field storage in configuration type?

I am exporting a content type and field associated with the synchronize option available in Drupal 8. I exported and imported the YAML code for content type successfully. When I was about to do the ...
0
votes
1answer
25 views

Load the value of an entity field type in another form

I have created a custom field and I wish to load the value dynamically in another form in relation to the specific node entity the value belongs to. I understand that to get the value I have to use/...
1
vote
1answer
249 views

How come there are different UUIDs for multiple environments?

We have D8 site where we use Configuration Management to export and deploy to multiple environments. We recently created a new content type, Blogs where we added a few fields (field_url, field_country)...
16
votes
7answers
8k views

Exclude configuration from import/export

I thought this was a simple use case of the new Configuration management system, but I haven't had any luck finding out how to solve this: Problem I want to store configuration in git and use drush ...
1
vote
1answer
458 views

basics of settings.php and settings.local.php?

What is the up-to-date basic workflow regarding database credentials when you launch a local version of a site that is already operating remotely? What are the considerations and how is each best ...
1
vote
0answers
98 views

Prevent block config from being exported?

In Drupal 8, how can I prevent block instance config from being exported? I want it to just be ignored.
0
votes
1answer
136 views

Drush not connecting to site's settings.php

When I run drush --debug status in the docroot of my Drupal site, I get the following message: [user@computer]$ drush --debug status Phar detected. Proceeding to drush_main(). Loading drushrc "/home/...
2
votes
1answer
42 views

Exporting and Importing configuration setting only

I have a development and a production site. Both are working in an offline environment, Drush and Composer are not installed. The plan is to make all changes always on the development and during each ...
0
votes
1answer
26 views

Config changes only propagated via manual form submit

My question is related to the Search API Drupal 8 module. I am modifying my configuration via config file updates. After I am installing my custom module, I can see my config reflected in the search ...
0
votes
2answers
98 views

Development without pulling production DB to your local machine

When you push configuration to production, any configuration that has changed in production that has not been exported into code will either be reset to the values in code or be wiped out entirely if ...
7
votes
5answers
7k views

Unable to install the XYZ module since it requires the A module

When running (right after site install) the drush cim -y command, the following error appears: Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. in ...
0
votes
1answer
1k views

How to override configuration variables in settings.php

I need to override configuration variables declared in the settings.php. How this can be possible? Any help me on? Note: I am trying to override a custom configuration variable, not any default one.
3
votes
3answers
610 views

How to know when to use $config or $settings overrides in settings.php?

I want to be able to disable certain options of modules on non-production environments. For example: Disable XMLSitemap from running Set "Read Only" mode for Search API indices to TRUE Set robots....
-1
votes
1answer
158 views

what does “vcs” mean when i export a configuration [closed]

I would like to know what vcs stands for . when i do a drush config:export, i have to choose "vcs" but I'm not sure what that means? I am on an acquia server , does that have something to do with ...
2
votes
2answers
3k views

Choose a destination after drush cex

In my sites/default/settings.php I changed: $config_directories = array( CONFIG_SYNC_DIRECTORY => 'sites/default/config-sync', ); I created the folder config-sync in sites/default/ When I do ...
0
votes
1answer
164 views

Can't import configs on server due to some entities

So when i try to manually import configs (/admin/config/development/configuration) i get these messages: Entities exist of type Media and Media type Image. These entities need to be deleted before ...
0
votes
1answer
55 views

Module dependent on field configuration in another module

I have two modules that rely on the same field; A simple boolean field that represents a state for taxonomy terms. My problem is my configuration management for this. My ideal situation would be to ...