Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uninstalling]

Use it for questions about uninstalling modules.

0
votes
2answers
17 views

How can I get rid of Contribute 8.x-5.0-beta3 module?

What's wrong with Contribute 8.x-5.0-beta3 module? After 8.6.10 update I have a problem with Contribute module. First it's marked as outdated/not supported but on some sites I can not remove it fully ...
3
votes
1answer
83 views

applyUpdates() is deprecated. Is it really needed in hook_install() anyway?

I maintain a contrib module which defines two base fields, but these are not added to any content type on installation, as this is done during admin config. The module has // Add our base fields to ...
2
votes
4answers
89 views

Cannot uninstall modules due to missing table br_schedule

When I hit the Uninstall tab in the UI or try to uninstall a module with Drush I get the following errors: Drush: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DATABASENAME....
1
vote
1answer
22 views

How can I trigger custom code when some other module is being installed/uninstalled?

I am using a third-party module. Whenever it is installed or un-installed, I want to programmatically create/delete some menus. How can I detect that a module is installed or un-installed?
3
votes
0answers
20 views

Module Uninstall Validators and Lazy Services

I have recently been working on creating functionality for a module that requires certain content related to the module be deleted before the module itself can be uninstalled. https://www.drupal.org/...
1
vote
1answer
34 views

How to add warning message before module is uninstalled

The module in question has a content entity, entity1, that has another content entity, entity2, that depends on entity1. I would like to add a warning before uninstall of the module if there are ...
5
votes
2answers
470 views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
0
votes
1answer
47 views

Manually removing database records of a module

I inherited a Drupal 7 site that appears to have a history. I'm receiving the following error when updating modules or clearing the cache: PDOException: SQLSTATE[42S02]: Base table or view not ...
0
votes
0answers
22 views

Missing DB table blocking uninstall of custom module [duplicate]

Simple problem PITA to fix. I created a module with a custom entity and some other stuff. But there was an error during installation and the DB table did not get created. Attempting to uninstall ...
0
votes
1answer
20 views

Find specific node to uninstall a module

I want to uninstall a module but I'm getting the following message. The "Name of Module" field type is used in the following field: node.field_feature_interest. How can I find this node so I can ...
0
votes
1answer
250 views

Drupal\Component\Plugin\Exception\PluginNotFoundException: The “glossify_taxonomy” plugin does not exist.

In Drupal 8 when we upload the module we will get this kind of issue very often. I have installed glossify and its submodule glossify_taxonomy and configured. we have created some content in ...
2
votes
1answer
22 views

I want to uninstall l10n_client which may be duplicated

I use composer. The L10n_client module could not be updated or occasionally not found. I feel that the names of L10n_client or l10n_client_ui are different. It is a similar atmosphere as below. https:/...
1
vote
1answer
28 views

hook_module_preuninstall doesn't run early enough

Uninstalling my module threw this error: [error] my_module: The My Field field type is used in the following field: my_module.my_field But, since my module defines both an entity and a field, both ...
0
votes
1answer
159 views

How do I uninstall RSS?

I would like to uninstall RSS completely from Drupal 8, not only hide it from pages, but also disable the core logic behind it. How do I achieve it?
0
votes
1answer
231 views

Remove orphaned module data after uninstall

I have installed the xmlsitemap module, which is in alpha state. The module has an incomplete uninstall routine. Right now I am getting this error at /admin/config: User warning: The following ...
0
votes
1answer
72 views

Can't get hook_uninstall to trigger

In mymodule.install i try to implement a hook_uninstall call, but it never triggers. What am I doing wrong? function hook_uninstall() { echo "uninstalling"; ...more stuff... }
1
vote
1answer
36 views

How can we uninstall a module directly from the database?

I am trying to find a way to uninstall a Drupal 8 module directly from database. How can I achieve this?
2
votes
1answer
99 views

Can't uninstall module because of checkbox field

