Questions tagged [configuration]

The tag has no usage guidance.

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

How to update a module in production?

I am using git to deploy my composer.lock to production. Contrib is not part of my git repo. Therefore, in production I then run composer install to add contrib to production. What happens when I ...
3
votes
1answer
64 views

How do I know which services.yml is active?

If I have multiple services.yml in the sites/default/ directory, how can I determine which one Drupal is actually loading? Is there a drush command to check this? Or is there some other way to verify ...
0
votes
2answers
31 views

How to deal with config changes in prod and by multiple developers?

I have two scenarios in configuration management that I am unsure how to deal with: Geeky user makes config changes in production. What is the best practice to import these changes in dev without ...
0
votes
0answers
30 views

With sites/default/files not part of the git repo, which content will be used in dev?

I am using a composer managed Drupal install and want to use git to move it between development and production environments. From what I understand, the only directory that is not supposed to be in ...
1
vote
1answer
31 views

Configuration overrides have unpredictable results

I'm setting up configuration splits with Drupal 9 and encountering unexpected results. None of my splits are marked as Active in the active configuration or the exported configuration YAML. I want to ...
0
votes
0answers
23 views

Permissions suddenly changed

I've inherited a drupal 7.6 site with a broken css (styles were not loading). Here's what I've done so far: -set sites/default/files, tmp and cache folder to 777. -flushed all caches When this didn't ...
1
vote
1answer
42 views

Options for storing API keys in config files?

I'm working on a project that's using Drupal Commerce and wondering about the possible options to secure the API keys exported as configuration YAML files. We have the config directory outside of the ...
0
votes
0answers
14 views

How to change form-text field maxlength / Translatation field?

I would like to increase maxlength of translation field. In database, field is VARCHAR (255) For translation version : maxlength = 128 I dont'know how to change maxlength for translation version. Is ...
1
vote
0answers
34 views

How do I configure the Google TMGMT Translator module with the correct api key? [closed]

I want to insert an API key for the Drupal TMGMT Translator Google module. I’m using a Google Cloud Platform Service Account to generate the key. Instead of being presented with a key code to copy and ...
0
votes
0answers
13 views

Account Settings: “Access Denied” on emails translation

I'm having issues for accessing the "Email Notifications" from user configuration in Brazilian Portuguese. All Developer Portal "User Email Notifications" are being sended in this ...
0
votes
0answers
33 views

How can I sync just roles/permission config across multi-site instances?

On a Drupal 8 multi site, we need to have unified ROLES/permission config in all sites. Then we'll assign these roles to users via interface or Drush. How could I export / import? Or even better sync ...
0
votes
1answer
76 views

How can I merge a content type's fields and settings from dev to staging?

I have an existing content type on staging. On dev we've added a ton of new fields and display and form setting changes, etc. It's not practical to go through the config files and find all of the many ...
0
votes
0answers
27 views

New language defined and set to default, original language on config translation still remains English

I have installed languages and set one of them as default, but still numerous things, for example Translations for User account menu block (admin/structure/block/manage/bartik_account_menu/translate) ...
0
votes
2answers
25 views

Possibility to reinstal module without deleting old configuration for module permissions by term

I tried to upgrade my site from Drupal 8 to Drupal 9. In this process I upgrade the module Permissions by Term to Version 3.0. The upgrade failed due to problems with extension of CiviCRM that were ...
1
vote
0answers
23 views

How do I delete config entities from hook_install, when the module containing that hook is enabled via config?

I'm trying to delete some config entities in an install hook. These entities do not exist in the config sync folder, they're excluded using the config_exclude_modules approach in settings.php. So ...
0
votes
1answer
27 views

Dynamic value in Twig or preprocess based on config and getHost()

I need to dynamically change a value in Twig templates by selecting a configuration value (defined in a custom module) based on the current environment. I did the following in a Form class, which ...
0
votes
1answer
35 views

Why does Drupal insist on deleting my configuration?

