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);

CommentFileSizeAuthor
icontact-instantiante-contact.patch672 byteslucascaro

Comments

john franklin’s picture

There needs to be a similar change in icontact_ui_lists_form().

greenskin’s picture

Fixed. Please try the latest dev release.

greenskin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.