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!

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

| improve this answer | |
  • 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. – Kevin Davis Jul 26 at 15:50
  • If you have access you can probably also sftp it over and into your sites/default/modules – KarinG - Semper IT Jul 26 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) – Kevin Davis Jul 26 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. – KarinG - Semper IT Jul 26 at 19:55
  • Will do, thank you for your help. – Kevin Davis Aug 2 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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