Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

Filter by
Sorted by
Tagged with
0
votes
1answer
649 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
25 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
408 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
310 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
837 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
41 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
29 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
585 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
389 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
116 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
112 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
421 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
43 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
113 views

what does “vcs” mean when i export a configuration

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
540 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
36 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
49 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
84 views

Config entity schema to save checkboxes element

I have created a Config Entity, one of the values it stores is the results from a set of checkboxes. This is the element in the form $form['choices'] = [ '#type' => 'checkboxes', '#title' =>...
-1
votes
2answers
74 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
92 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
54 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
82 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
49 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 ...
-1
votes
2answers
76 views

Include a link of node with text in block body

How can I include a link to a particular page in the block body? I don't want to create a custom block.
-1
votes
1answer
1k views

Connecting to external oracle database using db_set_active in settings.php not working

In DRUPAL7 i am trying to connect to oracle external db using db_set_active('ora_db'). here is my code snippet in settings.php. i am not sure where i am going wrong. when i try oci_connect('uname','...
-2
votes
1answer
76 views

How does `drush cim` find and handle the config-directory? [closed]

I would like to know where the config directory is, and how drush cim command exactly handles it? Edit: The old title (i.e. "Where is Drush's command-specific documentation?") was because I thought ...
-2
votes
1answer
405 views

In which file is the username/password located? [duplicate]

I did a standard installation of drupal 8 varbase and added this into Aqucia Dev Desktop 2. Where can I find the username/password which is used for the database access from Drupal for the database? ...
-2
votes
2answers
302 views

Drupal 7 variable_get()

How to get variable from help of variable_get function, function has saved value on any db table or some where else?
-2
votes
1answer
25 views

Force one config to be imported before another?

Hitting an issue when installing a site from config and I think the order of operations may be the issue. Is there some way to ensure that one config is imported before another one? Edit: sorry, ...
-2
votes
1answer
119 views

Should configuration synchronization be used only between cloned sites?

Can it be used to get configuration from one site to another site which is not a clone. eg: SiteX is installed using composer create-project drupal-composer/drupal-project:8.x-dev SiteX and ...
-2
votes
2answers
52 views

D7 site does not show well under https

I installed https on my server with certbot and let's encrypt.However site displays garbled under https, which I need for several reason, http requests are not redirected to https for that reason, but ...
-4
votes
2answers
59 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?