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

Deprecated warning with incomplete quiz attempts #2747

Open
4 tasks
brianhogg opened this issue Aug 22, 2024 · 0 comments
Open
4 tasks

Deprecated warning with incomplete quiz attempts #2747

brianhogg opened this issue Aug 22, 2024 · 0 comments
Assignees

Comments

@brianhogg
Copy link
Contributor

Reproduction Steps

  1. Turn on debugging display on the site
  2. Start taking a quiz in a course
  3. Refresh the page to exit the quiz before completed

Expected Behavior

No warning is displayed

Actual Behavior

Warning is displayed in the attempts dropdown:

Captura de pantalla 2024-08-22 a las 10 56 36 a  m

and when you select that attempt in the dropdown:

Captura de pantalla 2024-08-22 a las 10 58 33 a  m

Error Messages / Logs

PHP Deprecated:  round(): Passing null to parameter #1 ($num) of type int|float is deprecated in .../wp-content/plugins/lifterlms/templates/quiz/results.php on line 75

PHP Deprecated:  strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in .../wp-content/plugins/lifterlms/includes/models/model.llms.quiz.attempt.php on line 344

This issue has be recreated:

  • Locally
  • On a staging site
  • On a production website
  • With only LifterLMS and a default theme
@ideadude ideadude moved this to Awaiting Triage in Development Aug 22, 2024
@ideadude ideadude self-assigned this Aug 22, 2024
@brianhogg brianhogg assigned brianhogg and unassigned ideadude Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting Triage
Development

No branches or pull requests

2 participants