Webhooks allow communication with third-party applications by sending instant web notifications every time an event occurs in your SuiteCRM. With the Webhooks Integration, you can configure HTTP URLs and associate them in workflow rules to automate the entire notification process.
#5464 - Fatal error
I installed v7.14 plugin on v7.14 suitecrm. When I enabled the webhook a message popped up with "undefined" in it. I have checked file permissions and they are correct.
When I add parameters to the workflow Actions, the dropdown list of fields is empty. I saved the workflow and returned to it and now the action section contains the following error message
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /var/www/demo.crm.cloud/custom/VIWebhookIntegration/VIWebHookIntegrationFunction.php:111 Stack trace: #0 /var/www/demo.crm.cloud/custom/VIWebhookIntegration/VIWebHookIntegrationFunction.php(111): in_array('getEmailAddress...', 'getUserSecurity...') #1 /var/www/demo.crm.cloud/custom/VIWebhookIntegration/VIWebHookIntegrationFunction.php(54): getPrimaryModuleFields('Accounts', Array, 1) #2 /var/www/demo.crm.cloud/custom/VIWebhookIntegration/VIWebHookIntegrationFunction.php(40): getFields('Accounts', Array, 1) #3 /var/www/demo.crm.cloud/custom/modules/AOW_Actions/actions/actionWebHookIntegration.php(358): getModuleFieldsDropdown('Accounts', NULL, 1) #4 /var/www/demo.crm.cloud/modules/AOW_WorkFlow/controller.php(573): actionWebHookIntegration->edit_display('0', Object(Account), Array) #5 /var/www/demo.crm.cloud/include/MVC/Controller/SugarController.php(522): AOW_WorkFlowController->action_getAction() #6 /var/www/demo.crm.cloud/include/MVC/Controller/SugarController.php(491): SugarController->do_action() #7 /var/www/demo.crm.cloud/include/MVC/Controller/SugarController.php(465): SugarController->handle_action() #8 /var/www/demo.crm.cloud/include/MVC/Controller/SugarController.php(361): SugarController->process() #9 /var/www/demo.crm.cloud/include/MVC/SugarApplication.php(101): SugarController->execute() #10 /var/www/demo.crm.cloud/index.php(52): SugarApplication->execute() #11 {main} thrown in /var/www/demo.crm.cloud/custom/VIWebhookIntegration/VIWebHookIntegrationFunction.php on line 111
When I navigate to the "Webhook Integration Log" menu item, I see the following error
Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /var/www/demo.crm.cloud/include/SearchForm/SearchForm2.php:667 Stack trace: #0 /var/www/demo.crm.cloud/include/SearchForm/SearchForm2.php(139): SearchForm->_build_field_defs() #1 /var/www/demo.crm.cloud/include/MVC/View/views/view.list.php(360): SearchForm->setup(Array, Array, 'SearchFormGener...', 'basic_search', Array) #2 /var/www/demo.crm.cloud/include/MVC/View/views/view.list.php(277): ViewList->prepareSearchForm() #3 /var/www/demo.crm.cloud/include/MVC/View/views/view.list.php(422): ViewList->listViewPrepare() #4 /var/www/demo.crm.cloud/include/MVC/View/SugarView.php(210): ViewList->display() #5 /var/www/demo.crm.cloud/include/MVC/Controller/SugarController.php(432): SugarView->process() #6 /var/www/demo.crm.cloud/include/MVC/Controller/SugarController.php(363): SugarController->processView() #7 /var/www/demo.crm.cloud/include/MVC/SugarApplication.php(101): SugarController->execute() #8 /var/www/demo.crm.cloud/index.php(52): SugarApplication->execute() #9 {main} thrown in /var/www/demo.crm.cloud/include/SearchForm/SearchForm2.php on line 667
Please can you advise what might be the issue. Thank you.
3 months ago
Hello,
Apologies for the problem you're facing.
Can you please tell us which PHP Version you have on your Server?
Also after Install our add-on, have you do the Repair and Rebuild Javascript from the Admin Section?
Regards,
Variance Infotech PVT LTD