Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
0
votes
2answers
88 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
97 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
33 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
289 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
483 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
205 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
48 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
530 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
73 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
368 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
348 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
148 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
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
41 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
100 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
487 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
204 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
250 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
955 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
427 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
408 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
116 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
152 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
315 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
460 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
94 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
3k 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
926 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
479 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
215 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
888 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
275 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
418 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
74 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 ...
0
votes
1answer
319 views

changing unicode characters in a module

There are hundreds of records in a database that are in windows-1256 charset, I want to read these data and convert them to utf8 then insert them in a new table, to read these data I need to change ...
0
votes
1answer
716 views

How to tell variable_get to get the value from the database and not the $conf array?

variable_get seems to always used $conf array which is fetched a single time. In a long running process where the value of a variable may have changed during operations this causes problems. Is ...
0
votes
3answers
1k views

Drush MAMP not working

I'm running with a big problem for hours now and it's driving me crazy, maybe one of you already know the answer. Drush seems to not want to work on my OSX (10.8.5) with MAMP (3.0.5). When I execute $...
0
votes
1answer
590 views

How can i access MySQL of a local Acquia Dev website using the command line?

Can we post about Acquia DevDesktop here? i cannot figure out how to log in locally to MySQL using the command line. i posted on their forum and got no response. Local Acquia DevDesktop sites do not ...
0
votes
1answer
75 views

Easy database reconfiguration for migration [duplicate]

I have build a Drupal site on my local development server and I am preparing to move it to my test server and eventually my live server. I know where to find the database settings in my settings.php ...
0
votes
1answer
95 views

dev site reverts to production site url when clearing cache [closed]

I have moved a copy of my production site to a development box. When I clear cache at admin/settings/performance or save settings on a theme, all of a sudden the URL jumps from localhost/example/admin/...
0
votes
1answer
3k views

How do I access Session variables in Drupal that were set on non-drupal pages?

If I go print_r($_SESSION) on a drupal page (say mysite.com/ )I only get Session variables set from drupal pages (which are none atm). I can set new ones and they'll show up. Array ( ) However If ...
0
votes
1answer
4k views

PDO Error, __construct(): php_network_getaddresses: getaddrinfo failed:

I'm pulling a site from my production server down to a new development server that I'm setting up. I can't get this to work though unfortunately. I imported my database into mysql and made sure that ...
0
votes
2answers
148 views

Only front page shown? [duplicate]

I designed my site with Acquia Dev Desktop on my PC and now it's finished and I uploaded folder of my site to public_html folder in cpanel. I export my database on my computer and import it to my host....
0
votes
1answer
3k views

Drush and database credentials from external sources

For some specific automation reasons, I use the following snippet in settings.php rather than defining db credentials directly in it. $databases = array( 'default' => array( 'default' => ...