Answers.Body: <p>Please see -&gt; <a href="https://civicrm.stackexchange.com/questions/36180/what-is-the-recommended-supported-version-of-webform-civicrm-module-for-drupal-7">What is the recommended/supported version of Webform CiviCRM module for Drupal 7?</a></p>
  <p>First step would be to move to the supported version for D7WFC -&gt; 7.x-5.x</p>
  <p>Your error message tells me you're on 7.x-4.x
  <a href="https://github.com/colemanw/webform_civicrm/blob/7.x-4.x/includes/utils.inc#L910" rel="nofollow noreferrer">https://github.com/colemanw/webform_civicrm/blob/7.x-4.x/includes/utils.inc#L910</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-26T15:50:01.793Z
Answers.Text: 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.
Answers.UserDisplayName: Kevin Davis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-26T19:14:05.087Z
Answers.Text: If you have access you can probably also sftp it over and into your sites/default/modules
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-26T19:47:00.943Z
Answers.Text: 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)
Answers.UserDisplayName: Kevin Davis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-26T19:55:32.560Z
Answers.Text: You can file an issue on https://www.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.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-02T14:55:38.377Z
Answers.Text: Will do, thank you for your help.
Answers.UserDisplayName: Kevin Davis
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-19T20:28:12.073Z
Answers.LastActivityDate: 2020-07-19T20:28:12.073Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I'm getting two error messages:</p>
  <p>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).</p>
  <p>Notice: Undefined index: caseRoles in wf_crm_get_fields() (line 910 of /home3/site/public_html/sites/all/modules/webform_civicrm/includes/utils.inc).</p>
  <p>when I try to enter information on Drupal 7 using a webform.</p>
  <p>What could be causing this issue? Is there a way that I can work around this issue?</p>
  <p>Thanks!</p>
  
Tags: <drupal><webform-civicrm>
Title: Invalid Argument WebForm
ThreadText: # Invalid Argument WebForm
  
  (Asked by: username_0 on 2020-07-19)
  
  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!
  
  **Tags:** drupal, webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-19. Score: 2 | Accepted answer
  
  Please see -> [What is the recommended/supported version of Webform CiviCRM module for Drupal 7?](https://civicrm.stackexchange.com/questions/36180/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>
  
  > **Comments:**
  > **username_0**: 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.  
  > **username_1**: If you have access you can probably also sftp it over and into your sites/default/modules  
  > **username_0**: 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)  
  > **username_1**: You can file an issue on https://www.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.  
  > **username_0**: Will do, thank you for your help.  
  
  ---
  
  