I'm getting the following warning at admin/structure/block/types

Warning: Invalid argument supplied for foreach() in bean_load_plugin_class_all() (line 232 of /Users/tom/workspace/alumni/profiles/alumni/modules/contrib/bean/bean.module).

CommentFileSizeAuthor
#2 1167368-bean-cache-problem.patch780 bytesmrfelton

Comments

mrfelton’s picture

And then again after creating a bean.

Notice: Undefined index: alumin_header in bean_fetch_plugin_info() (line 198 of /Users/tom/workspace/alumni/profiles/alumni/modules/contrib/bean/bean.module).

Actually, this looks like a different warning, though possibly related?

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new780 bytes

This essentially comes down to a problem with the cache implementation in bean_fetch_plugin_info(). Attached patch resolves the issue, ensuring that the plugins are retrieved properly when returned from the cache.

mrfelton’s picture

Title: Invalid argument supplied for foreach() in bean_load_plugin_class_all() line 232 of bean.module » Bean plugins not returned from the cache properly
indytechcook’s picture

Thanks mfrelton. This was part of rewrite of the plugin fetching system (#1160042: Rename hook_bean_plugins), I guess I didn't test very well. I can't wait until i get #1160058: Make Tests done!

I'm testing now.

indytechcook’s picture

Status: Needs review » Fixed

Works and pushed. Not waiting on RTBC since it's such a small change http://drupal.org/commitlog/commit/22232/7afe1cdc29aa9e80d8654770ac66969...

Status: Fixed » Closed (fixed)

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