Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

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

Give Role Permission to 1 Admin Configuration area?

Is there a simple way to give access to 1 panel of options within Administration Configuration? I made a custom module with settings under /admin/config/mymodule and it shows up as a block with links ...
0
votes
1answer
160 views

Where should I define the “drupal_stale_file_threshold” Drupal variable?

I want to delete my CSS and JavaScript files every day. Where do I define the "drupal_stale_file_threshold" variable? In the template.php file with variable_set('drupal_stale_file_threshold', 86400); ...
0
votes
1answer
1k views

Variable_get question default value in form

So I am reading Drupal Development Pro 7 and have stumbled upon something I am a little bit unsure about to do with the variable_get function & form element. I understand it retrieves a stored ...
0
votes
1answer
5k views

Override default php settings

I am having difficulties in overriding the default PHP settings within my Drupal installation. I do not want Drupal to display E_NOTICE messages. So I wanted to override the default PHP ...
0
votes
1answer
39 views

How to install and enable a default and admin theme in a Drupal 8 install profile with just YML (without using hook_install() or a .profile file)?

I want to avoid using hook_install() so I can install from configuration. I'd like my install profile to use seven for the admin theme, and my custom theme rutherford for the default/main frontend ...
0
votes
2answers
66 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 ...
0
votes
1answer
168 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
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
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 ...
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 ...
0
votes
1answer
169 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
95 views

How can I iterate through all the key and value of configuration object

I have an admin setting form (Configuration form) called 'example.settings'. I can load the configuration using below code. $config = \Drupal::config('example.settings'); Is there a way to iterate ...
0
votes
1answer
397 views

How to remove field from form and configuration?

We have a custom module, mymodule that has a form, mymoduleForm with two fields: enabled content types and urls. We no longer need the enabled content types field on the form and want to remove it ...
0
votes
1answer
672 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
2answers
327 views

Image Styles Not Generating Thumbnails/Previews

I have File Browser installed on my website. The module info can be found here: https://www.drupal.org/project/file_browser When I go to browse for pictures, there are no images. You can see what I ...
0
votes
1answer
26 views

Is there a way to search Drupal's and contrib modules configuration settings?

With so many different modules in use with configuring Drupal it is hard to keep track of which settings are configured where, such as whether some CSS is set by the Code per Node or CSS Injector. It ...
0
votes
1answer
50 views

What core configurations should be used in settings.php for a production site? [closed]

Can someone please share Drupal core configurations that should be included and/or excluded from settings.php to make the site both performant and secure?
0
votes
1answer
690 views

Access violation error on any page or drush

Recently started working with an inherited Drupal 8 website which I am trying to get up and running on my Mac OS X (Sierra) but I am getting this error with a stack trace every time I try run drush or ...
0
votes
1answer
84 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
446 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/...
0
votes
1answer
404 views

Custom Module Configuration not working

I have the following file. modules/custom/test_module/config/install/test_module.settings.yml test_module.settings: message: 'Hello' langcode: 'en' But I am not able to get the following ...
0
votes
3answers
162 views

Get node id for page which is set for 403 and 404

I want to get the node number (nid) for the node which is set for 403 and 404 pages in drupal configuration system. Can you please help me for this ?
0
votes
3answers
342 views

alternative to storing api keys in migration yaml files?

I've created a yaml file to import Twitter timeline items (not super simple since documentation on the migrate_plus OAuth plugin seems to be few and far between); this migration naturally requires the ...
0
votes
1answer
19 views

Depending field

So i'm just begining to create a site in my company. the purpose of this internal website is to reference all setup we have in the company and i have to do it on drupal 8. In order to do this i am ...
0
votes
2answers
45 views

How can I be sure configuration is never changed on live system?

The documentation for the Drupal 8 configuration manager says: Making configuration changes on a live site is not recommended. When managing a site used by dozens of content managers, how can I ...
0
votes
2answers
114 views

Creating config schema file for mutable data

I have a custom module where I need to have a couple different types of configuration, both immutable and mutable. The immutable portion contains a feed URL for a couple different sites, so I have /...
0
votes
1answer
578 views

How to redirect certain requests to use https://www.example.com in pantheon?

In my Drupal install I would like to direct most URL requests to use https://www.example.com and only a few pages to use http://www.example.com Since my site is hosted on pantheon i cannot use ....
0
votes
1answer
225 views

Sending Contact Form Emails [closed]

I am trying to configure a site to send emails using the Contact Us form. At the moment, my understanding is that some PHP modules are required for that. I have already created the Contact Us forms ...
0
votes
1answer
1k views

Variables / settings configurable in Admin UI?

I need a simple way to make some custom variables / settings configurable for an Editor in Drupal 8. They are not related to Drupal, only to the custom project. For instance, the editor shall be able ...
0
votes
1answer
278 views

Is it possible to get client ip in setting.php

