ActiveCampaign Forum

Webhook : $_POST variable empty response


#1

My Webhook $_POST variable is not get any data. 4 days ago my webhook is working fine but now $_POST is empty (is there API version problem or PHP side ? )

My webhook call when new contact add in my list.

Here my code is :

if ( isset( $_POST ) ) {
$arr = print_r($_POST, 1);
$fd = @fopen(“error_log.log”, “a”);
fwrite($fd,’| Message: inserted’.$arr);
fclose($fd);
}