I've a custom module that alters the MenuLinkContent entity by adding a field. My field is defined as follow. /** * Implements hook_entity_base_field_info(). */ function ...
3
votes
1answer
57 views

Drupal 8 Equivalent of Drupal 7's disabling a module without Uninstalling it

I noticed that I can't just "disable" a module in Drupal 8. As disabling it deletes all the config data of that module and completely uninstalls it. There are times I just want to disable a module to ...
-1
votes
1answer
235 views

How can I uninstall a module with entities in the db?

How can I uninstall a Drupal 8 module with entities in the db? I have made a dev module that implement content entities created using the drupal console. I've added fields, views, and made some ...
1
vote
1answer
31 views

The module does not dissapear after disable, uninstall, clear cache and cron job

I want to completely remove the File entitymodule from my Drupal site. I've disabled the module via Modules in admin panal. Then I also uninstalled it though the panel. After that, I've deleted the ...
1
vote
1answer
29 views

Can't uninstall User Badges

How can I uninstall the User Badges Module? I always get the same error when I try: Recoverable fatal error: Argument 1 passed to file_delete() must be an instance of stdClass, string given, called ...
0
votes
3answers
277 views

Can't uninstall module that depends on custom field type in use

Drupal 8 Using Yoast, I've removed it from all my content types but I can't uninstall because it says --> The Yoast SEO status & focused keywords field type is used in the following field: ...
0
votes
1answer
74 views

Unable to install Cart with ubercart

I'm trying to install Cart form ubercart after an uninstall: I'm getting the following message what can I do? Unable to install Cart, image.style.uc_cart, uc_order.status.abandoned already exist ...
6
votes
2answers
307 views

How to uninstall a module that has added a basefield that has data

My module adds a basefield 'myfield' to the core 'file' content entity. I now need to uninstall my module for development purposes, but I can't because drush refuses to uninstall the module, saying "...
2
votes
2answers
248 views

Why can't I uninstall a module if I deleted a field type in a content type? [duplicate]

I have an installation of Drupal 7. I installed Field Collection module. I created a content type (Books), added a collection type field, and created a View showing these data. Now, I deleted the ...
1
vote
1answer
386 views

How to remove custom module provided entity instances by the time the module being uninstalled?

I have the following use case: I have a custom module, which defines a custom entity type. The custom entity type has some content in the database. Module needs to be uninstalled now, but it can't, ...
2
votes
1answer
673 views

How do I forcefully uninstall any module having content?

I want to uninstall the Field module, but this module can not be uninstalled; when I try, I get the following message. Field API to add fields to entities like nodes and users. Machine name: ...
2
votes
1answer
714 views

How to resolve 'Fields pending deletion' and force deletion of said field?

I'm stuck with an uninstallable module. Drupal insists that there are Fields pending deletion and that the module can not be uninstalled. I've run cron zillion times already as advised for such ...
2
votes
1answer
867 views

D8 Install/uninstall custom module - 'field_storage_config' entity with ID already exists

I created a custom module which essentially is a replica of the Article CT .yml files which come with the D8 standard install-profile. When I installed the custom module, it successfully created ...
1
vote
2answers
1k views

Uninstalling a created custom module in drupal 8

I've created a custom module in drupal 8 and on this module i've created: Content types Fields Entities Views ... all this programmatically. But the problem when i try to uninstall it the database ...
3
votes
1answer
848 views

How to programmatically delete taxonomies when a module is uninstalled?

