We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

How to export a module's configuration? [closed]

I've set up a module on one site and want to export it to another site. From researching, I understand you can use Features to do this. However there is no documentation detailing this. Any ...
0
votes
1answer
67 views

Drupal 7 returning empty array because of the database connection

I am able to connect to the remote database and fetch the results when I am using core PHP-MySQL connection. But Drupal 7 returns empty array when I am using the same remote database connection. The ...
0
votes
1answer
29 views

default email not showing up in webform

I had used files of a website to create new website. I had changed the database and user details in settings.php. Now everything is working fine except email settings in webform. It is showing old ...
0
votes
1answer
389 views

Export and import configuration settings and content [duplicate]

I have created two sites. They have the same modules and themes available, however I want them to be complete clones of each other without doing a manual database export and import. I attempted ...
0
votes
1answer
315 views

Modify custom module's setting.yml without reinstalling

I have made a simple custom module in Drupal 8, in which I use a settings file (config/install/my_module.settings.yml) I have one entry, let's say module: key: 'qsdqsd' So when I install the ...
0
votes
1answer
31 views

Accessing values entered in custom fields added to install_configure_form

In my installation profile, I have added a text field to the install_configure_form by including: if (!function_exists("system_form_install_configure_form_alter")) { function ...
0
votes
1answer
304 views

import local drupal site with database already exist

i create a local website in my laptop and now i want to work on the project from an other laptop, after installing the module backup and migrate and active it , i download the public files settings ...
0
votes
1answer
18 views

How do i run the equivalent of single configuration import from a hook?

I have a hook_update_N that is changing a field. It is deleting the field and recreating it with the same name but a different field, formatter, and widget. The problem I'm having is that there is ...
0
votes
1answer
36 views

Moved one site to another site files are refering old site

I moved whole Drupal setup from ex.(1.1.1.1 to www.example.com). After the move there are some issues. Some Drupal default files are not found error.(ex. close.png ,background.png) because the images ...
0
votes
1answer
842 views

Image styles with $settings['file_public_base_url']?

I deep dive in the settings.php file of Drupal 8.1 and try to configure $settings['file_public_base_url']and $settings['file_public_path']. All media links are correctly rewritten, that works with ...
0
votes
1answer
79 views

Dynamic configuration form

i need to do a configuration file wich allow an admin to select a lot of terms from a vocabulary. Then i want to make a form with 2 select field : Vocabulary and Terms. So, i can select the vocabulary ...
0
votes
1answer
396 views

How do I tell drush not to overwrite some configuration settings?

I tell drush this: drush @live cim --skip-modules=system,swiftmailer and drush replies with this: Collection Config Operation swiftmailer....
0
votes
1answer
698 views

Help with $base URL path in settings.php

Since I created my site (long time ago!) I have added content and changed many settings. My URL has always been www.domain.com/'drupalfolder'/(content) I want to remove the drupal folder from the URL ...
0
votes
0answers
26 views

Home page not fully rendered on godady

I uploaded a website to a Godaddy shared hosing account, but the home page never get fully render. I checked the PHP version and the extensions, also checked the file/folder permissions. The website ...
0
votes
2answers
27 views

Dev version connects to the live site database despite settings.php

I've made a dev copy of the site to perform some tests and bug fixes: copied site files to the separate directory copied database under the same user, so I'm able to see both DBs in the phpmyadmin ...
0
votes
1answer
456 views

Hosting Multiple Domains seamlessly with same site code, theme, modules, data etc. not a multisites situation!

I would like to use D7 to support two domains with same code, themes, modules and even database and content, completely transparent to the end-user. So, user of oxustech.com would see only oxustech....
0
votes
1answer
324 views

Programmatically re-order role weights?

I want control over the order in which roles' columns are displayed on the Permissions page.. I want to add code to my module installation file so that, after newly-configured roles' yaml settings ...
0
votes
1answer
884 views

How do I create a configuration sync folder?

I've inherited a Drupal 8 site but it has no config_HASH folder with it which means that the majority of admin paths throw an exception. How do I generate a new configuration folder based on the ...
0
votes
1answer
133 views

How to set views configurations settings on custom module install?

I have a custom module. On its installation I want to set some configuration settings of views like: ui.show.master_display ui.show.sql_query.enabled to TRUE. For this I have added a file ...
0
votes
0answers
39 views

How to prevent invalid config from being saved?

I want the site email address to be located at the same domain as the website. If an email address with different domain is provided such value should not be saved into config. I have taken care of ...
0
votes
1answer
42 views

Where does the variable for the left sidebar get set in Drupal 6?

I have a Drupal 6 site where I've added a submenu for a new set of products: products -old products set 1 -old products set 2 -new products set --new product 1 --new product 2 --new product 3 that ...
0
votes
2answers
31 views

How to track what has (or hasn't) been “featurized” in the UI?

On a sufficiently large or complex site that uses Features to export or manage configuration, it seems easy to encounter a scenario where an administrative user can inadvertently change a variable ...
0
votes
1answer
589 views

All instances of block are not getting removed

This question is a continuation of this Block in Drupal 8, The second problem I am facing is that suppose I select block made for comment section and place it under Sidebar second section and ...
0
votes
0answers
112 views

Why some variables aren't listed on strongarm feature component list?

I want to export 2 variables from domain navigation module: domain_nav_block domain_nav_theme I am sure that this vars exists in variables table, but in strongarm tab there are missing...
0
votes
1answer
44 views

In multisite environment can you have a default site?

I am wondering if multisite Drupal allows you to have a default site too. Something like sites/default/settings.php and sites/mysite/settings.php along with the proper sites.php. If yes then what ...
0
votes
1answer
25 views

why doesn't system_menu() return the option I am expecting [closed]

If you go to this website: https://api.drupal.org/api/drupal/modules%21system%21system.module/function/system_menu/7 You will see what system_menu is supposed to output. My Drupal 7 has a jquery ...
0
votes
0answers
392 views

Database error after moving host and renaming the DB

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '<olddb>.semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] =&...
0
votes
1answer
117 views

Reference to another database as a prefix

I have a problem referencing another database as a prefix in my settings.php file.I have a master-site[mysite.local] and a slave [sub.local].Both of them are having separate database.I need to check ...
0
votes
1answer
115 views

Setting up Multiple Databases on a current site

I'm having issues with my current shared hosting provider due to my core database exploding upwards of 1GB due to cache_form. I've been looking at trying to offload the cache and revisions databases ...
0
votes
1answer
119 views

getting error from path breadcrumbs

I have some breadcrumbs created with Path Breadcrumbs, and they used to work on an old site. I transfered them over (using the Configuration Manager module) and now they don't show and instead print ...
0
votes
0answers
2k views

Unable to create output file error

I have inherited a Drupal site and I'm trying to debug some issues. I am fairly new to Drupal. I have copied the site to a different server to use as a test environment. The site seems to be working ...
0
votes
2answers
225 views

$base_url set to an external domain causes problems when logging in

I am developing a conference site with Drupal 7. The site is hosted at domain1.com. The conference is covered by another organization, and they require the conference page to be accessible from their ...
0
votes
1answer
146 views

project/configuration sync from shell (not from ./admin)

With project/configuration (core 7.22 and configuration 7.x-2.0-alpha2), we can sync a new database to the exported .inc files via the admin gui, but need to be able to do it from drush. ...
0
votes
0answers
17 views

Variable and domain_variable have stuffed up my menus

Variable and domain_variable modules fixed the front page issue, so I am now able to have two unique front pages. However, it has broken the main menus. I've had the original Main Menu displaying on ...
0
votes
1answer
138 views

2 Drupal Multisites, Separate Databases, Changing 1 Also Changes the Other

I have a very weird issue. Been doing Multisites in Drupal 7 for a while now without any hitches... until last week. I have 2 multisites both with separate databases, however when I change content on ...
0
votes
0answers
423 views

Fatal Error: Undefined function variable_get();

I have this, $metrics = variable_get('rbi_metrics_list_settings',array());, I have used this in 3-4 pages. And when I put in another file, when I wanted to see what's inside of $metrics , it said ...
0
votes
0answers
2k views

How do I free a variable set using variable_set()?

I have used variable_get(), and variable_set() in my form search, but when I visit another page, and come to the module again, it shows the previous results. How can I free the variable at the time of ...
0
votes
2answers
162 views

Setting php E_NOTICE within my .module file

I want to set E_NOTICE only within the .module files which I create. How can I do it? I want to catch mis-spelled variable names which are difficult to catch.
0
votes
2answers
45 views

Configuration form settings

I would like to create a settings page for a user which allows them to save the options of a list which is to be used in a custom form. The list is called marketing source and it is added to a form ...
0
votes
1answer
1k views

How to override configuration variables in settings.php

I need to override configuration variables declared in the settings.php. How this can be possible? Any help me on? Note: I am trying to override a custom configuration variable, not any default one.
-1
votes
2answers
3k views

Visiting admin pages return 404 (page not found error) after transfer website

I have transferred my website from another hosting . Front showing fine but if we click on link it will page not found error ..admin also not showing so how i control my website..i checked .Htacces as ...
-1
votes
1answer
157 views

what does “vcs” mean when i export a configuration [closed]

I would like to know what vcs stands for . when i do a drush config:export, i have to choose "vcs" but I'm not sure what that means? I am on an acquia server , does that have something to do with ...
-1
votes
1answer
587 views

Fast 404 showing page not found

I have enabled fast_404 and added the following line in settings.php /** * Fast 404 settings: */ // This path may need to be changed if the fast 404 module is in a different location. include_once('./...
-1
votes
1answer
40 views

Organizing config for use with a module

I've recently learned about adding a config/optional directory to a module to provide config items that will be imported upon enabling the module if there are no conflicts. Is there an easier way to ...
-1
votes
2answers
94 views

How to Restrict some special character in password field

I'm very new in Drupal, I would like to restrict some special characters from user password field Is there any way to edit configuration of core modules i'm trying to create preg_match modules . i ...
-1
votes
2answers
85 views

Create a setting.*.php file for every stage of the website

I understand that my question could be opition-based and that it depends on the comfort of every drupal developer so please do not flag it as so ! For every Drupal 8 website i start, i use the below ...
-1
votes
1answer
96 views

Best Practices for Acquia: Reconciling Production Database back to Dev before update; what is the workflow?

In about a week, I have to update several production sites hosted in AcquiaCloud environments to 8.5.3. All of these sites receive frequent real-time DB writes from user-submitted content. I can ...
-1
votes
1answer
57 views

How to prevent users from updating “featurized” settings via the GUI?

We have some configuration pages where it is useful for privileged users to be able to see settings that have been exported as part of a feature, but there is no indication on the admin page that ...
-1
votes
1answer
88 views

Changing the settings on the fly without changing the settings.php

At the moment I'm implementing a module for managing multi-site sites It would be desirable to implement switching a choice of a site in backend and accordingly change settings database connection on ...
-1
votes
1answer
50 views

Custom action defined by config entity

I am currently creating a module that allows generating PDFs based on arbitrary entities (or at least nodes). Multiple templates can be defined as config entities. This part already works. I have the ...