Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
1
vote
1answer
1k 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 ...
6
votes
3answers
4k views

How to override configuration from a file?

I have been playing a lot lately with an import configuration to Drupal 8. And I notice that all documentation show you how to edit value per value instead of overriding the entire config file. You ...
0
votes
0answers
11 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....
5
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
0answers
30 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 ...
2
votes
1answer
507 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 ...
0
votes
1answer
82 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 ...
0
votes
1answer
445 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....
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
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
29 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 ...
1
vote
1answer
51 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
1answer
800 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 ...
0
votes
1answer
908 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
932 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 ...
1
vote
3answers
1k views

Should I define all my variables in the module.settings.yml file?

With the new Configuration Management System we can create a module.settings.yml file with all the variables that we will use in our module. Now just to made a test I delete all the content inside ...
0
votes
0answers
33 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
35 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
1answer
770 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 ...
1
vote
0answers
71 views

How to quickly configure allowed content for panelizer?

I am developing a site which will have about 15 content types such as news, events, course etc. I need to configure allowed only specific content for panelizer. When I go to allowed content option ...
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'); $...
8
votes
3answers
10k 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\...
5
votes
3answers
16k views

Can't edit settings.php in Drupal 7 - Premission Denied - Can't Write to File via Cpanel File Manager

Trying to edit settings.php via Cpanel File Manager I can CHMOD the file to anything I want and back but can't write to it. I get the following message: Could not write /home/testing&#...
0
votes
0answers
29 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\...
0
votes
1answer
909 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 ...
1
vote
1answer
77 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
1answer
344 views

Modify custom module's setting.yml without reinstalling

I have made a simple custom module in Drupal 8, in which I use a settings file (config/install/my_module.settings.yml) I have one entry, let's say module: key: 'qsdqsd' So when I install the ...
1
vote
2answers
49 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
47 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 ...
5
votes
3answers
4k 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 ...
1
vote
1answer
131 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
58 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 ...
1
vote
1answer
555 views

How do I connect to an external database and specify the schema to use?

I want to connect Drupal to an external Database and I need to specify the schema on the settings.php file, otherwise Drupal schema module connects by default to the 'public' schema. I tried, without ...
4
votes
1answer
3k views

How to check if a database is set up in settings.php?

I am creating a module for Drupal 8. One of the requirements is that you first add a new database in settings.php. On the admin page, I want to check if the user did this step and show a warning if he ...
0
votes
1answer
405 views

Enable rest resource resource when module installs

I have a custom rest resource I have created within my module: /** * Provides a Demo Resource * * @RestResource( * id = "custom", * label = @Translation("custom"), * uri_paths = { * "...
-2
votes
3answers
73 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
44 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 ...
4
votes
2answers
930 views

Prevent directory permissions of sites/default from being protected in a local environment?

Drupal automatically changes the directory permissions of sites/default to 555 (i.e. read-only), which means that if I'm editing sites/default/settings.php, even if I've set the permissions for that ...
0
votes
0answers
75 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 ...
4
votes
2answers
532 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
952 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
565 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
424 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
455 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/...
51
votes
7answers
36k 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 ...
0
votes
0answers
47 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
561 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
51 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 ...
8
votes
2answers
935 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 ...
2
votes
1answer
625 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 ...

1 2 3 4 5 14