0

I'm getting two error messages:

Warning: Invalid argument supplied for foreach() in wf_crm_get_fields() (line 910 of /home3/site/public_html/sites/all/modules/webform_civicrm/includes/utils.inc).

Notice: Undefined index: caseRoles in wf_crm_get_fields() (line 910 of /home3/site/public_html/sites/all/modules/webform_civicrm/includes/utils.inc).

when I try to enter information on Drupal 7 using a webform.

What could be causing this issue? Is there a way that I can work around this issue?

Thanks!

1 Answer 1

2

Please see -> What is the recommended/supported version of Webform CiviCRM module for Drupal 7?

First step would be to move to the supported version for D7WFC -> 7.x-5.x

Your error message tells me you're on 7.x-4.x https://github.com/colemanw/webform_civicrm/blob/7.x-4.x/includes/utils.inc#L910

5
  • How would I go about updating the Webform since I don't have Drush / Composer. I tried to update, however, in Drupal there is no option to update it. Jul 26, 2020 at 15:50
  • If you have access you can probably also sftp it over and into your sites/default/modules Jul 26, 2020 at 19:14
  • I realize that, however, I'm getting the follwong message: ge Warning: Invalid argument supplied for foreach() in wf_crm_get_fields() (line 954 of /home3/isrcus/public_html/sites/all/modules/webform_civicrm/includes/utils.inc). (I Just updated the module) Jul 26, 2020 at 19:47
  • You can file an issue on drupal.org/project/webform_civicrm - however and in the mean time you should really switch throwing notices to: None on your admin/config/development/logging if this is a live site. Jul 26, 2020 at 19:55
  • Will do, thank you for your help. Aug 2, 2020 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.