For some reason hotmail just wont work, i think it may be due to the hotmail plugin. The errors that are generated when trying to login are below:

Notice: Undefined index: hotmail in openinviter->startPlugin() (line 147 of /www/Full-site/sites/all/libraries/OpenInviter/openinviter.php).
Notice: Undefined index: hotmail in openinviter->startPlugin() (line 182 of /www/Full-site/sites/all/libraries/OpenInviter/openinviter.php).
Unable to get contacts.
Warning: curl_close(): 217 is not a valid cURL handle resource in openinviter_base->stopPlugin() (line 482 of /www/Full-site/sites/all/libraries/OpenInviter/plugins/_base.php).
Warning: Invalid argument supplied for foreach() in _openinviter_engine_contacts_get() (line 307 of /www/Full-site/sites/all/modules/contact_importer/openinviter_engine/openinviter_engine.module).
No contacts could be retrieved from your account. Please try again with a different provider.
Notice: Undefined variable: options in contact_importer_js() (line 14 of /www/Full-site/sites/all/modules/contact_importer/contact_importer.pages.inc).

The first issue i had was with the openinviter package module being for D6 so i had to convert for D7. Not sure if this module is required, the one downloaded from openinviter?

Would be good just to find out if anyone else is having problems with this or just me.

Thanks

Comments

dalin’s picture

It sounds like this isn't related to Contact Importer rather with OpenInviter. Do you have OpenInviter configured to auto-update itself? There are regular bug fixes to OpenInviter and if you configure it to auto-update itself then you don't have to manually download the code on a regular basis.

dalin’s picture

Status: Active » Closed (won't fix)
Anonymous’s picture

Status: Closed (won't fix) » Needs work

I think this needs a second look. I found that the contact importer needs to load the current available plugins to avoid the following error specifically.

Notice: Undefined index: hotmail in openinviter->startPlugin() (line 147 of /www/Full-site/sites/all/libraries/OpenInviter/openinviter.php).
Notice: Undefined index: hotmail in openinviter->startPlugin() (line 182 of /www/Full-site/sites/all/libraries/OpenInviter/openinviter.php).

I added this to the openinvite_engine.module (I know this is not recommended)

$oi_services=$inviter->getPlugins();

and the problem went away. I don't use $oi_services for anything in particular just needed to trigger a call to the getPlugins(); Hope it helps another person or the module is fixed to solve this for others.

dalin’s picture

Great, can you roll a patch?

basant’s picture

Thanks for the solution, one needs to add
$oi_services=$inviter->getPlugins();
after line 259 in openinviter_engine.module file before
$inviter->startPlugin($provider_name);
$error = $inviter->getInternalError();

dalin’s picture

If one of you could create a patch, then we can get this code committed so everyone can benefit. If you haven't rolled a patch before, checkout this guide:
http://drupal.org/node/707484

basant’s picture

Is this fixed or shall I roll out a patch for this?

dalin’s picture

no one has rolled a patch yet.

DuaelFr’s picture

Issue summary: View changes
Status: Needs work » Fixed

Committed in 67c7670.

Status: Fixed » Closed (fixed)

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

jay.lee.bio’s picture

#5 worked perfectly for me. Thank you.