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

1.36.33 - Undefined variable $count #3799

Closed
CyberGuerro opened this issue Dec 29, 2023 · 1 comment
Closed

1.36.33 - Undefined variable $count #3799

CyberGuerro opened this issue Dec 29, 2023 · 1 comment

Comments

@CyberGuerro
Copy link

Describe Your Environment

  • Version of ZoneMinder 1.36.33
  • How you installed ZoneMinder official distribution package
  • Full name and version of OS: Gentoo 2.14

Describe the bug
In error.log it's repeatly wrote:

2023-12-29 09:41:47 Warning: Warning (2): Undefined variable $count in [/usr/share/zoneminder/www/api/app/Controller/HostController.php, line 11]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
HostController::daemonCheck() - APP/Controller/HostController.php, line 11
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
AppController::invokeAction() - APP/Plugin/Crud/Lib/CrudControllerTrait.php, line 31
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117

2023-12-29 09:41:47 Warning: Warning (2): Undefined variable $count in [/usr/share/zoneminder/www/api/app/Controller/HostController.php, line 13]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
HostController::daemonCheck() - APP/Controller/HostController.php, line 13
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
AppController::invokeAction() - APP/Plugin/Crud/Lib/CrudControllerTrait.php, line 31
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 117

To Reproduce
ever

Expected behavior
error.log should be empty

connortechnology pushed a commit that referenced this issue Dec 29, 2023
@CyberGuerro
Copy link
Author

Excuse me Connor, I've looked your commit: now there are 2 identical instruction (line 9 and11). I think that 1 is sufficient... ....or not?
I suspect that you had fixed in your code (after 1.36.33 history) before my issue (sorry for this, but my distribution has only 1.36.33 until 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