Questions tagged [configuration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 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
24 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
11 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 ...
1
vote
0answers
26 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
30 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
23 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
19 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
24 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
47 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
24 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
16 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
27 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
28 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
48 views

How to update the layout builder's 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
70 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
14 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
27 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
61 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
26 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
11 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
30 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
89 views

How to store Layout Builder custom block content as config

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
63 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
75 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
27 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
37 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
42 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 ...
2
votes
1answer
29 views

Set disabled cache but it's not working

I'm a newbie in Drupal site development and I'm using Drupal 9.x. In directory web/sites/default I have 2 files: settings.php if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { ...
3
votes
2answers
251 views

How can I export only one paragraph type, the fields, the form settings and the display settings?

Some days ago I've exported and imported a full configuration with drush cex and drush cim. What are the steps to export 1 paragraph type including the fields, form settings, display settings etc ... ...
1
vote
1answer
41 views

How to override the system timezone in settings.php?

I'm trying to override the site's timezone in settings.local.php. Looking at the config file, this should be simple: $ more system.date.yml country: default: '' first_day: 0 timezone: default: UTC ...
0
votes
1answer
22 views

Favicon settings missing on subtheme config

Using Drupal 8 W3CSS Theme 8.x-1.17, I created a subtheme. The subtheme works fine, but on the settings page, the entire #edit-favicon div is hidden; style="display: none" has been added. I ...
1
vote
1answer
72 views

How to have config from a ConfigFormBase immediately take effect without needing to export it?

I created a simple test module that adds a text banner to all nodes if a checkbox is checked in the form of the modules configuration. Currently it is working halfway as I want. When the checkbox is ...
0
votes
0answers
41 views

Rollbacking from Yaml based configuration to database based configuration

We recently changed the way we deploy our Drupal site on our testing environment to a docker image. The issue is that we were using a file based configuration. The current applied configuration is not ...
0
votes
0answers
15 views

Domain Access not found page error (with Drupal 8.9.1 and Acquia Dev Desktop)

I created a fresh Drupal site and I downloaded and installed the Domain Access module. I created a first subdomain which has the same hostname as the default Drupal host. In my case: multisitedomain....
1
vote
1answer
95 views

How to check config setting in custom service class with dependency injection?

In a custom Service class, I need to check a config setting. I'm able to do this using \Drupal::config(static::SETTINGS) as documented here: https://www.drupal.org/docs/drupal-apis/configuration-api/...
0
votes
0answers
25 views

Synchronizing Translations with the Configuration Manager module

We are using the Configuration Manager to export and import configurations, and I was expecting our translations to be exported with this but noticed that they didn't. When I ran my export, I noticed ...
0
votes
1answer
41 views

Configure/Override EU Cookie Compliance

I've installed eu_cookie_complience module (eu_cookie_compliance 8.x-1.9). The documentation is nearly non-existent, but as much as this module is used, I'm hoping to find someone that has solved ...
3
votes
1answer
153 views

Config import for certain items appears to fail. How do I fix this?

After synchronizing configuration from dev to staging, I would expect all changes to be imported and for a message to display, advising "There are no configuration changes to import" Most ...
1
vote
1answer
132 views

How can I ensure migration YAML files execute in specified dependency order?

EDIT: To Answer my own question... I ended up making multiple migration files like this: Node Type A Part 1 (most fields migrated except the ones that need to reference Node Type B) Node Type B Node ...
0
votes
1answer
53 views

Why will drupal not recognize my configuration?

I am trying to import configuration from one site to another. I have copied the directory full of config files from an older site to my new site. When I try to run Drush cim, the files all show up ...
0
votes
1answer
42 views

Access denied when trying to import single configuration item

I am using Drupal 8.9.2 and trying to import a view using the Configuration Management UI in the admin. I did this with no issue importing the view from my local dev environment to our dev server, but ...
0
votes
1answer
27 views

User Role creation in module overridden by configuration import

I'm creating a user Role in a .yml file like user.role.myrole.yml. This works fine when this module is installed manually and the Role is created. When I enable this module via configuration import ...
0
votes
1answer
21 views

Changing the Title of a Blog

How can I change the title of my blog? It's found on the main page of the blog above the previews of the posts. I am attaching a screen shot. I want to change "The Scrapbooked Bible Study" (...
0
votes
2answers
70 views

Is there a cli equivalent of the web ui with underspecification?

background I run drush cget markdown.settings and see: dependencies: module: - markdown parser: id: michelf/php-markdown-extra render_strategy: type: none settings: ...
0
votes
0answers
173 views

Error: Call to a member function setRecipients() on null in standard_form_install_configure_submit()

After Install site, when I need to Configure Site, I got this error: Error The website encountered an unexpected error. Please try again later. Error: Call to a member function setRecipients() on null ...
-1
votes
1answer
42 views

How to change the name of site only for the developers?

I am new on Drupal 8 , in order to change the site name and the slogan , I want to change the site name just for the developers used my website is there any way to do that? I have implemented a code ...
0
votes
1answer
77 views

Custom module with config exposed in json api

I have a module with two pieces of config set using an admin form and Drupal the drupal config service. Like this /** * {@inheritdoc} */ public function submitForm(array &$form, ...

1
2 3 4 5
15