I've got a custom module with a configuration file config/schema/entity.schema.yml. This configuration file is imported via an update hook : $active_storage = \Drupal::service('config.storage'); ...
0
votes
1answer
47 views

Show a summary calculated from webform submitted values on the submission preview page only (not on form) and re-use in e-mail handler

We need to display a computed summary of submitted information on both the submission preview page and in e-mails that are sent out. I'd expect this is a common usecase and wanted to check if i'm ...
0
votes
1answer
31 views

What is the purpose of a configuration schema file?

I created a /config/schema/drupolo.yml file with the following content. drupolo.social_network.setting: type: config_object label: 'Sacd Menu module settings.' mapping: facebook_page: ...
0
votes
1answer
21 views

Import single view configuration fail - layout_builder__layout will not exists after import

I have Drupal 8.9.13 and I want to export/import single views configuration to other Drupal 8.9.13. I can select single view to export, but when I import it I get the next error: The configuration ...
0
votes
1answer
49 views

drush config:import “There are no changes to import.” for “content” view

On a Drupal 8.7.14 system with Drush 9.7.2, I modified the "content" view and now want to roll it back to the previous version that was exported with drush cex. Unfortunately, drupal does ...
0
votes
1answer
37 views

Override specific configuration keys in settings.local.php

I'm trying to learn the Drupal 8 configuration override system based on the documentation here: https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-override-system As a simple test,...
0
votes
0answers
14 views

Adding a button to a table form

I am trying to create a configuration page for my module that lists a set of php scripts that admins can use to trigger off different scripts. To do this, the configuration page is a form that has a ...
2
votes
0answers
42 views

Configuration export via drush randomly change the value of labels\other content in multilanguage sites

I've a multilanguage site, with Italian set as default and English as secondary language. When exporting the configuration via drush - drush cex command - sometimes the labels of other kind of content ...
0
votes
1answer
87 views

Error when importing the configuration

We have several sites running with Drupal. On my local machine I run the test versions of each site in the Docker container to add new features or test new ones. When switching between pages I do the ...
0
votes
0answers
25 views

Demo Framework versioning issue

Is the Demo Framework project not compatible with Composer 2.0? Are there any workarounds? The output of composer create-project acquia/df-project DemoFramework -s dev is the following one. Creating ...
1
vote
0answers
22 views

Installation Profile with Restrict by IP module

I have an installation profile I use for automating the setup of Drupal 8 websites. Almost everything works perfectly, including configuration items such as date formats and file system, and default ...
1
vote
0answers
31 views

How to make the language of the subscriptions be the currently language in Simplenews

I'm implementing simplenews on a Drupal 8 Website, and I currently came across a problem with the anonymous user subscriptions to the newsletters. According to the documentation of simplenews, when ...
0
votes
1answer
57 views

URL Redirects and Configuration Management

I have installed Drupal's Redirect module to redirect from old URL's to new ones. I have added the required redirects in my local environment, ran drush cex but can not see the redirects in the export ...
0
votes
0answers
32 views

Migrate a multiple date-range field from CSV using Migrate Source CSV-module

I need to migrate data from a csv file to Drupal 9 (using $ as delimiter for fields). The field csv_date_options can contain multiple date ranges with | as delimiter. The CSV-file looks like this: id$...
0
votes
0answers
47 views

updating a paragraph field storage configuration that cause db paragraph revision errors

On a custom module , i had : config/install/field.storage.paragraph.field_carrousel_model.yml , an entity ref field to a taxonomy, taxonomy containing a "field_carrousel_model_value" : uuid:...
0
votes
0answers
28 views

How to block uninstalling a module if some content refer to its configuration?

I have made a module that create a paragraph type, by adding yaml files in the config/install folder Once installed, i have created some node contents containing nested paragraphs using the one ...
3
votes
1answer
31 views

How to use .schema.yml definition for two entities avoiding duplicated code

What is the yml syntax in drupal .schema.yml files for specifying the same config for two entities? Something like this is what I need: node.type.*.third_party.my_module: media.type.*.third_party....
0
votes
1answer
100 views

