Questions tagged [configuration]

The tag has no usage guidance.

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

Configuration sync with deleted field

I have a field field.storage.node.field_create_ic created with type 'calendar_download_type' and it is one of the contributed module (ics_field). Now, in my local environment I deleted the field and ...
1
vote
1answer
293 views

How to create a test configuration that can called in a test class?

I am attempting to write a unit test by extending UnitTestCase. Below is how my code works, but I need a way to create a test (or mock) configuration that can be used to satisfy the testing. How can ...
0
votes
1answer
230 views

Configuration variable inside a hook take always the default value in a PHPUnit test

I'm trying to create a Functional test for the dev version of the No Autocomplete module to test that if the configuration is set then an autocomplete attribute=off will be added to the password edit ...
0
votes
1answer
2k views

how to change base url in drupal 8 [closed]

I had installed a drupal website inside a folder in web root on an amazon ec2 instance. I used to access it by calling http://xx.xx.xxx.xx/folder .Now that the site is finished i created virtual hosts ...
2
votes
0answers
272 views

How can locally deleted fields also be deleted on production?

We are using D8's Configuration Management for our site. When we delete fields in our local development environment the corresponding content type and field yml files are updated to reflect the change....
1
vote
2answers
229 views

structure_sync not working

I am trying to use structure_sync within my Drupal 8.4.4 project to export the block content of custom blocks as a configuration (see also the discussion "Custom blocks cannot be properly exported and ...
1
vote
1answer
501 views

Configuration management and site specific configuration

I have different site environments for my site; dev, test and live site. On dev (local develop) my solr settings are different then on my live environment. How do I configure site-specific solr ...
-2
votes
3answers
599 views

How do I get the value of a persistent variable with `variable_get()`?

How do I get the value of a persistent variable with variable_get()? Does the function save the value on a database table or somewhere else?
2
votes
1answer
114 views

Do not import configurations if already exists

I have built a custom module and there are two configuration files in config/install directory of my module. When the module is installed the configurations are installed correctly. When I uninstall ...
2
votes
1answer
673 views

Overriding system.site.uuid with an environment variable

I have a need to have separate sites behave as if they are clones of each other; that is, they each need to have the same site UUID. Due to the environment I am operating in, I am unable to change ...
1
vote
1answer
648 views

Missing Schema on custom field only during PHPUnit Test

I have a custom field setup that I created similar to this tutorial. I exported all my fields on my node to a test module and enable it during my PHPUnit test. I run my test with the following ...
1
vote
1answer
64 views

How do I write a config file manually?

I need to find out how to manually create a configuration file, one which will be included with a custom theme as optional/required upon installation. I know I need to create a file in themes/mytheme/...
0
votes
1answer
236 views

How to import a display mode configuration from a custom module

I have a custom module with the file config/install/core.entity_view_display.node.event.featured.yml which contains config for a display mode called 'featured' for the content type 'event'. The ...
1
vote
2answers
1k views

Drupal ignoring changes to settings.php

I made a copy of one of my drupal sites and I'm attempting to set it up to use a different database but for some reason it's ignoring changes to my settings.php file. My settings.php file is in sites/...
0
votes
1answer
231 views

Fatal Error HtmlRouteProvider not found?

Fatal Error: Fatal error: Class 'Drupal\custom_avatar\CustomAvatarHtmlRouteProvider' not found in /Sites/drupal8/core/lib/Drupal/Core/Entity/EntityTypeManager.php on line 252 I am creating ...
0
votes
1answer
192 views

Features along with configuration synchronization

I am planning to use features to bundle some of my specific works. Example: I want to bundle article content types along with its views, fields and related other stuffs. Can I just use features to ...
1
vote
2answers
64 views

Export block that exists in two or more regions

Does anyone know how to export block that exists in two or more regions into yaml file? This is the scenario I'm facing. A 'sitebranding' block is placed onto header and footer regions. When I go to ...
1
vote
1answer
1k views

Config import constantly showing configs to import

Recently after doing a config import via drush (drush cim sync), the config files don't seem to import properly, as the files are listed after a supposed successful import. (and doing a cex sync shows ...
0
votes
0answers
531 views

How to test if a config entity can be deleted?

In my custom module are in hook_unistall all its config entities deleted. One of the entities causes after uninstall the following error: A non-existent config entity name returned by ...
1
vote
2answers
533 views

Unable to save content language configuration

My Drupal 8 website is multilingual and has many entity type bundles for nodes, taxonomy terms, paragraphs, media et cetera. This leads to a content language settings form (admin/config/regional/...
0
votes
1answer
97 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
35 views

Manage Display formatting settings won't work

I've got a problem with formatting decimal fields in Drupal using the Manage Display settings. I've already specified a thousands separator for this particular decimal field: And clicked Update and ...
0
votes
1answer
444 views

Error on config import - Field Collection

I am currently running into a config import error and it seems like it has something to do with field collections: Finalizing configuration synchronization. ...
0
votes
1answer
30 views

Why the menu items to edit a specific vocabulary and terms does not show up in administration tool bar?

I created a new user with specific role and permissions to CRUD 1 content type and 1 taxonomy vocabular and terms. The thing is that the administration menu item does not show up for the taxonomy ...
0
votes
1answer
166 views

Installing entity form/view display config in custom module using options_select plugin

I am trying to provide a default content type, entity form display, entity view display and a list (text) field on module installation. Installation errors out (though the module is installed) because ...
1
vote
0answers
809 views

How should I solve a module load order problem in a custom install profile?

I'm building a custom install profile for Drupal 8.4. It uses the new core Media module, and includes custom config files for the entity forms for media's image and file entities. One of those changes ...
0
votes
1answer
550 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/...
2
votes
0answers
212 views

Exported field collection field has null UUID

In D8, I have a configuration management error. I have created a field named 'field_icon_link' of type “Field Collection”. I export my config. If I try to import this config I get a UUID error. ...
-2
votes
1answer
599 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? ...
6
votes
2answers
349 views

Configuration management with different database and websites

We have a central code base (Git repo). From this code base we deployed several websites already. Till now we used features. The websites which are already in production they have a filled database ...
1
vote
0answers
271 views

Exported configuration with drush cex only visible in docker shell, not in local repo [closed]

I have a Drupal 8 local development environment running with Docker. I can use drush (use drush cr, drush cex -y etc) after I login with ssh in docker. I make some configuration changes in my Drupal ...
0
votes
0answers
16 views

Configuration Management module fails exporting

On a large multisite i have configuration management installed. But it fails to export large lists of e.g. tracked variables. When i click on the "select all" checkbox and proceed to "export to tar ...
2
votes
2answers
4k views

Connecting to a remote database in D8

I have the following params in settings.php to connect to an external database . $databases['d8243']['default'] = array ( 'database' => 'drupal8', 'username' => 'root', 'password' => '...
0
votes
1answer
12 views

Connection process

I have a D7 site online on linux server. I made a backup of it on my Win PC usine Xampp server. I cannot connect (as user 1) despite i have the correct password. How to follow to connection process ...
2
votes
2answers
52 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,...
6
votes
1answer
934 views

Difference between $this->config and \Drupal::config in ConfigFormBase

I want to override a custom module configuration in the settings.php file. So the configuration in database can be independent from the environment. $config['my_module.settings']['prop'] = 'foo'; I ...
5
votes
1answer
572 views

Module's optional field config not imported on install

I've got a module which contains a config/optional folder which has the content: paragraphs.paragraphs_type.my_paragraph_id.yml field.field.paragraph.my_paragraph_id.field_my_field.yml field.storage....
4
votes
2answers
4k views

How can I programatically change the (D8 core) workflow state of an entity with Content Moderation?

I'm using Drupal 8.4-rc2. When you enable the Workflow and Content Moderation modules, you automatically get the Editorial Workflow as a demonstration. The states are as follows: Archived Draft ...
1
vote
1answer
102 views

Drupal 7: Local site URLs all point to production site

I've been trying to figure this out for a while on this one particularly large site. Every single URL on every page and menu, even the admin menu as the wrong url. I've tried this with WAMP, MAMP, ...
4
votes
1answer
387 views

Should drush configuration export automatically update core.extension.yml?

The Drupal 8 documentation seems to be lacking in regards to the core.extension.yml file, so I'm a little confused on the right way of updating it. Should drush be populating it on config export, or ...
2
votes
1answer
330 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
654 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
0answers
157 views

What does a 'reset' refer to with Drupal?

In the docs for the State API, the term 'reset' is used, without any reference as to what a reset is: use State API to store transient information, that is okay to lose after a reset. I've spent ...
1
vote
0answers
521 views

Using config split to keep dev modules separate: how to manage enabled/disabled states?

I'm using the config split documentation to exclude dev module configuration on my site. I made a configuration split that blacklists the following modules: Devel Kint Field UI Menu UI Views UI I ...
1
vote
0answers
203 views

How to map (yml) D7 nodes with terms, images, comments and references for migrating to D8?

To better understand how a custom content migration really works apart from all the tutorials showing how to install Drupal and press the migrate button with a 3 lines test import file or endless ...
7
votes
2answers
3k views

How to enable modules through configuration?

I am trying to enable modules by adding them to core.extension.yml file without getting involved with Features, Configuration Installer or similar modules or profiles. The modules are enabled but ...
4
votes
1answer
94 views

Benefit of config entities over regular config entries?

In Drupal 8 it is possible to store configuration in "config entities". However, the same can also be achieved with non-entity config entries. E.g. one example for a config entity schema, from core....
2
votes
1answer
722 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
1k views

What is the use of sync directory?

I see in Drupal documentation about Configuration Management it is adviced to change the location of the sync directory in a production environnement. But I can't find an explanation about the actual ...
0
votes
1answer
155 views

How to force D8 “Configuration synchronization” to send HTTPS download URL

I have a Drupal 8 site hosted on an Apache Server. There are 2 virtuals hosts : one listening on port 80, which redirects everything to HTTPS one listening on port 443 which serves the htdocs ...

1
3 4
5
6 7
15