2022 Developer Survey is open! Take survey.

Questions tagged [configuration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
9 views

There were errors validating the config synchronization

Locally i deleted custom block "CTA" from custom blocks and block types. Then i exported configs and created merge request. After merge is accepted, the pipeline runs commands on the dev ...
user avatar
1 vote
1 answer
27 views

How to ignore block region placements during config sync?

When we perform config export and import our block placements are getting hosed. Is there a way to no export block placements/regions?
user avatar
0 votes
2 answers
41 views

How to hide the fields in manage display when layout module is installed and display when module is uninstalled programmatically?

In the below config I want to remove the body field from content and add it in hidden as body: true when I uninstall the layout module. Basically when I install the layout module the fields in manage ...
user avatar
1 vote
1 answer
31 views

"Items in your active configuration have changes"

I'm trying to setup configuration management for our team, so i test the workflow on my local machine: Starting from a fresh copy of our website + database backup, with an empty /config folder ($...
user avatar
0 votes
1 answer
42 views

How can I programmatically add or remove a new request_path to block visibility?

It seems like I could utilize the getVisibilityConditions method on the block, which returns a ConditionPluginCollection object with a setInstanceConfiguration method, which is apparently easy enough ...
user avatar
  • 349
1 vote
1 answer
17 views

Adding sequence item to configuration

I have a configuration item in my custom module, part of which is a sequence, basically I'm attempting to create something akin to an array of items my_module.schema.yml my_module.settings: type: ...
user avatar
0 votes
1 answer
36 views

How to Install new module, add code to existing module that requires the new module, and import config for the new module in the same build

I seem to be running into a circular dependency issue in the scenario where my new build has a new module (B), new code in an existing module (A) that depends on the new module (B) and new config ...
user avatar
  • 882
0 votes
1 answer
37 views

How to prevent changing specific module installed status during config syncs?

I know there are methods for preventing specific configurations from being exported but how do you prevent specific module's installed/un-installed status from being exported? For example, I'd like ...
user avatar
1 vote
0 answers
47 views

Field Label Translation not working

I have a Drupal 9 site. The default language is English, second language is German. I keep having problems with translations in the backend. Lots of field labels and other text shows up in English, ...
user avatar
0 votes
1 answer
85 views

Migrate PHP version - The "" plugin does not exist

I'm using Drupal 9.3.11 on PHP 7.3. Site is running perfectly. I need upgrade to PHP 8, but I am getting this error. Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin ...
user avatar
  • 141
0 votes
0 answers
22 views

Webform Confirmation settings on form submission not working

I am using Acquia site studio components for web pages. In all the pages I have a pop-up with a webform submit button to enter to the site. In Webform confirmation settings I have selected the option -...
user avatar
2 votes
0 answers
52 views

How do I return an empty build array and log an error? [closed]

I am using the following code for a block. class WeatherBlock extends BlockBase implements ContainerFactoryPluginInterface { // Dependency injection code public function getCity() { $ip =...
user avatar
  • 33
0 votes
1 answer
50 views

"[message] => DB Error: no such table" error after installing civicrm

I installed CiviCRM 5.47.3 plugin using composer in the centos 8 server. my drupal version is 9.3.5 After installing CiviCRM on the server CiviCRM plugin is enabled automatically in admin extension ...
user avatar
0 votes
1 answer
34 views

How to create a configuration export such that it installs two modules, one of which has a dependency on the other?

I've written a custom module that uses jwt.transcoder service from the jwt module. In turn, it provides another service: $ cat mymodule.services.yml services: mymodule.jwt: class: Drupal\...
user avatar
  • 3,839
0 votes
0 answers
30 views

configuring backup migrate file name in settings file

Drupal 9.3.7, backup_migrate 5.0.1 --- On my dev machine, I've set the name for backup_migrate backup files in the config settings. When I export the database to my production machine, I'd like to use ...
user avatar
  • 387
3 votes
0 answers
17 views

How are the Ignored and Undefined config schema classes supposed to be used?

In Drupal\Core\Config\Schema there are two classes Ignored and Undefined, but they're empty. How are they meant to be used?
user avatar
  • 797
3 votes
1 answer
76 views

Properly storing an array in a config object

In a config object, I want to store an array of values. The keys matter. The stored value is coming from a checkboxes element, so the array would look something like: ['article' => 'article', 'page'...
user avatar
  • 26.3k
1 vote
1 answer
56 views

Add simple config object as a cacheable dependency?

I am building a custom breadcrumb that has some admin settings from a module in Drupal 9. When that settings form is saved, I want any breadcrumb cache that was built with this builder to be ...
user avatar
  • 26.3k
0 votes
0 answers
39 views

How to configure trusted hosting pattern for Docker containers

From Drupal 8, if my running Docker project for Drupal is loading in my browser at... http://docker.drupalphp:17223/ what should I put in my sites/default/settings.php file to approve the ...
user avatar
  • 101
-2 votes
2 answers
63 views

Is there any `drush` command to delete any (previously exported) setting files? [closed]

Can we use drush to simply delete any (previously exported) config-directory files?
user avatar
-3 votes
1 answer
60 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, to be more specific: Where are the setting files imported from, can you provide me with a path ...
user avatar
0 votes
0 answers
41 views

Fixing different configs

After I have run drush cim successfully, I can run drush cst and I see a great number of entries where the configs are "different". What is the best method to fix this?
user avatar
  • 279
2 votes
0 answers
27 views

How to automize the config export to a custom distribution

We use a custom Drupal distribution on our websites. There are also our custom modules in the distribution. The modules contain configurations. When I change some configurations in Drupal ...
user avatar
0 votes
0 answers
46 views

How can improve performance?

I have a very complicated form with 7-8 tabs and 150 elements on forms. The form initially loads very slowly and it will take 30 - 40 seconds to load and sometimes gateway times out error. When I used ...
user avatar
  • 109
1 vote
1 answer
41 views

Why isn't config for Views plugin module translatable?

I am trying to write up a patch for this module: https://www.drupal.org/project/readmore. There is a patch for it: https://www.drupal.org/project/readmore/issues/3055200 which adds configurable text ...
user avatar
  • 887
1 vote
0 answers
29 views

How to deal with config sync changing the order of lines in files causing spurious changes in source control?

I am really enjoying Drupal 8/9's built-in config sync mechanism which allows you to export config to a directory. This makes it possible to store config in a git repo and easily deploy from dev to ...
user avatar
  • 913
1 vote
1 answer
134 views

drush configuration import export order of the yml

I recently upgraded some minor versions of modules and upgraded Drupal core-recommended to 9.3.3 from 9.2.9. I followed the usual drush updatedb, drush cim -y drush cr and everything looks fine. In my ...
user avatar
  • 31
1 vote
1 answer
32 views

How do I control config names?

When creating a config entity, we get an example_entity.schema.yml file: example_module.example_entity.*: type: config_entity label: 'Example config' mapping: id: type: string ...
user avatar
0 votes
0 answers
14 views

Creating tabbed config settings

I'm trying to create a tabbed configuration page for my custom module, although I can't see a lot of information on exactly what is supposed to be done. I've seen this page but it's not exactly in ...
user avatar
0 votes
1 answer
59 views

Custom Module Rename

We have three custom pieces of code for our Drupal website: module, theme and a non-drupal php library. The names of these components have become awkward over time. I would like to rename our custom ...
user avatar
  • 513
1 vote
1 answer
60 views

ConfigNameException: Missing namespace in Config object name xxx

Drupal\Core\Config\ConfigNameException: Missing namespace in Config object name media_entity_file_replace. in Drupal\Core\Config\ConfigBase::validateName() (line 97 of core/lib/Drupal/Core/Config/...
user avatar
  • 2,765
0 votes
0 answers
20 views

What is langcode in config export used for?

When exporting configuration into .yml files with drush csex, some files have a langcode property set. After some weeks or months of working with the system, they sometimes disappear in some files ...
user avatar
  • 137
1 vote
1 answer
42 views

Can you install exported site config as part of a kernel test?

I am using the Configuration Sync module to export config specific to my site out into a config directory that lives outside my main Drupal directory. When writing kernel tests I know that you can use ...
user avatar
0 votes
0 answers
18 views

How can I load a translated version of my custom config? [duplicate]

I created a custom configuration form that can be translated into all available languages. My question is how we can get the translated version of the configuration for a specific language on the ...
user avatar
0 votes
0 answers
186 views

Drush Config import not working after Site-install Standard. There were errors validating the config synchronization

I am Upgrading Drupal 8.9 to Drupal 9.2 and it's installed but when am I trying run -y config-import then getting error [error] Drupal\Core\Config\ConfigImporterException: There were errors ...
user avatar
0 votes
0 answers
16 views

Drupal Console - config:import:single - Class 'Drupal\config\StorageReplaceDataWrapper' not found

When I am trying to import a single configuration file within my multisite environment, I am facing the following error: root@d655a4e6dc36:/opt/drupal/docroot# drupal --uri="3030-bronze-minnow-...
user avatar
  • 603
1 vote
0 answers
154 views

How does the config sync directory work exactly?

I just had a question quick about how Drupal's config sync works. I work on a large Drupal site where I am having some coworkers joining in on working on the project. It's a version controlled site ...
user avatar
  • 11
0 votes
0 answers
23 views

Configuration inspector is reporting errors erroneously

I have a Drupal 8.9.19 I'/m trying to migrate to Drupal 9. I just did a status report, and have some configuration errors I'm trying to fix first. For example, this is from a view: display.page_2....
user avatar
  • 387
-1 votes
1 answer
40 views

Not allowing the user to access the website within the given time period

My client want to offline the site for 12:00 AM to 06:00 AM and show this message to users. How can I achieve this in drupal8
user avatar
0 votes
1 answer
45 views

Multiple sites/default folders

I have a Drupal 8 website on Docker containers. Drupal sites folders contains, besides the default folder, two folders, the settings.php file, and configuration. The goal is to have different ...
user avatar
-2 votes
1 answer
74 views

What are the causes of the malfunction (The provided host name is not valid for this server) and how to fix it? [duplicate]

My site stopped suddenly, with an error message The provided host name is not valid for this server. And even though I removed $settings['trusted_host_patterns'] Completely from the settings file ...
user avatar
1 vote
1 answer
64 views

Don't see Mail System under Configuration

I'm currently going through the prerequisites of Acquias configuring platform email https://docs.acquia.com/cloud-platform/manage/platform-email/platform-email-configuration/#associate-domain but I do ...
user avatar
  • 11
1 vote
0 answers
192 views

Programmatically update field config (not storage) [closed]

SOLVED, both methods below work perfectly fine, it was just a typo. I need to programmatically update a field's config in hook_update. I need to do this on multiple projects, so I can't use the normal ...
user avatar
  • 4,811
0 votes
0 answers
70 views

Can't get field storage definition in custom entity

I have a custom entity 'myentity' with some fields, and one of them is a taxonomy field with the next definition: $fields['colors'] = BaseFieldDefinition::create('entity_reference') -&...
user avatar
  • 582
0 votes
1 answer
223 views

Is there any way to revert the changes done by "drush cim"?

I usually take backup of the entire database before importing new configurations, but this time I didn't and now I need to double check something with old version of database. Is it possible to just ...
user avatar
1 vote
1 answer
196 views

"The import is empty" errors validating config synchronization after core upgrade

After Drupal 9 upgrade, I can no longer use configuration synchronization to deploy configuration to Acquia Cloud environment: Import the listed configuration changes? (yes/no) [yes]: > > [...
user avatar
  • 1,929
2 votes
0 answers
87 views

How to use a module-relative path to translations in .info.yml

I'm new to using Drupal and am building a custom module to learn how it all works. I'm building my module in modules/custom/my_module. I have a Dutch locale file in modules/custom/my_module/...
user avatar
2 votes
0 answers
48 views

How can I capture a field’s configs and storage so I can delete it and then re-create it?

I’m trying to implement this in a hook_update_N() but I’m not sure it’s proper (see excerpt below). Note I’m changing max_length in the process. What I'm trying to do: update my_custom_entity....
user avatar
  • 412
0 votes
1 answer
29 views

Using radio FormElement in a drupal 8 ListBuilder

I made a custom configuration entity, and I'm trying to set up radio buttons in the listBuilder. This is done in the core module language without any problems, but when I try to do the same trick with ...
user avatar
3 votes
1 answer
92 views

Exclude settings from a contrib module on export

I've two environment, dev and staging. I'm using the ReCaptcha module. In the developpement environment, I have some api keys a other config which until now, are exported thanks to drush cex inside ...
user avatar
  • 43

1
2 3 4 5
16