Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
35 votes

Unable to install ... already exist in active configuration

With Drush, you can run drush config-delete module_name.settings to delete the configuration causing the error.
user avatar
  • 7,842
20 votes
Accepted

How to use the Features module in a 3 dev environnement?

Welcome to the land of Features Configuration Management, aka FCM! It is not only about Features, and not about Configuration Management (as introduced in Drupal version 8). Instead, it is a special ...
user avatar
18 votes

Revert a Feature Component programmatically

You can revert a single features module with features_revert_module(). features_revert_module('my_feature');
user avatar
  • 5,114
12 votes
Accepted

How can I use the UUID API?

I assume what you want to know is how to generate a UUID in Drupal 8, because there's really not much else that you can do ;) Entities all have an UUID automatically, so if you store your data as a ...
user avatar
  • 81.3k
9 votes
Accepted

What does features_exclude mean in a features info file?

features_exclude is generated by the Features UI when creating a Feature. It is not created by drush fu FEATURE_NAME. See https://www.drupal.org/node/1064472#comment-7196064. The features_exclude ...
user avatar
  • 18.3k
8 votes

Remove components from a feature using Drush

Remove the component by deleting the corresponding line in your feature's .info file. Then run: $ drush fu <feature_name> In your case: Open the file /sites/all/<features_folder>/...
user avatar
  • 371
7 votes

How to use the Features module in a 3 dev environnement?

Merge conflicts are probably going to be a given when multiple developers are integrating their configuration into a Feature. I wrote up several guidelines for reviewing feature code, but I think the ...
user avatar
  • 5,711
6 votes
Accepted

Possible to use drush to list overrides for all features?

In the current version of Drush, you can show a list of all features and their override state with (both short and long versions of commands shown, with and without the "-y" flag to skip ...
user avatar
6 votes
Accepted

How do I add a view with a module when installing a module?

If you have the YAML file, you can put this in: /modules/your_module/config/install. Then the View will be imported, when the module is installed (but there will be no updates, if you change the YAML ...
user avatar
  • 87.1k
6 votes
Accepted

What exactly is "Overridden", "Needs review" & "Revert component" in Features?

Both needs review and overridden statuses mean that the feature in the database does not match the feature in code. Running "drush fr" (feature revert) will replace the feature in the database with ...
user avatar
5 votes

Revert a Feature Component programmatically

Use features_revert() to revert specific components only where the syntax is: features_revert(array($module => $components)); for example: features_revert(array('module_name' => array('...
user avatar
  • 13.5k
5 votes
Accepted

How to manage text on my site that's not node content?

Consider using the Bean module for this. Here is a quote about its project page: Think of a Bean as a method to provide new types (compared to node this would be a content type) which then provides ...
user avatar
5 votes
Accepted

Why I cannot export vocabulary terms via Features?

You need to use the module uuid_features. It is both possible to export individual terms by listing the ones you want or you can export all terms with the vocabulary: Enable uuid_features Go to ...
user avatar
  • 2,790
5 votes

Unable to install ... already exist in active configuration

Use the Easy Install module to purge the active configuration without using the Devel module or Drush. It works even if you have missed out the optional folder and the enforced option in the module's ...
user avatar
5 votes

Unable to install ... already exist in active configuration

For a Pantheon site, I used the following Drush commands. On the Pantheon site, drush @pantheon.SITENAME.ENVNAME config-delete ERRORNAME On the local site, drush config-delete ERRORNAME
user avatar
4 votes

How to export feed agregator list and setting as feature?

I have achieved this using aggregator_save_feed() function in hook_install() or hook_update_N() of my custom module. It's not a feature but there is not much difference. Example: /** * Implements ...
user avatar
  • 7,184
4 votes
Accepted

Use feature as module?

Of course, you can use a feature like a "normal" module. Feature use .module file only for include a file, so after this include you could add your custom code. And obviously you can add more files, ...
user avatar
  • 3,082
4 votes
Accepted

How to export content type with scheduler's settings using features

In addition to exporting "Content types", "Field bases" and "Field instances" you should also export all variables named "scheduler_*_[name of the content type]". To be able to export variables ...
user avatar
4 votes

How can I use the UUID API?

To generate uuid with drush: drush php-eval "echo \Drupal::service('uuid')->generate();"
user avatar
  • 1,419
4 votes

Features versus Configuration Management

I would advise using Features. This would allow not only exporting functionality and compartmentalizing it a lot easier, but you could also have the ability to bring in features later from an external ...
user avatar
  • 26.3k
4 votes

How to transfer a block from one site to another?

Have a look at the Bean module. Here is a quote about its project page: Think of a Bean as a method to provide new types (compared to node this would be a content type) which then provides an add ...
user avatar
4 votes

How to transfer a block from one site to another?

You can try Block Export Import module, It will help you to import block to remote site. This module allows users to export all system specific blocks (are those blocks which are created using ...
user avatar
4 votes
Accepted

How to transfer a panel variant from one site to another?

Yes, Panels and panel variants can be exported using the Features module. If you are using the panel variant as a part of page manager the option to export variant is shown in the features UI under ...
user avatar
  • 10.7k
4 votes
Accepted

Downloading a Feature

You can use my very favorite drush command: drush fu your_feature This is the same as using "recreate" in the UI except that it will update your feature directly where it resides in your code base (...
user avatar
  • 1,490
4 votes
Accepted

Should I enable a feature I created on the same site?

Sure, you enable it. By that you keep track of changes you make on either development environment. For example you edit some settings on your local dev site, then the activated feature will recognise ...
user avatar
  • 15.8k
3 votes

How can I move a view from one feature to another?

I was able to do this by editing the respective view and causing the feature to go overridden. Once the feature is overridden (aka. view settings/config saved in DB) we can recreate the respective ...
user avatar
3 votes
Accepted

Should I activate feature modules on my dev site?

Features allows you to assure that the configuration that is described in code (in the features that you the module Features generates) is the current configuration in the DB. If you enable a feature ...
user avatar
  • 6,916
3 votes
Accepted

Simpletest: database exception during setUp

To really figure out what's going on I'd have to dig deep into the features and fe_block modules, which I started to do and decided I could spend the next week digging and still not find any answers. ...
user avatar
  • 318
3 votes
Accepted

Features local permission issue Warning: mkdir(): Permission denied in features_export_build_form_submit()

The point is that your folder needs to runs under the _www group (www-data is the group and user for linux machine). You can do it within a terminal or with the finder too. So find the webserver root ...
user avatar
3 votes

Can I rename a module?

Renaming a Drupal feature requires additional steps than rename a custom module. Solution 1 (without un/install) Backup the DB. Put the site on maintenance mode. Rename the feature with an IDE or ...
user avatar
  • 843

Only top scored, non community-wiki answers of a minimum length are eligible