Enable debugging

In order to track own issues with the registrar module, you can enable debugging with module logs in WHMCS.

Enable module logs in WHMCS

You can configure and see entry logs at Configuration () > System Logs > Module logs

Enable “Module logging”.

When logs are enabled, many entries can be created and module logs can be easily flooded by any active modules ! 

It is recommended to not enable logs full time or to put in place a script in order to purge the table tblmodulelogs.

Enable logs in the module

Edit the module configuration file config.inc.php located in the module directory to set the variables below:

  • $netim_debug
    If set to true, an entry in the logs will be created for each new function called in the module with its parameters (in the request) and its return (in the response).
    It is then possible to know which parameters were given by WHMCS to the module as well as what the module returned to WHMCS for a particular function call.
  • $netim_api_debug
    If set to true, an entry in the logs will be created for every API call with its parameters (in the request) and its result (in the response).
    It is then possible to track all communications between the module and Netim through the API.

  • $netim_check_debug
    If set to true, an entry in the logs will be created for every domain availability search.

Articles