Gravity forms bug and temporary solution
-
When sending Gravity Forms notifications this plugin checks the $_POST variable to determine if it is Gravity Forms that is sending the mail and throws an exception if not:
if( !array_key_exists('gform_submit', $_POST) && !array_key_exists( 'gform_send_resume_link', $_POST) && !array_key_exists( 'gf_resend_notifications', $_POST) ) throw new Haet_Different_Plugin_Exception();However, when using the Gravity Forms API to send notifications:
GFAPI::send_notifications( $form, $entry );no such variable is present and therefor the exception is thrown.
A temporary workaroud is to set the variable manually before sending the notification:
$_POST["gform_submit"] = true; GFAPI::send_notifications( $form, $entry );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Gravity forms bug and temporary solution’ is closed to new replies.