civicrm zapier extension error saving zap
"critical error on this website" when trying to publish a zap that connects civicrm to google workspace to add a contact to a group.
The zap is not published due to the critical error (assumption).
The failure occurs in the civicrm zapier extension in ./ext/zapier/CRM/Zapier/Utils.php at line 36 in function saveHookURL.
The failing line of code is:
At that point $trigger is "membership_created".
However $zapHooks does not appear to be an array or an object: a:2:{s:14:"create_contact";s:82:"https://hooks.zapier.com/hooks/standard/21541005/e0a4de1301c94439b804477f2377657a/";s:18:"update_participant";s:0:"";}
It is simply a string, and you cannot add a key value to it as attempted in that failing line of code.
The string is the result of $zapHooks = self::getZapHooks(); which returns self::unserialize_recursive(Civi::settings()->get('zapierHooks'));
The Civi:settings()->get('zapierHooks') returns: s:151:"a:2:{s:14:"create_contact";s:82:"https://hooks.zapier.com/hooks/standard/21541005/e0a4de1301c94439b804477f2377657a/";s:18:"update_participant";s:0:"";}";
At this point there are no registered zapierHooks.
We are in the midst of a 2 week trial at Zapier and would like to have a proof of concept before the trial ends.
Thanks, John Gotts webkeeper@npym.org