Skip to main content

Standardized Hook to call API1 functions - how to debug?

Comments

1 comment

  • KostonConsulting
    Paul, You can print output to /usr/local/cpanel/logs/error_log with error_log(), or you can print to another file of your choice. In the hook system, it's really just a wrapper that executes your script via the command line so you won't see any output from print/echo. Since it's just like executing your script via the command line with some data passed in by cPanel, I'd first recommend getting things working from the command line without the cPanel params and then altering the script to use the data from STDIN. I don't see anything wrong with the xmlapi code but if there is, you'll be able to capture the errors when testing via the command line as they'll either print to STDOUT or /usr/local/cpanel/logs/error_log.
    0

Please sign in to leave a comment.