Unable to load listSubscribe()! Code=211 Msg=This list does not have i

More
09 Sep 2010 18:46 #171 by drewsu2
When I have a new registration and someone checks the box to signup for our newsletter, I get this error:

Unable to load listSubscribe()! Code=211 Msg=This list does not have interest groups enabled

Any idea on what I need to do to fix this issue?

www.intheknowla.com/component/user/?task=register

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
09 Sep 2010 21:40 #176 by chris
Hi,

Try this. Search for this line

if ($api->errorCode && $api->errorCode != 215 &&$api->errorCode != 211){


in plugins/system/plg_joomailermailchimpsignup.php and replace it with

if ($api->errorCode && (int)$api->errorCode != 215 && (int)$api->errorCode != 211){


What version of php are you using?

Please Log in or Create an account to join the conversation.

More
09 Sep 2010 22:26 #177 by drewsu2
Im using PHP version 5.2.14

This is the closest type of code I could find in that file...what should I change? I added the (int) after the && on the first line, but still the same problem persists.

if ($api->errorCode && $api->errorCode != 215){
echo "Unable to load listSubscribe()!\n";
echo "\tCode=".$api->errorCode."\n";
echo "\tMsg=".$api->errorMessage."\n";
} else {
$query = 'INSERT INTO new_joomailermailchimpintegration VALUES ("", '.$uid.', "'.$email.'", "'.$listId.'")';
$db->setQuery($query);
$db->Query();
return true;

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
09 Sep 2010 22:53 #178 by drewsu2
Nevermind...I upgraded and all is good. Thanks for the excellent support!

Please Log in or Create an account to join the conversation.