Questions tagged [configuration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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-...
1
vote
0answers
51 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 ...
0
votes
0answers
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....
-1
votes
1answer
37 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
0
votes
1answer
39 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 ...
-2
votes
1answer
60 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 ...
1
vote
1answer
50 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 ...
1
vote
0answers
71 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 ...
0
votes
0answers
42 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') -&...
0
votes
1answer
67 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 ...
1
vote
1answer
104 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]: > > [...
2
votes
0answers
44 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/...
2
votes
0answers
47 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....
0
votes
1answer
25 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 ...
3
votes
1answer
64 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 ...
1
vote
0answers
59 views

Why is my split config not loaded with drush config:import?

I have a setup with different environments called prod and dev. I need to distinguish API Keys and Urls between these two environments and thought that split-config would be the ideal solution for ...
0
votes
1answer
35 views

Proper usage of config_split

I am trying to use config_split so we can ignore/disable some modules/configurations on our dev environments, and we don't want them to carry over to our production environments. I think I am setting ...
-1
votes
1answer
42 views

Configuration synchronization page throwing 504 timeout error

This issue is happening on every level above my vagrant local box. It's a brand new website and a few days back I had to copy my database from local to staging environment. Once done, I ran drush -cim ...
0
votes
0answers
246 views

How do I fix the "You're attempting to access the site via IP address or invalid hostname." error?

I'm running Drupal 7 on Pantheon and have started getting the following error message whenever I try to save content. You're attempting to access a Pantheon site via IP address or invalid hostname. ...
3
votes
1answer
99 views

Remove Configuration Installer (v1.8)

I'm upgrading a site from Drupal 8 to Drupal 9. One of the projects that is deprecated and incompatible with Drupal 9 is Configuration Installer The "normal" workflow (e.g., drush pmu <...
4
votes
1answer
96 views

drush config-status on translation / language config files?

Similar with but not the same as How to use drush config:set for translations?, is there a way to scan for a site's language config changes via drush or so? I have a lot of sites on the same server (...
1
vote
1answer
157 views

Why does installing from an existing configuration fail?

I am struggling to install a drupal site from an existing configuration. Here the two approaches I tried: OPTION 1: Import the config by changing the UID: drush cex on existing site drush site:...
0
votes
1answer
58 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 ...
2
votes
1answer
153 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
63 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
33 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
47 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 ...
0
votes
1answer
103 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
15 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 ...
0
votes
0answers
19 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
43 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
79 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
31 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
35 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 ...
0
votes
0answers
28 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
36 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
40 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
101 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
34 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
57 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
111 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
84 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
16 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
84 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
296 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
26 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
36 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
93 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 ...

1
2 3 4 5
16