when I go to the add contact page (/admin/icontact/contacts/xxxx/yyyyyy/add) I get the following error:
recoverable fatal error: Argument 1 passed to iContactResource::__construct() must be an instance of iContact, instance of iContactClientFolder given, called in /sites/all/modules/contrib/icontact/icontact_ui/includes/icontact_ui.contacts.inc on line 159 and defined in /sites/all/modules/contrib/icontact/classes/iContactResource.class.inc on line 9.
warning: Missing argument 1 for iContactContact::init() in /sites/all/modules/contrib/icontact/classes/iContactContact.class.inc on line 24.
warning: Missing argument 2 for iContactContact::init() in /sites/all/modules/contrib/icontact/classes/iContactContact.class.inc on line 24.
It seems to be initializing the iContactContact in the wron way.
here is a patch to solve it, but its just changing line 159 from
$contact = new iContactContact($contact);
to
$contact = new iContactContact(icontact_load(), $contact->accountId, $contact->clientFolderId);
| Comment | File | Size | Author |
|---|---|---|---|
| icontact-instantiante-contact.patch | 672 bytes | lucascaro |
Comments
Comment #1
john franklin commentedThere needs to be a similar change in icontact_ui_lists_form().
Comment #2
greenskin commentedFixed. Please try the latest dev release.
Comment #3
greenskin commented