Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Nov 2011 at 14:33 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
indytechcook commentedis your issue fixed with the dev version? I think this is solved in http://drupal.org/commitlog/commit/22232/561492f6ca4c09a3da3b17efe26a732...
Comment #2
indytechcook commentedIf so, then I"ll roll a new release.
Comment #3
ultimateboy commentedSame issue for me on the latest -dev.
Comment #4
ultimateboy commentedI believe I'm up and running. I traced the code to ctools_get_plugins() which was calling bean_admin_ui. As it turns out (after talking with inytechcook in IRC), if you've built your bean type from within the UI, then bean_admin_ui is required and cannot be disabled. Simply turning on the UI module fixed my issue.
I guess I'll keep the issue active and let persand close it if this also fixes his problem.
Comment #5
indytechcook commentedAlso try truncating the cache tables, then running update.php on beta9.
Comment #6
persand commentedNeither upgrading to beta9/dev, enabling bean_admin_ui nor clearing all caches fixed the problem.
Comment #7
persand commentedNeither upgrading to beta9/dev, enabling bean_admin_ui nor clearing all caches fixed the problem.
Comment #8
persand commentedI uninstalled everything and started from scratch. The error is gone now.
I had all my beans exported into different features (uninstalled them as well) and now when I enable them again Bean doesn't recognize them.
Since I don't have that much Beans and Bean types yet I'm throwing everything out and starting all over.
Comment #9
saltednutI am getting a similar error to this - but not on every page.
Recoverable fatal error: Argument 1 passed to Bean::loadUp() must implement interface bean_type_plugin_interface, boolean given, called in /Users/brantwynn/Sites/sandboxes/d7/sites/all/modules/bean/includes/bean.core.inc on line 152 and defined in Bean->loadUp() (line 160 of /Users/brantwynn/Sites/sandboxes/d7/sites/all/modules/bean/includes/bean.core.inc).This happens when I disable a bean plugin module and orphaned block entities from the module are left behind.
I imagine they are looking for the block type reference and failing?
If I delete those entities before disabling there are no errors.
Strangely enough, when I see this error, the bean module also gets disabled even though I did not uncheck it from the modules list.
Comment #10
indytechcook commentedThis does seem to occur when the plugin has been disabled/deleted.
Let's add some checking on this issue.
I've created another issue to deal with remove blocks on uninstall #1376368: Clean up Beans on uninstall
Comment #11
indytechcook commentedPatch attached to test
Comment #12
saltednutNew error when disabling a bean plugin module after applying the patch.
Fatal error: Cannot instantiate abstract class bean_plugin in /sites/all/modules/bean/bean.module on line 304Comment #13
indytechcook commentedTry this patch. Be sure to run update.php to catch a new class for the code registry
Also, if a patch doesn't work, change the issue status to "needs work"
Cheers
Comment #14
saltednutExcellent!
check_plugin-1351694-13.patch tested and working.
The addition of a default plugin bean "Block" is a good idea.
Comment #15
saltednutThis should be committed to development release.
Comment #16
mrfelton commentedI got this problem immediately after installing the Data module. I updated to the latest dev code, no change. I applied the patch from #13 and ran updatedb. Now, my site is completely unaccessible with the following error in the webserver logs:
Comment #17
mrfelton commentedI then ran
drush rrto clear ythe registry, followed bydrush cc allto clear out all of the caches. At that point my site became accessible again, although about 90% of my Feature modules were disabled, as well as random moduls like Devel. I reenabled them all, and my site seems to be functioning normally again now.Comment #18
indytechcook commentedThanks @mrfelton. sorry for the troubles. Hopefully we are getting these odd cache/code registry issues ironed out.
Comment #19
indytechcook commentedhttp://drupal.org/commitlog/commit/22232/8af1ab44eb63c7edb144b9610e5d240...