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

Multiple errors caused by eventsIndex.php #706

Closed
curtishall opened this issue Oct 11, 2024 · 2 comments
Closed

Multiple errors caused by eventsIndex.php #706

curtishall opened this issue Oct 11, 2024 · 2 comments
Assignees
Milestone

Comments

@curtishall
Copy link
Member

/var/log/nginx/bluecherry-error.log is flooded with:

/usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/
2024/10/09 16:42:40 [error] 655#655: *740770 FastCGI sent in stderr: "uecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key 
2024/10/09 16:42:40 [error] 655#655: *740770 FastCGI sent in stderr: "HP Warning:  Undefined array key "media_duration" in /usr/share/bluecherry/www/ajax/events/eventsIndex.php on line 128; PHP message: PHP Warning:  Undefined array key "media_duration" in 

Log: https://drive.google.com/file/d/1ErOwXbqLmc0ftRLZM0TsrigjbAIRrPqY/view

https://forums.bluecherrydvr.com/t/axis-camera-err-ajax/941

@curtishall
Copy link
Member Author

curtishall commented Oct 11, 2024

The code is assuming $item['media_duration'] always exists, but in some cases, it doesn't. This could be due to:

The query that populates the $item array not including the media_duration field.
Some events not having a media_duration value in the database.

@andrey-utkin
Copy link
Contributor

Fixed by #712

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

3 participants