I have a problem creating a logic hook for the custom module.
Please find below the steps done:
Created file custom/Extension/modules/smt_smt_orders/Ext/LogicHooks/logic_hooks.php:
Created file custom/Extension/modules/smt_smt_orders/Ext/LogicHooks/OrderUpdateHandler.php:
Run Quick Repair and Rebuild in Admin panel
Verified file custom/modules/smt_smt_orders/Ext/LogicHooks/logichooks.ext.php has been generated:
Problem:
After updating smt_smt_orders record in SuiteCRM I get [500] Internal Error. I canβt see any errors neither in suitecrm.log nor in Apache error log files.
Appreciate any help, I spent too much time trying to figure out whatβs wrong. Thanks.
custom/modules/smt_smt_orders/OrderUpdateHandler.php
make sure you provide the file path with respect to this in 1) and then Run Repair Rebuild to check if anything logged in the function.
you can put log in the body of your function sendOrderUpdateEventToQueue as
This sounds correct - the hook definition file goes there, to make use of the Extension Framework
This doesnβt sound so good. If you put it there the Extension Framework will also pick it up (which you can verify by seeing that it got pulled into the same file as the hook definition during QR&R - not good). You need to put it somewhere else (any place, as long as the hook definition points to it correctly).