After updating the Entity API module, I get:

Strict warning: Declaration of Bean::view() should be compatible with that of Entity::view() in _registry_check_code() (line 2971 of includes/bootstrap.inc).

I also get this very strange notice (stack trace included, from comment #42 patch at #1158322: Add backtrace to all errors):

Notice: Undefined index: args in /home/ajd/.../app/tv411_install/modules/contrib/bean/includes/bean.core.inc on line 281 Call Stack: 0.0040 333352 1. {main}() /home/ajd/.../app/drupal/index.php:0 0.0132 864448 2. drupal_bootstrap() /home/ajd/.../app/drupal/index.php:20 0.1503 6840188 3. _drupal_bootstrap_full() /home/ajd/.../app/drupal/includes/bootstrap.inc:2105 1.1772 36450696 4. drupal_path_initialize() /home/ajd/.../app/drupal/includes/common.inc:4936 1.1772 36450696 5. drupal_get_normal_path() /home/ajd/.../app/drupal/includes/path.inc:17 1.1782 36454092 6. redirect_url_inbound_alter() /home/ajd/.../app/drupal/includes/path.inc:272 1.1790 36454948 7. redirect_load_entity_from_path() /home/ajd/.../app/tv411_install/modules/contrib/redirect/redirect.module:216 1.1790 36455340 8. entity_get_info() /home/ajd/.../app/tv411_install/modules/contrib/redirect/redirect.module:1030 1.1797 36455940 9. module_invoke_all() /home/ajd/.../app/drupal/includes/common.inc:7318 1.1804 36459616 10. call_user_func_array() /home/ajd/.../app/drupal/includes/module.inc:818 1.1804 36459808 11. bean_entity_info() /home/ajd/.../app/drupal/includes/module.inc:0 1.1805 36463760 12. bean_get_types() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:42 1.1805 36464000 13. bean_load_plugin_class_all() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:198 1.1805 36464164 14. bean_fetch_plugin_info() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:316 1.1810 36464660 15. ctools_get_plugins() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:217 1.2171 36553984 16. ctools_plugin_load_includes() /home/ajd/.../app/tv411_install/modules/contrib/ctools/includes/plugins.inc:267 1.2328 36581592 17. require_once('/home/ajd/.../app/tv411_install/modules/contrib/bean/plugins/base.inc') /home/ajd/.../app/tv411_install/modules/contrib/ctools/includes/plugins.inc:468 1.2328 36581732 18. interface_exists() /home/ajd/.../app/tv411_install/modules/contrib/bean/plugins/base.inc:8 1.2332 36582172 19. drupal_autoload_interface() /home/ajd/.../app/drupal/includes/bootstrap.inc:0 1.2332 36582252 20. _registry_check_code() /home/ajd/.../app/drupal/includes/bootstrap.inc:2881 1.2342 36649356 21. _drupal_error_handler() /home/ajd/.../app/drupal/includes/bootstrap.inc:0 1.2343 36649356 22. _drupal_error_handler_real() /home/ajd/.../app/drupal/includes/bootstrap.inc:2144 1.2350 36692264 23. _drupal_log_error() /home/ajd/.../app/drupal/includes/errors.inc:95 Warning: Invalid argument supplied for foreach() in /home/ajd/.../app/tv411_install/modules/contrib/bean/includes/bean.core.inc on line 281 Call Stack: 0.0040 333352 1. {main}() /home/ajd/.../app/drupal/index.php:0 0.0132 864448 2. drupal_bootstrap() /home/ajd/.../app/drupal/index.php:20 0.1503 6840188 3. _drupal_bootstrap_full() /home/ajd/.../app/drupal/includes/bootstrap.inc:2105 1.1772 36450696 4. drupal_path_initialize() /home/ajd/.../app/drupal/includes/common.inc:4936 1.1772 36450696 5. drupal_get_normal_path() /home/ajd/.../app/drupal/includes/path.inc:17 1.1782 36454092 6. redirect_url_inbound_alter() /home/ajd/.../app/drupal/includes/path.inc:272 1.1790 36454948 7. redirect_load_entity_from_path() /home/ajd/.../app/tv411_install/modules/contrib/redirect/redirect.module:216 1.1790 36455340 8. entity_get_info() /home/ajd/.../app/tv411_install/modules/contrib/redirect/redirect.module:1030 1.1797 36455940 9. module_invoke_all() /home/ajd/.../app/drupal/includes/common.inc:7318 1.1804 36459616 10. call_user_func_array() /home/ajd/.../app/drupal/includes/module.inc:818 1.1804 36459808 11. bean_entity_info() /home/ajd/.../app/drupal/includes/module.inc:0 1.1805 36463760 12. bean_get_types() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:42 1.1805 36464000 13. bean_load_plugin_class_all() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:198 1.1805 36464164 14. bean_fetch_plugin_info() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:316 1.1810 36464660 15. ctools_get_plugins() /home/ajd/.../app/tv411_install/modules/contrib/bean/bean.module:217 1.2171 36553984 16. ctools_plugin_load_includes() /home/ajd/.../app/tv411_install/modules/contrib/ctools/includes/plugins.inc:267 1.2328 36581592 17. require_once('/home/ajd/.../app/tv411_install/modules/contrib/bean/plugins/base.inc') /home/ajd/.../app/tv411_install/modules/contrib/ctools/includes/plugins.inc:468 1.2328 36581732 18. interface_exists() /home/ajd/.../app/tv411_install/modules/contrib/bean/plugins/base.inc:8 1.2332 36582172 19. drupal_autoload_interface() /home/ajd/.../app/drupal/includes/bootstrap.inc:0 1.2332 36582252 20. _registry_check_code() /home/ajd/.../app/drupal/includes/bootstrap.inc:2881 1.2342 36649356 21. _drupal_error_handler() /home/ajd/.../app/drupal/includes/bootstrap.inc:0 1.2343 36649356 22. _drupal_error_handler_real() /home/ajd/.../app/drupal/includes/bootstrap.inc:2144 1.2350 36692264 23. _drupal_log_error() /home/ajd/.../app/drupal/includes/errors.inc:95

I take it Bean should be updated to use this new interface. I'm not sure if you want to update just the Bean class, though, or the bean_plugin interface to?

Anyway, I've rolled a patch that updates both.

CommentFileSizeAuthor
#2 bean_entity_view-1323876.patch2.64 KBadamdicarlo

Comments

indytechcook’s picture

Yep, would want to change both here.

Anyway, I've rolled a patch that updates both.

Attach?

adamdicarlo’s picture

StatusFileSize
new2.64 KB

Here's the patch. I'm curious whether it's the right approach.

indytechcook’s picture

Committed. Thanks. FYI, this increments the version number and changes the API so adjust your custom bean types.

http://drupal.org/commitlog/commit/22232/5c6c3d1713c786d626b2817812398d5...

indytechcook’s picture

Status: Active » Fixed

changing status

Status: Fixed » Closed (fixed)

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