Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
2
votes
0answers
194 views

Configuration sync with deleted field

I have a field field.storage.node.field_create_ic created with type 'calendar_download_type' and it is one of the contributed module (ics_field). Now, in my local environment I deleted the field and ...
6
votes
2answers
261 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
1answer
192 views

How to create a test configuration that can called in a test class?

I am attempting to write a unit test by extending UnitTestCase. Below is how my code works, but I need a way to create a test (or mock) configuration that can be used to satisfy the testing. How can ...
0
votes
1answer
157 views

Configuration variable inside a hook take always the default value in a PHPUnit test

I'm trying to create a Functional test for the dev version of the No Autocomplete module to test that if the configuration is set then an autocomplete attribute=off will be added to the password edit ...
0
votes
1answer
33 views

What is the recommendation for mapping state?

The configuration in D8 is nicely mapped in config schema file so any developer knows what configuration changes can be made. But what about state? Is there a recommended way to map state? Or is it ...
2
votes
0answers
141 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 ...
2
votes
1answer
137 views

What's overriding my local_settings.php?

I'm using a local_settings.php file, that includes several $conf settings. All of the settings were working as expected until just recently when the mail_system setting started getting overridden ...
-2
votes
2answers
302 views

Drupal 7 variable_get()

How to get variable from help of variable_get function, function has saved value on any db table or some where else?
3
votes
2answers
145 views

Where are Cache settings stored?

I assumed the settings from the function system_performance_settings were stored in variables, but couldn't figure out which.
0
votes
1answer
128 views

Accessing variable_get when loading bootstrap from an external file

I am loading the core drupal 7 components through an external file by loading bootstrap. While the core drupal functions work properly, when I try to access variable_get I keep getting the default ...
0
votes
1answer
142 views

structure_sync not working