Taxonomy vocabularies are in the CMI as of Drupal 8, but I want to also keep the Taxonomy terms in code. I am programmatically creating terms in a custom module. function taxonomy_vocab_install() { ...
0
votes
1answer
52 views

Setting up local dev, “call to undefined function” from a module that I uninstalled a few months ago

I'm attempting to set up Acquia Dev Desktop with a database dump and git repo from Pantheon. I was using the Computed Field module in this project but I rewrote the code in my own custom module and ...
1
vote
0answers
60 views

How to use batch in hook_uninstall?

I have big data in hook_uninstall(). How to handle this data? Can I use batch in hook_uninstall()?
3
votes
1answer
604 views

Truncate tables before uninstalling a module in Drupal 8

I'm developing a module in Drupal 8, and because it handles quite a few relations between entities, I always need to add a bit of test data before being able to test the forms for the actual entity I'...
0
votes
3answers
618 views

Uninstalling a module [closed]

In order to un-install a module I disabled and deleted the folder from the root module folder. Though I have deleted the module yet it's showing in module list page. Why is this? Am I doing wrong?
0
votes
1answer
26 views

Replacing the updated module in drupal 7 without effecting the database from previous module?

I have seen that whenever we apply patch to a module, without reinstalling the module, new updates of the module won't be reflected. The problem is reinstalling the module will truncate the module ...
6
votes
2answers
361 views

Truncate field storage tables added by module before uninstall

I've added a field via hook_entity_base_field_info(). It has data stored in it. I then go to uninstall my module and I get the following error: -> drush8 pm-uninstall massing -y The following ...
1
vote
2answers
795 views

Reinstall a module that has .yml file in config\install [closed]

A good enhancement in Drupal 8 is having list of yml file to import via installation in mymodule_root\config\install, but this means I can not reinstall a module because the configuration settings ...
1
vote
2answers
154 views

Can you prevent a module from being disabled?

Is there any way to prevent Admins from disabling a module. Is there anything that can be done via code?
1
vote
2answers
633 views

How to disable a troublesome module that causes admin/modules to not list all modules?

I ran into an unexpected situation after installing the 7.x-2.1 of the Multilang - Embed multiple translations inside a unique node or block module. I was actually experimenting with that module to ...
1
vote
3answers
685 views

How to uninstall MailChimp

Please help me uninstall MailChimp. I disabled all MailChimp component modules, then I clicked uninstall. I got no error messages. I then deleted the MailChimp folder from Sites/All. Finally I ran ...
0
votes
2answers
28 views

Disable profile field when module that created it is disabled?

I have created a module that adds a field to the user profile. When I disable the module, I want the field to no longer be shown on the user profile. I do not want to wipe it out completely, since I ...
7
votes
4answers
1k views

How to get list of module folders which can be deleted safely?

I've uninstalled a lot of unnecessary modules recently through admin/modules/uninstall. Now I want to understand what folders of the modules can be deleted from sites/all/modules. I've tried drush ...
1
vote
1answer
348 views

What all is required to completely uninstall Webform?

After disabling and uninstalling Webform, I noticed that it appears to still be active. Existing Webform content are all still there and accessible. Apparently this is intended behavior. I can delete ...
2
votes
3answers
4k views

How can I disable a troublesome module?

I've been playing around with D8 and have managed to break a few things I can't figure out how to fix. Most recently, after installing (via manually adding the module code to the modules folder) the ...
4
votes
2answers
2k views

Why can't I reinstall my module after uninstall?

With last beta version of Drupal 8, I have this error: Error message Unable to install Nature Theme - Structure and configuration, block.block.kyna_block_aboutus, block.block....
10
votes
2answers
788 views

Best way to delete all variables when uninstalling module

I'm writing a module that writes several variables (three, four variables for every content type, and other). Which method should I use to delete them on hook_uninstall? Is it safe to perform a ...
0
votes
0answers
53 views

Is it safe to comment out dependencies in a feature modules .info file?

I used features to migrate config and content (with uuid features) from a dev site to a live site. Now its there, I dont want the features anymore. Or perhaps partly, but I'd rather rebuild the ...
0
votes
1answer
100 views

How to dislodge drupal from Apache and remove drupal

Excuse me please.. I am new to website development. I am using LAMP on fedora 20. I am also using bluefish to edit html/php. As a shear experiment, I installed Commerce Kickstart on my system. I did ...