Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
2
votes
6answers
63k views

Database error: Lost connection to MySQL server at 'reading initial communication packet'

this has driven me crazy, I just couldn't find out what is wrong with it. I moved my site onto a test directory under my domain '/drupal_test', I have transferred the database over, set up ...
2
votes
1answer
18k views

Database problem after moving the site: unknown server error

I just moved my site onto the server and put it under /drupal_test directory. I now have got an error in the browser, but there is no errors in the apache error log: PDOException: SQLSTATE[HY000] [...
2
votes
4answers
2k views

Unable to save variable(s) from a custom form

I want to create a custom form with a few textfields and then use variable_set to save those textfields as variables. I am not able to save the variable with the code below. Question: I do not see ...
2
votes
3answers
2k views

From where does variable_get() get the first parameter?

function variable_get($name, $default = NULL) { global $conf; return isset($conf[$name]) ? $conf[$name] : $default; } From where does variable_get() get the first parameter?
2
votes
1answer
926 views

Same file_temporary_path for localhost and production server?

Each time I move one of my Drupal website from localhost to production server or vice-versa, I have to edit my settings.php to update the path of the temporary file directory: # $conf['...
2
votes
1answer
256 views

Settings contains a dot which is not supported, but module gets enabled properly

I'm developing a search engine module for Drupal 8. On a clean new Drupal website, I can install it from the admin GUI, but when I enable it I have the classical white screen (The website ...
2
votes
1answer
161 views

Unexpected error during import . . . plugin does not exist error on drush config import

This is an issue I've had occasionally when trying to delete a plugin in a custom module. In this example, once a filter format filter plugin has been enabled it's impossible to remove. If you ...
2
votes
1answer
89 views

Where are config dependencies stored?

I have this error when importing a single piece of config manually: Configuration foo.api depends on the MODULE extension that will not be installed after import. There is no "MODULE" extension in ...
2
votes
1answer
277 views

How to determine the code for settings.php config override based on .yml?

I am trying to put my API keys in a separate file instead of storing them in config management. For example, I installed the Commerce Stripe module. When I export the config, it looks like this: ...
2
votes
2answers
304 views

Why do I have error related to unknown themes during synchronization?

When I try do synchronize from my local site to the remote one, I get this bunch of errors which prevent configuration to be imported. It seems to be related to some themes (alpha_responsive_theme, ...
2
votes
1answer
54 views

Cloning a Drupal website without content

Drupal 8 ships with the new Configuration Management System. This system checks the sites UUID and only allows imports of configuration if the uuid is the same. This means, your steps to create a new ...
2
votes
1answer
2k views

How to change the entity view display configuration programmatically?

In a hook_install implementation, I need to change the entity view display configuration of certain bundle / view mode combinations. For instance, I would like to change the 'teaser' view mode of the ...
2
votes
1answer
575 views

What is the difference between the config and the settings directories?

I can see a folder named config in Drupal 8 core modules which contains sub directories like optional, schema and install. I can see it is like a settings folder which is initialised during module ...
2
votes
2answers
322 views

Multisite config directories of subsides

I set up a local Drupal 8 multisite, using Acquia dev desktop. It's working fine. I added all Drupal 8 core files to my local repository and pushed them to a central remote repository. in sites/...
2
votes
2answers
227 views

Changing configuration using form

I have created a form using which I want to make changes in the configuration.Currently I am submitting form doing something like this: public function submitForm(array &$form, ...
2
votes
2answers
2k views

how to grant a user to only access the performance area of the configuration screen drupal 7

I would like to give my content editors the ability to flush the website Drupal cache. I can't seem to give them this privilege without also giving them the privilege to do everything in the ...
2
votes
2answers
114 views

Why can 'Others' read settings.php by default? [closed]

By default, settings.php has its permissions set to 404, which means 'Others' can read the file. Why not set it to 400, so that only the user can read the file? Thanks.
2
votes
1answer
103 views

Is it bad practice to track all in the configuration module

I am taking over a site that was built without configuration management, I installed the configuration module for the first time (I am used to using features). I am wondering if it is bad practice to ...
2
votes
1answer
26 views

Is there a variable that keeps track of which pages are enabled or disabled in Page Manager?

I'm using the Features module and I'm tired of manually enabling/disabling pages (user_edit, user_view, etc.) Is there a variable that I can add to Strongarm to control this in code?
2
votes
2answers
569 views

Drupal Installation running without settings.php (multisite)

What we intended to achieve was setup drupal.abcd.com as main installation of multisite setup, and abcd.com, xyz.com, pqrs.com as sub-sites of the multisite setup. The main installation (drupal.abcd....
2
votes
1answer
4k views

My site thinks it's a new install [closed]

I had an error (related to Date module I think? Can't remember.) on my site so I tried to do an update. Caused a WSOD so I svn reverted. Didn't help. Manually disabled each module in the database. ...
2
votes
2answers
66 views

How can I get documentation on a variable listed in the Features UI provided by Strongarm?

When looking through the list of variables provided by Strongarm, there are several that sound like they might be useful to include but what they actually refer to is impossible to guess from the name ...
2
votes
1answer
39 views

Exporting and Importing configuration setting only

I have a development and a production site. Both are working in an offline environment, Drush and Composer are not installed. The plan is to make all changes always on the development and during each ...
2
votes
2answers
175 views

Listing variable values using drush

I would like to list the values of certain variables using Drush in order to make sure they are in fact the variables that I intend to add to my feature. It seems that some variables are parents which ...
2
votes
1answer
103 views

Fixing configuration inspector missing schema errors

I'm using the configuration inspector to fix schema issues before I put a module live as a full release. I'm finding the following error, but I'm unclear on how to fix it. The module provides a new ...
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,...
2
votes
2answers
466 views

Can I safely use the same UUID on independent sites?

I'm trying to create a site building workflow which uses some sort of blueprint site, providing a shared, tested set of the Drupal core, modules, content types, paragraph types, a base theme, etc. for ...
2
votes
1answer
86 views

How do I get rid of a staged configuration import?

I have a staged import that I can't apply and I would like to get rid of it and be clean in my configuration management screen. How do I get rid of the staged import? Can I go to sync folder and ...
2
votes
1answer
33 views

Drupal 7 sessions wiped after changing settings.php

Yesterday afternoon I had an administrator uncomment and modify the $base_url variable in our production environment. Any changes made in the repository fires off a redeployment which has never been ...
2
votes
1answer
105 views

Export only non-default config

drush config-export dumps my entire site config into files. What I want is to only export config which is non-default. ie. if I haven't changed my "automated cron settings" since installing my ...
2
votes
2answers
3k views

How to change default language for configuration entities

I made a mistake during development of my Drupal 8 site. Some time ago I changed the default language (to german) - but I continued to create the configuration entities (like fields and so on) in ...
2
votes
2answers
2k views

Choose a destination after drush cex

In my sites/default/settings.php I changed: $config_directories = array( CONFIG_SYNC_DIRECTORY => 'sites/default/config-sync', ); I created the folder config-sync in sites/default/ When I do ...
2
votes
1answer
124 views

append settings.php during profile installation

I would like to add lines to my settings.php during my custom installation. I'm using some $conf['...'] to match external content to my drupal and i would like not to do this by modifying directly the ...
2
votes
1answer
2k views

What is the correct way to translate variable_get string values entered in admin input fields? [duplicate]

I'm developing a simple module with and admin page, where admin can fill some textfields with custom strings that will generates a piece of html to be used later. So for example I have fields like ...
2
votes
3answers
5k views

PDO exception error [database].semaphore doesnot exist [duplicate]

I created a website in drupal 7, tested it in my localhost and works good. Now, I want to host the site in our Main server. So, I uploaded the site directory to the server and created a corresponding ...
2
votes
1answer
189 views

Search block not showing if not logged in

When I am logged in I can see the the search form block, however when logged out I can not see it, I'm guessing its some sort of user config, but I can't seem to find anything
2
votes
2answers
654 views

Multi-site variables table for shared variables (extending variable_set)

I have a multi-site setup with some shared tables using db_prefix. The variables table is NOT shared. Sharing ALL variables would cause lot of trouble, but sharing only some selected variables wont. ...
2
votes
1answer
4k views

Site off-line with correct data in settings.php

I'm trying to set up a development folder for a Drupal6 already existing website. Under htdocs/sites/<website>/settings.php I have the following line in order to connect to the drupal6 DB: $...
2
votes
1answer
1k views

Form API + Module: Nested default value variable_get doesnt behave the same as unnested variable_get

Heres the example code: function mymodule_form($form, &$form_state){ $form['nest'] = array( '#type' => 'fieldset', '#title' => t('Nested settings'), '#tree' =>...
2
votes
1answer
182 views

Config import conflict, how to remove lock

I am trying to import config on my staging site, and I repeatedly get the following message: Another request may be synchronizing configuration already. I know that there are no other processes ...
2
votes
1answer
147 views

How do I stop a module from installing optional configuration, or make sure it's installed by the time I want to remove it myself?

I don't want the "Frontpage" view to be installed along with my installation profile. I tried adding a hook_install to a module which does this: \Drupal::entityTypeManager()->getStorage('view') ...
2
votes
2answers
257 views

Extending block configuration schema

I'm using the Configuration Inspector module module, and I'm finding a missing schema error. The configuration is for block.block.pminbox.settings.thread_count The block itself is a plugin, created ...
2
votes
1answer
544 views

Custom entries in entity view modes?

Background + question I want to port entdispfieldui to Drupal 8. (issue) The module allows a site builder to add new entries into an entity view mode, configure and position them among the regular ...
2
votes
1answer
159 views

Features and CMI Together

We are developing a single Drupal 8 site with a set of different features (content types, etc). The CMI approach is great for sharing config through git and importing/exporting on local, dev, stage, ...
2
votes
2answers
97 views

Secure Pages Module or force HTTPS Across Whole Site?

I understand that the Secure Pages module allows you to let some pages use http and force others to use https. Assuming that is correct, is there any reason for me to use Secure Pages if I'm already ...
2
votes
1answer
713 views

Configuration management import error

I use a CMI workflow with Git. I made configuration changes on Dev pulled them into Production now when I go to admin/config/development/configuration and try to import All I get this error: The ...
2
votes
1answer
505 views

How to add a view dependency to a Drupal 8 functional test

I'm working on a contrib module port to Drupal 8 and am currently adding additional test coverage (#2586125). The module provides both a field formatter and a views style plugin. I have good working ...
2
votes
1answer
44 views

Persistent variable (`variable_set()`) name restrictions

Are there any restrictions, conventions, etc. for the names of persistent variables created with variable_set()? Aside from project name prefix, I haven't found anything in the documentation. However,...
2
votes
1answer
213 views

Practical staging of config

I am successfully migrating at least the bulk of my config from dev thru stage to prod. But the process could obviously be more robust. Current procedure: create central (bare) repository create ...
2
votes
1answer
89 views

Is there any sensitive data in the Configuration Management Export?

I noticed in default.settings.php this comment: Location of the site configuration files. The $config_directories array specifies the location of file system directories used for ...