Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

3
votes
0answers
949 views

How do I translate theme settings?

How do you translate custom theme settings in Drupal 8? I use hook_form_system_theme_settings_alter to add custom settings to a theme. One setting is the text string (e.g. 'Menu') to display beside ...
2
votes
0answers
179 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 ...
2
votes
0answers
164 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. ...
2
votes
0answers
138 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
0answers
278 views

Update schema.yml variable type: string to integer

I would like to update my module schema variable from string to integer. mymodule.settings: type: config_object label: 'Module settings' mapping: identity: type: string -> integer ...
2
votes
0answers
1k views

How to optimize the unserialization of “variables” cache value

As we all know, the whole variable table is being cached in the drupal cache system and is being extracted into global $conf variable in each invoke. In one of our production site with the domain ...
1
vote
0answers
55 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 ...
1
vote
0answers
58 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.
1
vote
0answers
121 views

Add permission to existing role in custom module using configuration

Permissions may be added to existing roles programatically as described in this answer. However, I would like to put that into configuration. I can create a role calling king by putting user.role....
1
vote
0answers
105 views

Properly export text format and editor settings

I'm trying to export the CKeditor settings and restricted_html settings but it's partially imported in the end. I'm exporting the editor.editor.restricted_html.yml and the filter.format....
1
vote
0answers
34 views

Drupal 8 config yml differences due to ordering/positioning of elements

Got a really annoying thing related to config-import/export, due to the positioning of elements in the yml file the config never syncs between production server and development server. For example: ...
1
vote
0answers
116 views

PHPUnit Test run Error with ConfigFactory

I'm running an error with the following test I wrote including some config. I don't know if my test is even properly written so any advice in improving that code is welcomed. Since my test is not ...
1
vote
0answers
87 views

How to Add a Default Prefix into the Acquia Dev Desktop Settings

I'm using Acquia Dev Desktop for my local Drupal 7 development. All of the tables in my sites are prefixed with "dr_". Whenever I create or import a site, I have to manually change the settings to ...
1
vote
0answers
231 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
0answers
544 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
0answers
427 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 ...
1
vote
0answers
151 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 ...
1
vote
0answers
956 views

PHP OPcode caching: Not enabled

I am new to everything Drupal, when trying to start my site under Verify Requirements Drupal 8.2.2 the following error shows: PHP OPcode caching Not enabled PHP OPcode caching can improve your site'...
1
vote
0answers
20 views

How do I store editor-configurable snippets of configuration?

The Drupal 8 site I'm building contains some custom forms and pages. On those pages, bits information are inserted that must remain editable by the site editors. In D7, I would probably have used the ...
1
vote
0answers
73 views

Creating config entities in a functional browser test

I am extending Drupal\Tests\BrowserTestBase to create a functional test which attempts to edit and save a config entity. Creating this via MyEntity::create($data)->save(); has weird effects: They ...
1
vote
0answers
68 views

Rebuild config module

I have create file config in a module /custom /module_name /config /install /module_name.settings.yml this is ...
1
vote
0answers
359 views

Change existing field definition

I have Drupal8 site where client suddenly wanted to change some field from 2 decimal scale to 3. To X.XXX that is. Now I'm aware that changing field definition when there's stuff in db is not ...
1
vote
0answers
8 views

Why can I not see a field which depends on two other fields related by the OR operator?

I'm using the Conditional Fields module and I have a field that I can set while editing my custom content type. That field is dependent to two other fields which are related by the operator OR. The ...
1
vote
0answers
411 views

How to use third party settings to store an array of values

I'm making a module and almost complete, but I can't seem to get third party settings to save. Here is my schema.yml: editor.editor.*.third_party.ckeditor_styles: type: mapping label: 'CKEditor ...
1
vote
0answers
141 views

Change block configuration before render the block programmatically

I have a view that display some nodes and some of this nodes have a menu voice connected to them with sub menus. main menu: -node 1 [mid:407] --node 2 --node 3 -node 4 [mid:219] --node 5 I want ...
1
vote
0answers
34 views

Define config schema on an installation profile

I have a custom installation profile, which has a profiles/foo/config/install/foo.settings.yml. I try to declare a schema in profiles/foo/config/schema/foo.schema.yml but it seems that file is not ...
1
vote
0answers
40 views

D8: Multilingual configuration and dynamic content

I'm currently working on a multilingual Drupal 8 project that also takes advantage of D8's new CMI system (Buzzwords: Content Manangement Initiative). Is there some sort of best practice here? I ...
1
vote
0answers
75 views

Configuration export not working for sub-theme that has underscore in name

Had a strange issue today where I have a sub-theme (bootstrap) called 'rrre_theme'. I can confirm I have not made any errors throughout my sub-theme in terms of naming. I position blocks and generally ...
1
vote
0answers
67 views

How to quickly configure allowed content for panelizer

I am developing 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 there ...
1
vote
0answers
70 views

display alternate url after redirect using $base_url

1) have 2 d8 sites: site1.com and subd.site2.com in a multisite server (no root access) 2) would like site1.com/subd to redirect to subd.site2.com BUT display url site1.com/subd 3) I now have an ....
1
vote
0answers
698 views

“PluginNotFoundException” when saving a view

I download the backup of my front page view. Then I decide to remove it (using the UI) and then added back again using the configuration import. Then I try to edit that view and does not let me save ...
1
vote
0answers
813 views

Enabled Trusted Host Settings in settings.php keep showing up as not enabled

I just installed Drupal 8.0.1. I have changed the Trusted Host Settings on my website. But in the error report it is still saying that "Trusted Host Settings NOT ENABLED". The lines are: $settings['...
1
vote
0answers
55 views

How deploy an aplication inside drupal

I developed a site in Php using Laravel 4. This site will show many articles and images, that´s why I start to use Drupal 7 for present those, but the problem is that I cant't found how manage only ...
1
vote
0answers
40 views

CiviCRM on Drupal: Array to string conversion error in BAO setting.php in Display preferences

I'm receiving this error after a fresh install of civicrm-4.4.17 on drupal-7.38. While attempting to go through the configuration checklist I also noticed that the items were not turning green after ...
1
vote
0answers
168 views

drupal issue with install profile and domain module?

I had generated the make file with the contrib module domain. When we enable the domain module, we just want to append the following code to the settings.php file. include_once DRUPAL_ROOT.'/profiles/...
1
vote
0answers
137 views

Invalid Variable: drupal_private_key

I just updated my live Drupal install and now I receive the following notice in the admin: Found one invalid variable When I go to /admin/reports/variablecheck it shows that the variable ...
1
vote
0answers
770 views

Drupal redirects to site.local/install.php

I was working on my branch this morning tweaking some CSS when all of a sudden my Drupal site went into a dead mode. I am running multi site mode and the local.settings.php in the individual sites is ...
1
vote
0answers
152 views

Set a custom module variable based on webform nid

I am working on a custom module that hooks into Webform in various ways. Right now I am saving variables using system_settings_form and understand that these will go into a Drupal variables table ...
1
vote
0answers
181 views

How to use context module instead of panel module?

I am unable to set user permission on particular section of panel. For example I have used 3 column panel layout for particular page and want to set view permission to only one column out of three to ...
0
votes
0answers
27 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 ...
0
votes
0answers
17 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
29 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
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
19 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. ...
0
votes
0answers
31 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
44 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
0answers
25 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 ...
0
votes
0answers
18 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
25 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
37 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 ...