Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cake rd mon issue with $now #89

Open
TheSin- opened this issue Jan 3, 2025 · 1 comment
Open

cake rd mon issue with $now #89

TheSin- opened this issue Jan 3, 2025 · 1 comment

Comments

@TheSin-
Copy link

TheSin- commented Jan 3, 2025

Looked at the code and sure enough $now is set in the if, but used in the then

2025-01-03 19:17:04 warning: Undefined variable $now
Trace:
App\Shell\Task\MonitorTask->_do_ping_tests() /var/www/rd/rdcore/cake4/rd_cake/src/Shell/Task/MonitorTask.php, line 19
App\Shell\Task\MonitorTask->execute() /var/www/rd/rdcore/cake4/rd_cake/src/Shell/RdShell.php, line 29
App\Shell\RdShell->main() /var/www/rd/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/Shell.php, line 515
Cake\Console\Shell->runCommand() /var/www/rd/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 352
Cake\Console\CommandRunner->runShell() /var/www/rd/rdcore/cake4/rd_cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 169
Cake\Console\CommandRunner->run() /var/www/rd/rdcore/cake4/rd_cake/bin/cake.php, line 12
@TheSin- TheSin- changed the title cake rd mon issue with $now cake rd mon issue with $now Jan 3, 2025
@TheSin-
Copy link
Author

TheSin- commented Jan 3, 2025

locally I moved https://github.com/RADIUSdesk/rdcore/blob/cake4/cake4/rd_cake/src/Shell/Task/MonitorTask.php#L57 up to https://github.com/RADIUSdesk/rdcore/blob/cake4/cake4/rd_cake/src/Shell/Task/MonitorTask.php#L52 though I'm not familiar with the frame work so not positive that's correct. But at least it runs and updates now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant