Critical Bug in Code on Line 494

Comments

seanr’s picture

Is this still an issue? If so, I'll need more info, including the specific wording of the error message.

gioppy’s picture

I have the same error. For me, in the Enabled CRMs section i have this error:

warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs//sites/all/modules/crmapi/crmapi.module on line 494.

In the "Section" section i have this one:

* warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs//sites/all/modules/crmapi/crmapi.module on line 153.
* warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs//includes/form.inc on line 1420.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs//sites/all/modules/crmapi/crmapi.module on line 494.

In the Fields section i have a blank page.
I hope i be usefull....

P.S.:sorry for my very bad english!!! ;)

seanr’s picture

What CRM are you using with it?

gioppy’s picture

The 6.x-1.0 version.

seanr’s picture

What I meant is that this module is just an API intended to allow Drupal to integrate with external CRM systems. You should only use this module if you're integrating with a CRM like Salesforce, CiviCRM, or NGP's Campaign Office.

matteoraggi’s picture

I get the same error using drupal 6.13 I want to use it with civicrm, plus if I go here:
domain/admin/settings/crmapi/fields I get this error:
Fatal error: Call to undefined function _debug() in /home/fornitur/public_html/forniture-alberghiere.net/sites/all/modules/crmapi/crmapi.module on line 267

So which advantages I can get exactly using civicrm and this module?

seanr’s picture

OK, try a fresh checkout from CVS (HEAD). I don't use CIviCRM at all and don't really have the ability to test it at the moment. I do know some other folks who used it with this module and will ask them about it.