Jump to content

One line fix for 5.10beta1 Webhooks failing with incoming POSTJSON callback


Recommended Posts

Posted

With Blesta 5.10beta1, incoming Webhook call backs with GET and POST have been confirmed to work with a workaround (link at end). POSTJSON does not work.

Following is a one line fix. Edit line in file controllers/trigger.php
FROM
$params = json_decode($post);
TO
$params = json_decode($post, true);

Explanation for fix: from https://www.php.net/manual/en/function.json-decode.php, setting the second paarmeter to true guarantess the decoded json will be returned as an associative array instead of an object.

Currently a workaroud is required to get incoming Webhooks to work. Information at 

 

 
 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...