Recoverable fatal error: Object of class BeanCustom could not be converted to string in kwresearch_form_alter() (line 1046 of kwresearch.module).

Error can be generated when you try to delete a bean block type: /admin/structure/block-types/manage/block-type/delete

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

layalk created an issue. See original summary.

layalk’s picture

Make sure form is only a node edit form.

JulienF’s picture

Your patch do NOT apply to neither version 1.x-dev nor to version 1.0-alpha4... Line numbers are not correct.

Your patch assumes that hook_form_alter is at line 1042 where on alpha4 it's at line 1120 and on dev it's at line 1166

Please update your patch and make sure the issue is tied to the version you are targeting

layalk’s picture

The patch was applied to an old dev version I had.
I updated the patch to affect version 7.x-1.0-alpha3+3-dev