I'm trying to get the client IP in settings.php for security reasons, using the following code. I have to support X-Forwarded-For header because accessing web server over loadbalancer. $clientIp = \...
0
votes
1answer
112 views

Show custom entity bundle field

I created an module polls and entity poll using Drupal Console I want to add default entity_type on installation. Currently I added only one field to it field_image. I created following files ...
0
votes
1answer
1k views

I have the following errors in my configuration page

I uninstalled a few modules. ~/apps/drupal/htdocs/modules$ drush pm-uninstall relaxed The following extensions will be uninstalled: relaxed Do you really want to continue? (y/n): y ...
0
votes
1answer
461 views

Drupal 8 Display True/False instead 0/1 on checkbox value in ConfigFormBase

By default the boolean fields' value displayed as 0/1 when user filled the checkbox field under custom configuration form. Need to render True/False instead of 0/1. $form['newfield'][$id]['required']...
0
votes
1answer
420 views

Environment dependend workflow with configuration management

When using Drupal 7 with larger projects, we used a Custom module together with Features, Environment and Environment Indicator modules to keep special environment settings apart. We had at least one ...
0
votes
1answer
124 views

Blocks: Old vs. “Custom” and Config vs. Fields

I have quite a bit to ask in this question, so I apologize in advance. I believe these questions are all related, and I'm trying to grasp some thoughts on the new block system in Drupal 8. Background ...
0
votes
2answers
164 views

how to correctly chain multiple files in '$settings['container_yamls'][]'?

In the settings.php file, I have the following line, to use a local service.yml. $settings['container_yamls'][] = __DIR__ . '/services.yml'; I need to install the Redis module, which instructs to ...
0
votes
2answers
336 views

Configuration management export blocks from Dev to Staging

I created and placed some blocks in my local Drupal 8 Dev site. I exported the full configuration. After I import the configuration into my Staging site I get this error: This block is broken or ...
0
votes
1answer
474 views

Get list of custom fields and update their settings programatically

I'm using D8's core contact form, I have added some custom fields and I want to change one of custom fields' settings config programatically. I have tried this \Drupal::service('entity_field.manager'...
0
votes
1answer
96 views

How can i Use drupal 8 CMI between two different sites?

I think, normally the CMI works between cloned sites, not different sites. Is there any way to do that with CMI ? or still we hardly depends the features module ?
0
votes
3answers
4k views

How to set the path for the public directory?

I used to have a Drupal 7 installation on var/www, but I had to move it to var/www/drupal. The problems is that my files are still in var/www/sites/default/files and I am unable to move them. I need ...
0
votes
1answer
951 views

Bash script to configure the database for a drupal site install not working

I have a bash script that I want to use to be able to configure a drupal site without having to go through the browser screens. My setup is using XAMPP on MAC OS X with PHP Directory for my files ...
0
votes
1answer
2k views

How variable_get and variable_set works in drupal [duplicate]

How do variables work? Is it as simple as using variable_set('myvar', 'my_value'); to set, and variable_get('myvar'); to retrieve? Additionally, where are these variables stored, and do they have ...
0
votes
2answers
75 views

Entity view displays are throwing dependency errors during installation

I have a custom entity in my module. During installation I am creating a bundle for this entity. Then in the config I have two entity view displays for this bundle. One of those displays is for the ...
0
votes
1answer
480 views

Block in Drupal 8

I have coded a plugin in my module which extends block base and generates labels for block in /admin/structure/block page under Place block. These block are being generated for different entities. The ...
0
votes
1answer
224 views

Exporting Custom Display Suite View Modes With Configuration

I'm using display suite with custom display settings for several view modes. I am also using the configuration management module for D7. When I go to import my config on the staging server, the ...
0
votes
1answer
897 views

SSL Issues with Mixed Content and Firefox

my question is about SSL with Drupal. I've uploaded my certs to my server and got everything installed and working correctly. I've set the base_url to be my https://site domain and also put the ...
0
votes
1answer
285 views

public files config in settings.php creates .htaccess file

I had multisite previously, two sites sharing same codebase like but having their own files system: - site1 -> sites/site1/files/FILES_HERE site2 -> sites/site2/files/FILES_HERE Now I am trying to ...
0
votes
1answer
436 views

Filter module won't let me add nested values to my configuration

I'm working on the D8 port of my xbbcode module; my latest sources are here. The module is supposed to let administrators enable individual BBCode tags either in the global default settings or in an ...
0
votes
3answers
1k views

Not able to change the settings.php

I am working on drupal commons, and using pantheon servers for hosting. The major problem I am facing is the server database config issues. I am not able to change the settings.php file. Also Pantheon ...
0
votes
1answer
75 views

White screen of death but only on log in page?

Ive got a copy of a site to work on locally. The instructions were to leave the settings.php how it is and just enter my database details into local_settings.php. Ive done this and the site works fine ...