How do I update the section component configuration?

How to update a component in the node's layout builder? I have used the following code. $node = \Drupal\node\Entity\Node::load($nid); $layout = $node->get('layout_builder__layout'); $sections = $...
1
vote
0answers
72 views

Remove config when uninstalling custom module [duplicate]

I have made a custom module with a config/install folder containing many yml files from a drush configuration export. When activating the module , it does install the configuration. How can i delete ...
1
vote
1answer
16 views

testing scheduled file deletions

Long story short, is there a correct way to override DRUPAL_MAXIMUM_TEMP_FILE_AGE? I'm working on testing a fix to a module I wrote a while back that handles some uploaded files. I neglected to call ...
-2
votes
1answer
28 views

Config import same config different position in yml, keeps importing

Best way to describe this is to show image, So this is one example and it keeps happening. I drush cim and it imports and then when I do drush cim again, it is the same and I can do this 1000 times. ...
0
votes
1answer
73 views

How to display configuration updates when deleting fields programatically

I am working on a module that adds it's needed fields automatically when you enable it's function in the UI for specific entity types. It also deletes it's needed fields when you disable it's ...
1
vote
1answer
29 views

Image File Upload via REST case Error 500 response due destination directory not set

I'm struggling to upload images to the Drupal 8 site via REST. Finally, I managed to deliver the file to the server, but then the error 500 rased due destination folder not set. I can't figure where ...
0
votes
0answers
19 views

DockSal fails on error mounting volumes

I tried following the instructions from DockSal Boilerplate Tutorial and from Acquia BLT DockSal but still fails Creating boilerplate-drupal8-blt_db_1 ... error Creating boilerplate-drupal8-blt_cli_1 ...
0
votes
0answers
31 views

Forcing a rerun of a module's install script

I use configuration synchronization to synchronize my different environments, and I enabled Ultimate Cron on my local environment and then ran my sync scripts to synchronize my Staging environment. My ...
1
vote
1answer
171 views

How do I store custom block content as configuration?

I'm creating custom pages using Pages + Layout Builder. These layouts need to be stored in GIT as config files (drush cex). Currently, the layouts themselves are stored fine. The main problem is that ...
0
votes
0answers
14 views

“Content”- Section in Backend cannot be displayed after installing translation module (German)

after clicking on the "Content"-button (=Inhalt) there is an error displayed. I am not able to enter the "conten" Section of my Drupal 9 backend. This happened right after I ...
0
votes
1answer
159 views

Import a single configuration, producing errors - The configuration cannot be imported because it failed validation for the following reasons

Drupal 8.9.9 The configuration import for a single item import is not working. (I'm trying this on the same system to rule out any configuration mismatches between environments) Steps Create a simple ...
2
votes
1answer
99 views

How can I add a new field from config inside hook_update_N? [duplicate]

I have to add taxonomy by php code. Taxonomy has to got 2 fields. I added new function to test_taxonomy.install, and it seems to work: function taxonomy_update_8805() { $config_path = 'modules/...
0
votes
0answers
37 views

Amend footer information

My company site has moved from D7 to D8 this morning. It all looks great (and so much easier to use!), but I can't see how to amend a footer? One of our office buildings changed its name during the ...
0
votes
0answers
31 views

How to save and load configuration data of type sequence

I have a theme "basic_theme". I want to add some settings to this theme, in particular config menu_search_fields is a sequence of data, each entry has 3 informations (field, weight and uuid)....
1
vote
0answers
28 views

Having multiple active config splits causes main configuration directory to be ignored

I'm trying to have a config setup for a multisite, so that I have following config directories: default - common config dev - split for dev environment local - split for local environment <site>...
0
votes
0answers
38 views

What is the best way to export a content type and its fields? [duplicate]

How can we export a content type, including its fields, and import it into staging or production?
0
votes
0answers
54 views

Issue using Config Split on content types

I'm working on setting up Config Split to share content type config between a number of multisites. Currently each site has its own config for various content types but, since they should be identical ...

1
2 3 4 5
15