Hi there. I’m using the freeform_module_insert_begin hook to send data to salesforce. I’ve set up the extension ok and data is being sent alright to Salesforce.
My problem is returning back from the extension. I am pretty new to extensions but understand that
$EXT->end_script = TRUE;
should return me after the code in my extension has finished processing.
If I add this to end of the function I’m calling I get
Warning: Invalid argument supplied for foreach() in /...snip.../db/db.mysql.php on line 698
Warning: Cannot modify header information - headers already sent by (output started at /...snip.../db/db.mysql.php:698) in /..snip..core/core.functions.php on line 296
Have I completely misunderstood how this should work? I’ve read through the docs and thought $EXT->end_script = TRUE; would do the trick.
