Active
Project:
CRM API
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2010 at 16:14 UTC
Updated:
22 Nov 2011 at 12:45 UTC
Drupal 6.16 - CiviCRM 3.1.3
I get:
Fatal error: Call to undefined function crm_uf_get_profile_fields() in /home/[site_name]/public_html/sites/all/modules/crmapi/civicrm_crmapi.inc on line 34
Any ideas? Thanks...
Comments
Comment #1
bcobin commentedIt looks from here that this function has been changed for some time - the replacement is civicrm_uf_profile_fields_get.
This is from the upgrade of the API from v1 to v2, so it's old news. I tried changing the function name in the module and it doesn't work, so there's more going on here than I'm qualified to deal with - is anybody checking here? This is a total show stopper... Hello?..
Comment #2
bcobin commentedBumping this - still doesn't work with Civi 3.1.4 and latest NGP COO/CWP API 1.26 - same fatal error.
Has this project been abandoned? Any ideas greatly appreciated... thanks!
Comment #3
seanrSorry I missed this issue. Can you try dropping this file in place and let me know if it works correctly? Unfortunately, I don't have civicrm to test it (we use the NGP API exclusively on our projects):
http://drupalcode.org/viewvc/drupal/contributions/modules/crmapi/civicrm...
If that works as expected, I'll tag a new release.
Comment #4
bcobin commentedThanks, Sean - unfortunately, it doesn't work - I get basically the same error. Any ideas? Thanks much!
Fatal error: Call to undefined function civicrm_uf_profile_fields_get() in /home/[site_name]/public_html/sites/all/modules/crmapi/civicrm_crmapi.inc on line 34Comment #5
that0n3guy commentedMaybe checkout this patch for help: http://drupal.org/node/613624#comment-3042442
Comment #6
aniltiwari commentedHI all ,
I have installed CRMAPI module , when i am trying to configure the module
site configuration -> CRM APT ,
than i got warning ......
warning: array_keys() [function.array-keys]: The first argument should be an array in /sites/all/modules/crmapi/crmapi.module on line 498.
Can you help me......
Thanks
Comment #7
bcobin commentedTry changing like 34 in civicrm_crmapi.inc from:
$crm_fields = crm_uf_get_profile_fields($profile_id, true);to
$crm_fields = civicrm_uf_profile_fields_get ($profile_id, true);.See if that works for you.