Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
2 Dec 2011 at 17:09 UTC
Updated:
26 Jul 2019 at 07:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
indytechcook commentedWhy would you ever want to uninstall bean? :)
Jk. I'll take a look.
Comment #2
Anonymous (not verified) commentedThat's a good question. I'm evaluating Blocks, Bean, Boxes, Bricks and Fieldable panels panes. And one task for each contender is to check if they uninstall and clean up behind them. And yes I had/have the same problem with the "Bean::loadUp()". So I had to uninstall.
Thank you!
Comment #3
indytechcook commentedTry this patch.
For the other error there was issues with the including of classes with ctools. The lastest code in the repo tells ctools to not use it's including but use drupal's autoload.
I'm looking forward to your evaluation. I know these modules solve different issues. Please be sure to share if you do a write up.
Cheers.
Comment #4
Anonymous (not verified) commentedThe patch works for me. Thank you.
Comment #5
indytechcook commentedSuper! http://drupal.org/commitlog/commit/22232/fda85ffa1551c706b396f1d0646c86c...
Comment #7
juampynr commentedUninstalling a module in hook_update_N() crashes since bean.module is still available and the patch at #3 causes the following error:
Here is a patch so we first check before loading the file again.
Comment #8
juampynr commentedJust realized that require_once() may be even simpler. Anyway, the result is the same.
Comment #10
arithmetric commentedI tested the patch from comment 7, but saw the following warning when trying to uninstall the bean module:
ctools: Invalid plugin module/type combination requested: module bean and type types
After disabling the bean module, the bean_get_types() function can't be used even after loading the bean.module file, because the plugin support for beans will not be available.
Instead of using bean_get_types() to determine the potential bundle names, I think the approach should be to use Field API to identify any bundles registered with the bean entity.
See attached patch.
Comment #11
juampynr commentedMakes total sense to me.
Comment #12
mducharme commentedI know this is already rtbc but I wanted to add that a drush uninstall of bean provides some context as well:
Comment #13
jbloomfield commentedI got an error on the removal of shortcut links as I didn't have the shortcut module enabled, so the function shortcut_default_set() failed.
There needs to be a check as to whether that function exists first.
Comment #14
indytechcook commentedThat was fixed in #1982468: Cleanup menulink/shortcut after uninstall
I committed the other patch. Thanks
https://drupal.org/commitlog/commit/22232/da12b9515f41e751e22835135fc6c5...
Comment #15
indytechcook commentedSorry, wrong status.