Answers.Body: <p>If you've installed from github you're installing a beta or maybe even alpha version. In fact I can see that line 316 listed in the error message was only added 6 days ago! There are links at the bottom of the drupal project page to stable versions - use those instead.
  <a href="https://www.drupal.org/project/webform_civicrm" rel="nofollow noreferrer">https://www.drupal.org/project/webform_civicrm</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-04T00:22:23.770Z
Answers.Text: Thanks Demerit for getting to this first; I’ll check with Coleman on line 316 
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-07T10:09:10.480Z
Answers.Text: Thanks Demerit - I used the Github version because it has fixes for other functionality I needed eg https://github.com/colemanw/webform_civicrm/pull/182
  
  I hope I'm not creating more challenges for myself :-/
Answers.UserDisplayName: Davy Ivins
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-04T00:05:17.683Z
Answers.LastActivityDate: 2019-04-04T00:05:17.683Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>Thanks for letting us know about the problem. I've just <a href="https://github.com/colemanw/webform_civicrm/commit/4d3ef15361d4ab0a634c18b96eb55af3d319eb15" rel="noreferrer">pushed a fix</a> into the 7.x-4.x branch to ensure the function gets loaded. You can update your local copy of the module (<code>cd /path/to/modules/webform_civicrm &amp;&amp; git pull</code>) and try again.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-04T20:27:41.490Z
Answers.Text: Hi Coleman - thank you very much for helping out so quickly.
Answers.UserDisplayName: Davy Ivins
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-04T00:57:19.983Z
Answers.LastActivityDate: 2019-04-04T00:57:19.983Z
Answers.UserDisplayName: Coleman
Body: <p>Drupal 7, Civi 7.x-5.11.0</p>
  
  <p>I've installed the latest webform module and the most recent webform_civicrm from Github.</p>
  
  <p>I'm getting the following error when submitting or trying to access webform submissions:</p>
  
  <p>Error: Call to undefined function wf_crm_apivalues() in webform_civicrm_webform_submission_load() (line 316 of /sites/all/modules/webform_civicrm/webform_civicrm.module).</p>
  
  <p>Any ideas where I can look or advice to fix?</p>
  
  <p>Thanks, Davy</p>
  
Tags: <drupal><webform-civicrm>
Title: (Solved) Undefined function in webform_civicrm
ThreadText: # (Solved) Undefined function in webform_civicrm
  
  (Asked by: username_0 on 2019-04-03)
  
  Drupal 7, Civi 7.x-5.11.0
  
  I've installed the latest webform module and the most recent webform\_civicrm from Github.
  
  I'm getting the following error when submitting or trying to access webform submissions:
  
  Error: Call to undefined function wf\_crm\_apivalues() in webform\_civicrm\_webform\_submission\_load() (line 316 of /sites/all/modules/webform\_civicrm/webform\_civicrm.module).
  
  Any ideas where I can look or advice to fix?
  
  Thanks, username_0
  
  **Tags:** drupal, webform-civicrm
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2019-04-04. Score: 5 | Accepted answer
  
  Thanks for letting us know about the problem. I've just [pushed a fix](https://github.com/colemanw/webform_civicrm/commit/4d3ef15361d4ab0a634c18b96eb55af3d319eb15) into the 7.x-4.x branch to ensure the function gets loaded. You can update your local copy of the module (`cd /path/to/modules/webform_civicrm && git pull`) and try again.
  
  > **Comments:**
  > **username_0**: Hi username_3 - thank you very much for helping out so quickly.  
  
  ---
  
  ### Answer by username_1 on 2019-04-04. Score: 1
  
  If you've installed from github you're installing a beta or maybe even alpha version. In fact I can see that line 316 listed in the error message was only added 6 days ago! There are links at the bottom of the drupal project page to stable versions - use those instead.
  <https://www.drupal.org/project/webform_civicrm>
  
  > **Comments:**
  > **username_2**: Thanks username_1 for getting to this first; I’ll check with username_3 on line 316   
  > **username_0**: Thanks username_1 - I used the Github version because it has fixes for other functionality I needed eg https://github.com/colemanw/webform_civicrm/pull/182  I hope I'm not creating more challenges for myself :-/  
  
  ---
  
  