Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
0
votes
2answers
40 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
24 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
25 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
17 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 ...
0
votes
0answers
17 views

Completely delete an entityqueue config

I'm trying in my module uninstall hook to delete a config of an entityqueue which is created by the module myModule. entityqueue.entity_queue.my_entityq.yml : langcode: en status: true dependencies: ...
0
votes
1answer
23 views

Hook to run afer config import

I need to run some code after the config for my module is imported(it will create/update a css file that depends on configuration). So what is the correct hook to use? The module install will run only ...
0
votes
1answer
48 views

Enable translation for theme settings

Theme settings are not translatable in core. Is there a way to make them translatable? I have some additional theme settings which needs to have different values per language. I'm trying to achieve ...
-1
votes
1answer
36 views

Organizing config for use with a module

I've recently learned about adding a config/optional directory to a module to provide config items that will be imported upon enabling the module if there are no conflicts. Is there an easier way to ...
1
vote
1answer
43 views

Export Paragraph bundle with Drupal Console

I know there is a command to export a content type config:export:content:type But is there a way to do this for a Paragraph bundle? Something like this isn't working config:export:paragraph:type
2
votes
1answer
37 views

How to get translated field_storage_config

I need to programmatically set the translated values for several fields on a node. For that I would like to set their values in the fields field_storage_config. Adapted from another question's answer (...
0
votes
1answer
11 views

How to locally export config from a remote environment?

If I have config that's out of sync on production, I may want to export it without copying down the database, or I may have environment-specific config that interferes with exporting config from the ...
1
vote
1answer
27 views

How to delete paragraph when uninstalling the module?

I have been creating the custom module which have the paragraph configuration, when installing the custom module, the paragraph config will be stored in the database and then It will be available in ...
-2
votes
1answer
25 views

Force one config to be imported before another?

Hitting an issue when installing a site from config and I think the order of operations may be the issue. Is there some way to ensure that one config is imported before another one? Edit: sorry, ...
0
votes
1answer
26 views

CKEditor configuration is not working

In my site it was not required to add color to text or change its size, but now we want to add formatting to our posts. So I tried to configure CKEditor's Toolbar to add text formatting options in ...
1
vote
1answer
17 views

How can I export Image Crop configuration with an Image Style for custom module?

I have a custom module I'm re-using on other projects and I want to include an image style with an image crop configuration. Under the configuration menu, I export a single crop item: langcode: en ...
1
vote
1answer
29 views

How can I read config schema from a config entity?

I need to read the schema definition from a config entity, which is located in config/schema. For example the schema from a node type defined in node.schema.yml: node.type.*: type: config_entity ...
0
votes
0answers
30 views

Get Translated Config

I've followed a few tutorials on how to set up a custom settings form and create translations. All this seems to work, but after adding a translation, I am unable to get the config settings for that ...
-1
votes
2answers
51 views

How to Restrict some special character in password field

I'm very new in Drupal, I would like to restrict some special characters from user password field Is there any way to edit configuration of core modules i'm trying to create preg_match modules . i ...
0
votes
0answers
18 views

The drush command 'variable-get' could not be executed

Command variable-get requires Drupal core version 6 or 7 to run. The drush command 'variable-get' could not be executed. drush st Drupal version : 8.7.3 Site URI ...
0
votes
0answers
36 views

Config import failed “Duplicate entry”

I really want to like the configuration management system in Drupal. Over time, I've learned to tamp down my expectations in how it can be used to develop against a production config. On production, I'...
0
votes
1answer
23 views

Modify token used in path URL alias generation

We would like to have the URL pattern for Article content type to use article/[node:field_short_description]. In the scenario where field_short_description is not populated, we would like for the URL ...
1
vote
2answers
49 views

How can I update existing config from a custom module's config/install yamls?

I added some config yml files to my module's config/install directory so that it is installed directly when installing my module, it works well only if there isn't a config file with the same name ...
0
votes
1answer
20 views

Config split settings file generated into split directory

Drupal 8.7 I have a multisite split. The config_split.config_split.<sitename>.yml files are supposed to go into the config/default directory. For some reason when updating a split on one of my ...
2
votes
1answer
21 views

Use hook to get the domain configuration from language

We have enabled English, Spanish, and French on our site. On Regional and language >> Languages detection we selected URL for Content language detection >> Detection Method. For Part of the URL that ...
0
votes
0answers
39 views

How to handle config changes on core update?

I have an 8.6.15 site managed by composer and drush. The db and config exports are in sync. Roling our new features using drush cim on production works fine. I now update core to 8.7 by running ...
0
votes
0answers
20 views

Data storage for custom config-entity sequence type

Using Drupal 8 I've got a custom content type application and a ConfigEntityType application_type for bundles of it. I need each bundle to store a list of strings when newly created/edited. E.g. ...
-2
votes
1answer
78 views

How does `drush cim` find and handle the config-directory? [closed]

I would like to know where the config directory is, and how drush cim command exactly handles it? Edit: The old title (i.e. "Where is Drush's command-specific documentation?") was because I thought ...
0
votes
1answer
34 views

Failed User Login

I have developed a website in Drupal 8 and have deployed it to production. I have created 7-8 other accounts for my content management team and have granted them limited privileges for creating, ...
0
votes
1answer
28 views

How do I access the configuration variables present in settings.php through my code? [duplicate]

I want to access the variables present in the settings.php in my custom module. For example, if the settings.php file contains the $config['test']['uid'] = 'ABC'; line, I want to access the content of ...
0
votes
0answers
36 views

Module enable / disable is slow using drush cim

I have 2 drupal sites which takes a high time to enable or disable modules, while other sites are faster. It is true these slow sites are more complex: it has a lot more of modules. Is there any ...
0
votes
0answers
61 views

Use a custom Table/Storage for a Custom Field

I want to create a DR8 content field, which has no field tables, and passes the save and load mechanisms to a custom table. Is there a way to do this? I've been able to prevent saving with: class ...
0
votes
1answer
25 views

Custom database connection

What is the best way to connect to a remote database through drupal? Would the correct method be to use the settings.php with the database in there, and use the built in db_select, db_query() etc ...
0
votes
1answer
33 views

Shared Field Name Between Entity Types?

I have always separated my field names by entity. e.g. field_paragraph_h2 or field_content_h2, but when you look at config, fields are designated by their entity type as well. field.field....
1
vote
1answer
24 views

Set max_execution_time for view?

I've got a view that generates a CSV report on user information. However, due to the size of the dataset it's causing the server to timeout. Is there some way that I can set the max_execution_time() ...
0
votes
0answers
26 views

Cannot add a domain to existing drupal 7 site

Sorry in advance if this is a dumb question, I can't seem to figure out how to add a domain name to a D7 site, (currently using an IP). The website is hosted on digitalocean, the new domain is from ...
1
vote
1answer
65 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
30 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....
0
votes
0answers
22 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
27 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
0answers
41 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
230 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
votes
2answers
86 views

Config entity schema to save checkboxes element

I have created a Config Entity, one of the values it stores is the results from a set of checkboxes. This is the element in the form $form['choices'] = [ '#type' => 'checkboxes', '#title' =>...
0
votes
1answer
45 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 ...
1
vote
1answer
287 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 ...
2
votes
1answer
112 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
116 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 ...
0
votes
1answer
70 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
130 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
1answer
73 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 ...
0
votes
0answers
24 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 ...