-
Bug
-
Resolution: Fixed
-
Major
-
4.5.1
In shared hosting environments like cPanel, the `pcntl_signal()` function is disabled by default, causing a fatal error when running cron via CLI.
This issue affects the following files:
- /lib/classes/shutdown_manager.php
- /admin/tool/behat/cli/run.php
The solution is to check if `pcntl_signal()` exists before calling it:
if (function_exists('pcntl_signal'))
{ pcntl_signal(SIGINT, ['core_shutdown_manager', 'signal_handler']); pcntl_signal(SIGTERM, ['core_shutdown_manager', 'signal_handler']); }