• Resolved Droidism

    (@droidism)


    Hi Thomas,

    This support thread is a continuation of Quizzes not loading by faye78. I didn’t want to complicate/dilute things to much, so I am continuing it here.

    At the moment I have LifterLMS v3.7.0 installed on a local enviroment running WP 4.7.3 and the Twentyseventeen Theme. No other plugins are activated, exept for a custom debug plugin I threw together.

    Please allow me to explain what is happening in the debug log: (Full log below)

    I log into the site as the Admin, which has been assigned to the course:
    [14-Apr-2017 07:51:55 UTC] 16

    After clicking around on the front-end to get to the quiz you get this in the debug log:
    [14-Apr-2017 07:52:11 UTC] The post 1716 was accessed by a user with the ID 1

    Post 1716 is the associated ID in my install for the actual quiz (Via: Courses -> Quizzes -> The Lifter LMS Demo Sample Quiz” in the backend.)

    I continue clicking around a bit to see the score, and retake the quiz again:
    [14-Apr-2017 07:52:27 UTC] The post 1716 was accessed by a user with the ID 1

    I then continue navigating around the site to log-out as the admin and then log-in as a user with the subscriber role assigned. With the subscriber, that is enrolled to the course, I try to take the course.

    When I land on the Quiz page you will see this in the debug log:
    [14-Apr-2017 07:52:57 UTC] The post 1716 was accessed by a user with the ID 4

    Straight away you see that a lot is starting to happen.

    [14-Apr-2017 07:52:57 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:52:57 UTC] PHP Stack trace:
    ...
    ...
    ...
    ...
    ...
    ...

    Here is the complete log output:

    [14-Apr-2017 07:51:55 UTC] 16
    [14-Apr-2017 07:51:55 UTC] 16
    [14-Apr-2017 07:51:58 UTC] 16
    [14-Apr-2017 07:52:01 UTC] 16
    [14-Apr-2017 07:52:07 UTC] 16
    [14-Apr-2017 07:52:11 UTC] 16
    [14-Apr-2017 07:52:11 UTC] 16
    [14-Apr-2017 07:52:11 UTC] The post 1716 was accessed by a user with the ID 1
    [14-Apr-2017 07:52:15 UTC] 16
    [14-Apr-2017 07:52:22 UTC] 16
    [14-Apr-2017 07:52:27 UTC] 16
    [14-Apr-2017 07:52:27 UTC] 16
    [14-Apr-2017 07:52:27 UTC] The post 1716 was accessed by a user with the ID 1
    [14-Apr-2017 07:52:33 UTC] 16
    [14-Apr-2017 07:52:33 UTC] 16
    [14-Apr-2017 07:52:38 UTC] 16
    [14-Apr-2017 07:52:38 UTC] 16
    [14-Apr-2017 07:52:41 UTC] 16
    [14-Apr-2017 07:52:43 UTC] 16
    [14-Apr-2017 07:52:43 UTC] 16
    [14-Apr-2017 07:52:45 UTC] 16
    [14-Apr-2017 07:52:53 UTC] 16
    [14-Apr-2017 07:52:57 UTC] 16
    [14-Apr-2017 07:52:57 UTC] 16
    [14-Apr-2017 07:52:57 UTC] The post 1716 was accessed by a user with the ID 4
    [14-Apr-2017 07:52:57 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:52:57 UTC] PHP Stack trace:
    [14-Apr-2017 07:52:57 UTC] PHP   1. {main}() /app/public/index.php:0
    [14-Apr-2017 07:52:57 UTC] PHP   2. require() /app/public/index.php:17
    [14-Apr-2017 07:52:57 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:19
    [14-Apr-2017 07:52:57 UTC] PHP   4. include() /app/public/wp-includes/template-loader.php:74
    [14-Apr-2017 07:52:57 UTC] PHP   5. get_template_part() /app/public/wp-content/themes/twentyseventeen/single.php:23
    [14-Apr-2017 07:52:57 UTC] PHP   6. locate_template() /app/public/wp-includes/general-template.php:167
    [14-Apr-2017 07:52:57 UTC] PHP   7. load_template() /app/public/wp-includes/template.php:643
    [14-Apr-2017 07:52:57 UTC] PHP   8. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:52:57 UTC] PHP   9. the_content() /app/public/wp-content/themes/twentyseventeen/template-parts/post/content.php:54
    [14-Apr-2017 07:52:57 UTC] PHP  10. apply_filters() /app/public/wp-includes/post-template.php:240
    [14-Apr-2017 07:52:57 UTC] PHP  11. WP_Hook->apply_filters() /app/public/wp-includes/plugin.php:203
    [14-Apr-2017 07:52:57 UTC] PHP  12. llms_get_post_content() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:52:57 UTC] PHP  13. load_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:158
    [14-Apr-2017 07:52:57 UTC] PHP  14. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:52:57 UTC] PHP  15. do_action() /app/public/wp-content/plugins/lifterlms/templates/content-single-quiz-before.php:12
    [14-Apr-2017 07:52:57 UTC] PHP  16. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:52:57 UTC] PHP  17. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:52:57 UTC] PHP  18. lifterlms_template_quiz_summary() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:52:57 UTC] PHP  19. llms_get_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:754
    [14-Apr-2017 07:52:57 UTC] PHP  20. include() /app/public/wp-content/plugins/lifterlms/includes/functions/llms.functions.template.php:82
    [14-Apr-2017 07:52:57 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:52:57 UTC] PHP Stack trace:
    [14-Apr-2017 07:52:57 UTC] PHP   1. {main}() /app/public/index.php:0
    [14-Apr-2017 07:52:57 UTC] PHP   2. require() /app/public/index.php:17
    [14-Apr-2017 07:52:57 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:19
    [14-Apr-2017 07:52:57 UTC] PHP   4. include() /app/public/wp-includes/template-loader.php:74
    [14-Apr-2017 07:52:57 UTC] PHP   5. get_template_part() /app/public/wp-content/themes/twentyseventeen/single.php:23
    [14-Apr-2017 07:52:57 UTC] PHP   6. locate_template() /app/public/wp-includes/general-template.php:167
    [14-Apr-2017 07:52:57 UTC] PHP   7. load_template() /app/public/wp-includes/template.php:643
    [14-Apr-2017 07:52:57 UTC] PHP   8. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:52:57 UTC] PHP   9. the_content() /app/public/wp-content/themes/twentyseventeen/template-parts/post/content.php:54
    [14-Apr-2017 07:52:57 UTC] PHP  10. apply_filters() /app/public/wp-includes/post-template.php:240
    [14-Apr-2017 07:52:57 UTC] PHP  11. WP_Hook->apply_filters() /app/public/wp-includes/plugin.php:203
    [14-Apr-2017 07:52:57 UTC] PHP  12. llms_get_post_content() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:52:57 UTC] PHP  13. load_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:158
    [14-Apr-2017 07:52:57 UTC] PHP  14. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:52:57 UTC] PHP  15. do_action() /app/public/wp-content/plugins/lifterlms/templates/content-single-quiz-before.php:12
    [14-Apr-2017 07:52:57 UTC] PHP  16. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:52:57 UTC] PHP  17. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:52:57 UTC] PHP  18. lifterlms_template_quiz_summary() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:52:57 UTC] PHP  19. llms_get_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:754
    [14-Apr-2017 07:52:57 UTC] PHP  20. include() /app/public/wp-content/plugins/lifterlms/includes/functions/llms.functions.template.php:82
    [14-Apr-2017 07:53:01 UTC] 16
    [14-Apr-2017 07:53:07 UTC] 16
    [14-Apr-2017 07:53:07 UTC] PHP Notice:  Undefined index: question_id in /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php on line 869
    [14-Apr-2017 07:53:07 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:07 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:53:07 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:53:07 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:07 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:07 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:07 UTC] PHP Notice:  Undefined index: question_type in /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php on line 870
    [14-Apr-2017 07:53:07 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:07 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:53:07 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:53:07 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:07 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:07 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:07 UTC] PHP Warning:  Invalid argument supplied for foreach() in /app/public/wp-content/plugins/lifterlms/includes/class.llms.quiz.php on line 614
    [14-Apr-2017 07:53:07 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:07 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:53:07 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:53:07 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:07 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:07 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:07 UTC] PHP   6. LLMS_Quiz::answer_question() /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php:875
    [14-Apr-2017 07:53:07 UTC] PHP Notice:  Undefined variable: current_question in /app/public/wp-content/plugins/lifterlms/includes/class.llms.quiz.php on line 663
    [14-Apr-2017 07:53:07 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:07 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:53:07 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:53:07 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:07 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:07 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:07 UTC] PHP   6. LLMS_Quiz::answer_question() /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php:875
    [14-Apr-2017 07:53:07 UTC] PHP Notice:  Undefined variable: current_question in /app/public/wp-content/plugins/lifterlms/includes/class.llms.quiz.php on line 663
    [14-Apr-2017 07:53:07 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:07 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:53:07 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:53:07 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:07 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:07 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:07 UTC] PHP   6. LLMS_Quiz::answer_question() /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php:875
    [14-Apr-2017 07:53:08 UTC] 16
    [14-Apr-2017 07:53:08 UTC] The post 1716 was accessed by a user with the ID 4
    [14-Apr-2017 07:53:08 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:53:08 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:08 UTC] PHP   1. {main}() /app/public/index.php:0
    [14-Apr-2017 07:53:08 UTC] PHP   2. require() /app/public/index.php:17
    [14-Apr-2017 07:53:08 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:19
    [14-Apr-2017 07:53:08 UTC] PHP   4. include() /app/public/wp-includes/template-loader.php:74
    [14-Apr-2017 07:53:08 UTC] PHP   5. get_template_part() /app/public/wp-content/themes/twentyseventeen/single.php:23
    [14-Apr-2017 07:53:08 UTC] PHP   6. locate_template() /app/public/wp-includes/general-template.php:167
    [14-Apr-2017 07:53:08 UTC] PHP   7. load_template() /app/public/wp-includes/template.php:643
    [14-Apr-2017 07:53:08 UTC] PHP   8. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:53:08 UTC] PHP   9. the_content() /app/public/wp-content/themes/twentyseventeen/template-parts/post/content.php:54
    [14-Apr-2017 07:53:08 UTC] PHP  10. apply_filters() /app/public/wp-includes/post-template.php:240
    [14-Apr-2017 07:53:08 UTC] PHP  11. WP_Hook->apply_filters() /app/public/wp-includes/plugin.php:203
    [14-Apr-2017 07:53:08 UTC] PHP  12. llms_get_post_content() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:08 UTC] PHP  13. load_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:158
    [14-Apr-2017 07:53:08 UTC] PHP  14. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:53:08 UTC] PHP  15. do_action() /app/public/wp-content/plugins/lifterlms/templates/content-single-quiz-before.php:12
    [14-Apr-2017 07:53:08 UTC] PHP  16. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:08 UTC] PHP  17. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:08 UTC] PHP  18. lifterlms_template_quiz_summary() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:08 UTC] PHP  19. llms_get_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:754
    [14-Apr-2017 07:53:08 UTC] PHP  20. include() /app/public/wp-content/plugins/lifterlms/includes/functions/llms.functions.template.php:82
    [14-Apr-2017 07:53:08 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:53:08 UTC] PHP Stack trace:
    [14-Apr-2017 07:53:08 UTC] PHP   1. {main}() /app/public/index.php:0
    [14-Apr-2017 07:53:08 UTC] PHP   2. require() /app/public/index.php:17
    [14-Apr-2017 07:53:08 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:19
    [14-Apr-2017 07:53:08 UTC] PHP   4. include() /app/public/wp-includes/template-loader.php:74
    [14-Apr-2017 07:53:08 UTC] PHP   5. get_template_part() /app/public/wp-content/themes/twentyseventeen/single.php:23
    [14-Apr-2017 07:53:08 UTC] PHP   6. locate_template() /app/public/wp-includes/general-template.php:167
    [14-Apr-2017 07:53:08 UTC] PHP   7. load_template() /app/public/wp-includes/template.php:643
    [14-Apr-2017 07:53:08 UTC] PHP   8. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:53:08 UTC] PHP   9. the_content() /app/public/wp-content/themes/twentyseventeen/template-parts/post/content.php:54
    [14-Apr-2017 07:53:08 UTC] PHP  10. apply_filters() /app/public/wp-includes/post-template.php:240
    [14-Apr-2017 07:53:08 UTC] PHP  11. WP_Hook->apply_filters() /app/public/wp-includes/plugin.php:203
    [14-Apr-2017 07:53:08 UTC] PHP  12. llms_get_post_content() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:08 UTC] PHP  13. load_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:158
    [14-Apr-2017 07:53:08 UTC] PHP  14. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:53:08 UTC] PHP  15. do_action() /app/public/wp-content/plugins/lifterlms/templates/content-single-quiz-before.php:12
    [14-Apr-2017 07:53:08 UTC] PHP  16. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:53:08 UTC] PHP  17. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:53:08 UTC] PHP  18. lifterlms_template_quiz_summary() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:53:08 UTC] PHP  19. llms_get_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:754
    [14-Apr-2017 07:53:08 UTC] PHP  20. include() /app/public/wp-content/plugins/lifterlms/includes/functions/llms.functions.template.php:82
    [14-Apr-2017 07:53:11 UTC] 16
    [14-Apr-2017 07:58:18 UTC] 16
    [14-Apr-2017 07:58:18 UTC] 16
    [14-Apr-2017 07:58:18 UTC] PHP Notice:  Undefined index: question_id in /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php on line 869
    [14-Apr-2017 07:58:18 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:18 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:58:18 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:58:18 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:18 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:18 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:18 UTC] PHP Notice:  Undefined index: question_type in /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php on line 870
    [14-Apr-2017 07:58:18 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:18 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:58:18 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:58:18 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:18 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:18 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:18 UTC] PHP Warning:  Invalid argument supplied for foreach() in /app/public/wp-content/plugins/lifterlms/includes/class.llms.quiz.php on line 614
    [14-Apr-2017 07:58:18 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:18 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:58:18 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:58:18 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:18 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:18 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:18 UTC] PHP   6. LLMS_Quiz::answer_question() /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php:875
    [14-Apr-2017 07:58:18 UTC] PHP Notice:  Undefined variable: current_question in /app/public/wp-content/plugins/lifterlms/includes/class.llms.quiz.php on line 663
    [14-Apr-2017 07:58:18 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:18 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:58:18 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:58:18 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:18 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:18 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:18 UTC] PHP   6. LLMS_Quiz::answer_question() /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php:875
    [14-Apr-2017 07:58:18 UTC] PHP Notice:  Undefined variable: current_question in /app/public/wp-content/plugins/lifterlms/includes/class.llms.quiz.php on line 663
    [14-Apr-2017 07:58:18 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:18 UTC] PHP   1. {main}() /app/public/wp-admin/admin-ajax.php:0
    [14-Apr-2017 07:58:18 UTC] PHP   2. do_action() /app/public/wp-admin/admin-ajax.php:91
    [14-Apr-2017 07:58:18 UTC] PHP   3. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:18 UTC] PHP   4. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:18 UTC] PHP   5. LLMS_AJAX->complete_quiz() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:18 UTC] PHP   6. LLMS_Quiz::answer_question() /app/public/wp-content/plugins/lifterlms/includes/class.llms.ajax.php:875
    [14-Apr-2017 07:58:18 UTC] 16
    [14-Apr-2017 07:58:18 UTC] The post 1716 was accessed by a user with the ID 4
    [14-Apr-2017 07:58:19 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:58:19 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:19 UTC] PHP   1. {main}() /app/public/index.php:0
    [14-Apr-2017 07:58:19 UTC] PHP   2. require() /app/public/index.php:17
    [14-Apr-2017 07:58:19 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:19
    [14-Apr-2017 07:58:19 UTC] PHP   4. include() /app/public/wp-includes/template-loader.php:74
    [14-Apr-2017 07:58:19 UTC] PHP   5. get_template_part() /app/public/wp-content/themes/twentyseventeen/single.php:23
    [14-Apr-2017 07:58:19 UTC] PHP   6. locate_template() /app/public/wp-includes/general-template.php:167
    [14-Apr-2017 07:58:19 UTC] PHP   7. load_template() /app/public/wp-includes/template.php:643
    [14-Apr-2017 07:58:19 UTC] PHP   8. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:58:19 UTC] PHP   9. the_content() /app/public/wp-content/themes/twentyseventeen/template-parts/post/content.php:54
    [14-Apr-2017 07:58:19 UTC] PHP  10. apply_filters() /app/public/wp-includes/post-template.php:240
    [14-Apr-2017 07:58:19 UTC] PHP  11. WP_Hook->apply_filters() /app/public/wp-includes/plugin.php:203
    [14-Apr-2017 07:58:19 UTC] PHP  12. llms_get_post_content() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:19 UTC] PHP  13. load_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:158
    [14-Apr-2017 07:58:19 UTC] PHP  14. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:58:19 UTC] PHP  15. do_action() /app/public/wp-content/plugins/lifterlms/templates/content-single-quiz-before.php:12
    [14-Apr-2017 07:58:19 UTC] PHP  16. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:19 UTC] PHP  17. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:19 UTC] PHP  18. lifterlms_template_quiz_summary() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:19 UTC] PHP  19. llms_get_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:754
    [14-Apr-2017 07:58:19 UTC] PHP  20. include() /app/public/wp-content/plugins/lifterlms/includes/functions/llms.functions.template.php:82
    [14-Apr-2017 07:58:19 UTC] PHP Notice:  Undefined index:  in /app/public/wp-content/plugins/lifterlms/templates/quiz/summary.php on line 38
    [14-Apr-2017 07:58:19 UTC] PHP Stack trace:
    [14-Apr-2017 07:58:19 UTC] PHP   1. {main}() /app/public/index.php:0
    [14-Apr-2017 07:58:19 UTC] PHP   2. require() /app/public/index.php:17
    [14-Apr-2017 07:58:19 UTC] PHP   3. require_once() /app/public/wp-blog-header.php:19
    [14-Apr-2017 07:58:19 UTC] PHP   4. include() /app/public/wp-includes/template-loader.php:74
    [14-Apr-2017 07:58:19 UTC] PHP   5. get_template_part() /app/public/wp-content/themes/twentyseventeen/single.php:23
    [14-Apr-2017 07:58:19 UTC] PHP   6. locate_template() /app/public/wp-includes/general-template.php:167
    [14-Apr-2017 07:58:19 UTC] PHP   7. load_template() /app/public/wp-includes/template.php:643
    [14-Apr-2017 07:58:19 UTC] PHP   8. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:58:19 UTC] PHP   9. the_content() /app/public/wp-content/themes/twentyseventeen/template-parts/post/content.php:54
    [14-Apr-2017 07:58:19 UTC] PHP  10. apply_filters() /app/public/wp-includes/post-template.php:240
    [14-Apr-2017 07:58:19 UTC] PHP  11. WP_Hook->apply_filters() /app/public/wp-includes/plugin.php:203
    [14-Apr-2017 07:58:19 UTC] PHP  12. llms_get_post_content() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:19 UTC] PHP  13. load_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:158
    [14-Apr-2017 07:58:19 UTC] PHP  14. require() /app/public/wp-includes/template.php:686
    [14-Apr-2017 07:58:19 UTC] PHP  15. do_action() /app/public/wp-content/plugins/lifterlms/templates/content-single-quiz-before.php:12
    [14-Apr-2017 07:58:19 UTC] PHP  16. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
    [14-Apr-2017 07:58:19 UTC] PHP  17. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:323
    [14-Apr-2017 07:58:19 UTC] PHP  18. lifterlms_template_quiz_summary() /app/public/wp-includes/class-wp-hook.php:298
    [14-Apr-2017 07:58:19 UTC] PHP  19. llms_get_template() /app/public/wp-content/plugins/lifterlms/includes/llms.template.functions.php:754
    [14-Apr-2017 07:58:19 UTC] PHP  20. include() /app/public/wp-content/plugins/lifterlms/includes/functions/llms.functions.template.php:82
    [14-Apr-2017 07:59:05 UTC] 16
    [14-Apr-2017 07:59:05 UTC] 16
    [14-Apr-2017 07:59:08 UTC] 16
    [14-Apr-2017 07:59:08 UTC] 16
    [14-Apr-2017 07:59:13 UTC] 16
    [14-Apr-2017 07:59:13 UTC] 16
    [14-Apr-2017 07:59:31 UTC] 16
    [14-Apr-2017 08:00:42 UTC] 16
    [14-Apr-2017 08:00:42 UTC] 16
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • @droidism,

    Thanks for the logs, the undefined index is noted and will be resolved in our next release. If WP_DEBUG_DISPLAY is on this could be causing the quizzes to not load. I wont be able to get a release built and tested to fix this today but you can simply disable debug display and your issues should go away (leave WP_DEBUG_LOG on so you can see errors and notices in the logs while testing and whatnot).

    Bug report has been filed here: https://github.com/gocodebox/lifterlms/issues/311

    I’ll report back here as soon as we get this fixed.

    Also, sorry…

    Thread Starter Droidism

    (@droidism)

    @thomasplevy

    Thanks for explaining, it’s helpful to know what might cause this issue and I will turn WP_DEBUG_DISPLAY off for now.

    And please let me stress the point that there is absolutely no need to apologize (to me or anyone) for developing a great and free product for people to use, that might have the odd bug here and there.

    Your support and continued development in taking care of these is what is important here, and you take care of that in a great way!

    Have a great day and thanks again!

    • This reply was modified 7 years, 7 months ago by Droidism. Reason: Added whitespace after the comma
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quiz not loading for non-admin user’ is closed to new replies.