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 

 

 
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...