Skip to content

Course averages sometimes return null #7763

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

Open
pkevan opened this issue Mar 5, 2025 · 0 comments
Open

Course averages sometimes return null #7763

pkevan opened this issue Mar 5, 2025 · 0 comments
Labels
[Status] Needs Triage Issue needs to be triaged [Type] Bug

Comments

@pkevan
Copy link
Contributor

pkevan commented Mar 5, 2025

Not sure if this a data issue, or the code should expect to return nothing, but it causes the following warning:

E_WARNING: Attempt to read property "courses_average" on null in [..]/includes/reports/overview/services/class-sensei-reports-overview-service-courses.php:128

Example URLs:
https://learn.wordpress.org/course/beginner-wordpress-user/
https://learn.wordpress.org/course/intermediate-wordpress-user/

@pkevan pkevan added [Status] Needs Triage Issue needs to be triaged [Type] Bug labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Triage Issue needs to be triaged [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant