Closed GARMTECH closed 5 months ago
Hi @GARMTECH,
From the stack trace, it seems your module log is empty and hence the error in downloading files. After enabling module logging, please reproduce the error so that module and activity logs will be populated.
I'm sure you should handle empty logs, so script will not throw a 503 error in such cases.
Hi @GARMTECH,
A task is already added for developers to show a user friendly error message instead of the WHMCS Oops error when module log is empty.
Describe the bug Trying to download support file from Addons > Openprovider > Download gets a 503 (Ooops) WHMCS error.
[WHMCS Application] ERROR: TypeError: OpenProvider\WhmcsDomainAddon\Controllers\Admin\SupportController::getModuleLog(): Return value must be of type string, null returned in /var/www/html/modules/addons/openprovider/Controllers/Admin/SupportController.php:109 Stack trace: #0 /var/www/html/modules/addons/openprovider/Controllers/Admin/SupportController.php(67): OpenProvider\WhmcsDomainAddon\Controllers\Admin\SupportController->getModuleLog() #1 /var/www/html/modules/addons/openprovider/vendor/wedevelopcoffee/wpower/src/Core/Instance.php(47): OpenProvider\WhmcsDomainAddon\Controllers\Admin\SupportController->download() #2 /var/www/html/modules/addons/openprovider/vendor/wedevelopcoffee/wpower/src/Core/Launch.php(54): WeDevelopCoffee\wPower\Core\Instance->execute() #3 /var/www/html/modules/addons/openprovider/openprovider.php(75): WeDevelopCoffee\wPower\Core\Launch->output() #4 /var/www/html/eagle/addonmodules.php(0): openprovider_output() #5 {main} {"exception":"[object] (TypeError(code: 0): OpenProvider\\WhmcsDomainAddon\\Controllers\\Admin\\SupportController::getModuleLog(): Return value must be of type string, null returned at /var/www/html/modules/addons/openprovider/Controllers/Admin/SupportController.php:109)"} []
To Reproduce Steps to reproduce the behavior:
Expected behavior Downloading of support file.
Server info: