ok found the problem..
was a bad bug in 5.2 in campaign / utils.php
PHP Code:
$exempt_id = '';
foreach($curr_pl_arr as $user_list){
foreach($pl_arr as $v){
if(in_array($v['id'], $user_list) && $v['list_type'] == 'exempt'){
$already_here = 'true';
$exempt_id = $v['id'];
break 2;
}
}
}
...
...
...
if($already_here =='true'){
//do nothing, user is already exempted
die("1");
}else{
//user is not exempted yet , so add to unsubscription list
require_once('modules/ProspectLists/ProspectList.php');
$exempt_result = $exempt_list->retrieve($exempt_id);
if($exempt_result == null)
{//error happened while retrieving this list
return;
}
$GLOBALS['log']->debug("In Campaigns Util, loading relationship: ".$relationship);
$exempt_list->$relationship->add($focus->id);
}
the $emept_id was never set in case of already_here= false ........
this seems to be fixxed in 5.5
i copied the code from the unsubscribe function from 5.5 to my 5.2 and now it works fine.
Bookmarks