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

bcobin’s picture

It 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?..

bcobin’s picture

Bumping 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!

seanr’s picture

Sorry 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.

bcobin’s picture

Thanks, 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 34

that0n3guy’s picture

Maybe checkout this patch for help: http://drupal.org/node/613624#comment-3042442

aniltiwari’s picture

HI 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

bcobin’s picture

Try 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.