I am trying to use structure_sync within my Drupal 8.4.4 project to export the block content of custom blocks as a configuration (see also the discussion "Custom blocks cannot be properly exported and ...
0
votes
1answer
1k views

how to change base url in drupal 8 [closed]

I had installed a drupal website inside a folder in web root on an amazon ec2 instance. I used to access it by calling http://xx.xx.xxx.xx/folder .Now that the site is finished i created virtual hosts ...
1
vote
0answers
240 views

How can locally deleted fields also be deleted on production?

We are using D8's Configuration Management for our site. When we delete fields in our local development environment the corresponding content type and field yml files are updated to reflect the change....
1
vote
1answer
381 views

Configuration management and site specific configuration

I have different site environments for my site; dev, test and live site. On dev (local develop) my solr settings are different then on my live environment. How do I configure site-specific solr ...
1
vote
1answer
60 views

Do not import configurations if already exists

I have built a custom module and there are two configuration files in config/install directory of my module. When the module is installed the configurations are installed correctly. When I uninstall ...
4
votes
4answers
4k 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. ...
15
votes
3answers
316 views

How do I deploy/manage similar sites from an unique profile, without dumps?

I do not like the "cloning website" solutions which implies dumping a database and importing this dump in another environment. This does not look like a real world way of deploying several instances ...
1
vote
1answer
59 views

How do I write a config file manually?

I need to find out how to manually create a configuration file, one which will be included with a custom theme as optional/required upon installation. I know I need to create a file in themes/mytheme/...
0
votes
1answer
166 views

Features along with configuration synchronization

I am planning to use features to bundle some of my specific works. Example: I want to bundle article content types along with its views, fields and related other stuffs. Can I just use features to ...
0
votes
1answer
195 views

How to import a display mode configuration from a custom module

I have a custom module with the file config/install/core.entity_view_display.node.event.featured.yml which contains config for a display mode called 'featured' for the content type 'event'. The ...
2
votes
2answers
1k views

Is there a way with drush or console to delete all active config with a certain prefix?

I'm currently trying to migrate a site with drush migrate-upgrade --configure-only ... and copying the export migrate_plus.migration_*.yml into a custom module for tweaking. Now I want to enable that ...
3
votes
1answer
2k views

settings.php after migration

I transferred my files via FTP and database to a hosting service. I edited two files, settings.php and sites/default/settings.php whose content was originally the following. $databases = array ( '...
1
vote
2answers
774 views

Drupal ignoring changes to settings.php

I made a copy of one of my drupal sites and I'm attempting to set it up to use a different database but for some reason it's ignoring changes to my settings.php file. My settings.php file is in sites/...
0
votes
1answer
188 views

Fatal Error HtmlRouteProvider not found?

Fatal Error: Fatal error: Class 'Drupal\custom_avatar\CustomAvatarHtmlRouteProvider' not found in /Sites/drupal8/core/lib/Drupal/Core/Entity/EntityTypeManager.php on line 252 I am creating ...
1
vote
2answers
63 views

Export block that exists in two or more regions

Does anyone know how to export block that exists in two or more regions into yaml file? This is the scenario I'm facing. A 'sitebranding' block is placed onto header and footer regions. When I go to ...
0
votes
0answers
324 views

How to test if a config entity can be deleted?

In my custom module are in hook_unistall all its config entities deleted. One of the entities causes after uninstall the following error: A non-existent config entity name returned by ...
1
vote
2answers
612 views

“Drush sqlc < myfile.sql” doesn't return the site to previously working state. Are there files to be deleted?

I've backed up my drupal 8 database via the CLI using drush sql-dump > myfile.sql. I make some changes to the site and break it, then I try to restore it via drush sqlc < myfile.sql. It works ...
2
votes
3answers
229 views

What is good way to hide update.php file?

I will like to know what is the correct/better way to hide update.php file on the production server. Currently when you try to access update.php file, Drupal shows default access denied page with ...
0
votes
1answer
75 views

Pass block configuration item text field value to variable

I have a custom block module that has a configuration form of type text_field. If there is a value entered into the configuration form, I want to store that value in a variable. Here is the ...
0
votes
1answer
28 views

Manage Display formatting settings won't work

I've got a problem with formatting decimal fields in Drupal using the Manage Display settings. I've already specified a thousands separator for this particular decimal field: And clicked Update and ...
0
votes
1answer
214 views

Trusted Host Settings Not enabled

In the settings.php file if the site, I added the following line. $settings['trusted_host_patterns'] = array( '^www\.example\.com$', ); I'm using Drupal 8.2.6. Do I need to add the proxy ...
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
99 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
2answers
430 views

Including image styles in custom module

I was following topic. I can including image style in my custom module. But I have a problem. I can't reinstall module because of following error: Unable to install Module ABC, image.style....
1
vote
0answers
584 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 ...
1
vote
1answer
77 views

Synchronize teaser config file Issue

After creating a new content type in DEV and then in STAGE importing the exported DEV; After successful import I find below file in in CHANGED stage(1 Changed). core.entity_view_display.node....
1
vote
1answer
183 views

Where is list of theme features in Drupal 8 that can be exposed on the “Settings” page?

In my theme.info.yml file, I can expose features to show up in the settings of my theme. It's documented here: drupal.org theming features: - comment_user_verification - comment_user_picture - ...
2
votes
0answers
179 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. ...
0
votes
2answers
1k 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 ...
0
votes
1answer
383 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/...
1
vote
0answers
448 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 ...
0
votes
1answer
49 views

Feature revert deletes existing Strongarm variable

I got a Drupal 7 feature, which contains certain Strongarm variables, such as admin_theme. This feature has been created, released and reverted multiple times, always without fault. Suddenly, the last ...
-2
votes
1answer
406 views

In which file is the username/password located? [duplicate]

I did a standard installation of drupal 8 varbase and added this into Aqucia Dev Desktop 2. Where can I find the username/password which is used for the database access from Drupal for the database? ...
4
votes
5answers
1k views

Block error on CMI

I have two identical sites on Drupal 8 (A and B), on (A) I created a custom block(block/add), and then I export the configuration(drush config-export) and import this config on (B) (drush config-...
4
votes
2answers
3k 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 ...
1
vote
0answers
223 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
16 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 ...
1
vote
2answers
2k views

Connecting to a remote database in D8

I have the following params in settings.php to connect to an external database . $databases['d8243']['default'] = array ( 'database' => 'drupal8', 'username' => 'root', 'password' => '...
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 ...
2
votes
2answers
48 views

What's your trick to document (in the UI?) variables overridden in settings.php?

If you define variable overrides in settings.php, there is no visible change to the admin UI. It's easy when overtired (or just inexperienced) to overlook this when changing some config through the UI,...