You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I return an array just like the example shows, but if I press the "Test Connection" button in the server settings, a loading wheel next to the button spins indefinitely. I know my code is executing fine, because I can use the "logModuleCall()" function to log expected values to the module debug log right before I return the array.
For anyone else that has this spinning wheel problem, I was able to fix it by switching from PHP 5.6 to PHP 7.2.
I'll close this issue, but I still think this function needs better documentation. For example, it looks like it's only possible to display a custom message when the test fails. Can a custom message be displayed when the test succeeds instead of just displaying "SUCCESS!"?
I can't get the "_TestConnection()" function to work as described here: https://github.com/WHMCS/sample-provisioning-module/blob/master/modules/servers/provisioningmodule/provisioningmodule.php#L381
I return an array just like the example shows, but if I press the "Test Connection" button in the server settings, a loading wheel next to the button spins indefinitely. I know my code is executing fine, because I can use the "logModuleCall()" function to log expected values to the module debug log right before I return the array.
I also notice that "_TestConnection()" is not listed as a supported function in the documentation: https://developers.whmcs.com/provisioning-modules/supported-functions/
It seems like something about this function isn't documented right.
The text was updated successfully, but these errors were encountered: