Jump to content

CustomFieldSave Hook Doesn't Work


Recommended Posts

Hello,

 

I am showing the HookPoint firing. I modified the example hook in includes/ to make a call to logActivity() when the hook was called. I also enabled hook debugging and you can see this noted and explained in the Activity Log:

 

26/03/2015 10:10

Hooks Debug: Hook Completed - Returned False

admin 10.1.18.34

26/03/2015 10:10

Hi Nate, I fired ...

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: Hook Point CustomFieldSave - Calling Hook Function create_forum_account

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: Called Hook Point CustomFieldSave

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: No Hook Functions Defined

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: Called Hook Point TicketOpen

admin 10.1.18.34

26/03/2015 10:10

Email Sent to Testing Client ([Ticket ID: 662963] Testing Email) - User ID: 5

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: No Hook Functions Defined

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: Called Hook Point EmailPreSend

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: No Hook Functions Defined

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: Called Hook Point SubmitTicketAnswerSuggestions

admin 10.1.18.34

26/03/2015 10:10

Hooks Debug: Hook Defined for Point: CustomFieldSave - Priority: 1 - Function Name: create_forum_account

admin 10.1.18.34

Link to comment
Share on other sites

Hello,

 

Hooks in the addon module only work if the module is activated. Did you turn on the hook debug log and confirm that the hook file is loading? If you can show that and are still having issues please open a support ticket so our team can investigate your particular setup further.

 

Have a great day,

 

Nate C

Link to comment
Share on other sites

before adding this new hook, i had 2 other hooks on Tickets and they work fine. When I added the new hook, I reactivated the module (disable then enable) to make it work as doc says. but the CustomFields hook does not fire as I mentioned before. And about hook debug log, if you mean something that shown in Admin panel, I've to say there is nothing there, otherwise please guide me to enable that and check the logs.

Link to comment
Share on other sites

Hello,

 

At this point the thread is drifting from a bug report towards technical support. You can enable the Hook Debug logging in the Admin area's Setup -> General Settings -> Other tab:

 

http://docs.whmcs.com/Other_Tab#Hooks_Debug_Mode

 

Once enabled it will log everything the product does with hooks in the Activity Log.

 

If you are still having trouble please open a support ticket so our team can look at your server / setup further.

 

Have a great day,

 

Nate C

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated