Fatal error: Call to undefined function bean_min_version() in .../bean/bean_admin_ui/bean_admin_ui.install on line 22
CommentFileSizeAuthor
#2 bean-1541968.patch551 bytesalexweber

Comments

alexweber’s picture

Adding a call to drupal_load('module', 'bean'); inside the hook_schema() fixes the error but there's gotta be a more efficient way of doing this, maybe include_once()

alexweber’s picture

Status: Active » Needs review
StatusFileSize
new551 bytes

I've given this some thought and the only "elegant" fix I can come up with is to hardcore the min and current versions in hook_schema() to avoid the fatal error.

indytechcook’s picture

Status: Needs review » Reviewed & tested by the community

@alexweber that's a good fix. It's a separate module and probably a good practice anyway.

indytechcook’s picture

Status: Reviewed & tested by the community » Fixed
alexweber’s picture

@indytechcook awesome! :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.