• Hi There,
    We are getting a critical error on lesson view page after the last update it seems. We had a similar issue about a year ago:
    https://wordpress.org/support/topic/fatal-error-student-cannot-see-lesson-contents/
    and you have fixed it by adding some code.

    So, how to fix it this time?

    Latest versions of WordPress and LearnPress are installed.

    [19-May-2022 22:27:40 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_id() on bool in /public_html/wp-content/plugins/learnpress/templates/single-course/content-item.php:17
    Stack trace:
    #0 /public_html/wp-content/plugins/learnpress/inc/lp-template-functions.php(908): include()
    #1 /public_html/wp-content/plugins/learnpress/inc/templates/class-lp-template-course.php(659): learn_press_get_template('single-course/c...')
    #2 /public_html/wp-content/plugins/learnpress/templates/single-course/content-item/popup-content.php(15): LP_Template_Course->course_content_item()
    #3 /public_html/wp-content/plugins/learnpress/inc/lp-template-functions.php(908): include('...')
    #4 /public_html/wp-content/plugins/learnpress/inc/templates/class-lp-template-course.php(590): learn_press_get_template('single-course/c...')
    #5 /public_html/wp-includes/class-wp-hook.php(307): LP_Template_Course->popup_content('')
    #6 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #7 /public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #8 /public_html/wp-content/plugins/learnpress/templates/content-single-item.php(47): do_action('learn-press/sin...')
    #9 /public_html/wp-includes/template-loader.php(106): include('...')
    #10 /public_html/wp-blog-header.php(19): require_once('...')
    #11 /public_html/index.php(17): require('...')
    #12 {main}
      thrown in /public_html/wp-content/plugins/learnpress/templates/single-course/content-item.php on line 17

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author ThimPress

    (@thimpress)

    Hi neko_in_space,

    We’ll upload beta version fix that for you try.

    Thanks.

    Thread Starter neko_in_space

    (@olgri)

    OK, Thanks! Where will you upload it to? Will you post a link here?

    Thread Starter neko_in_space

    (@olgri)

    Can I download an older version somewhere while you are fixing this?

    Plugin Support brianvu-tp

    (@briantp)

    Hi,

    You can go here: https://wordpress.org/plugins/learnpress/advanced -> scroll down to the end then download the version beta.

    Thanks

    Thread Starter neko_in_space

    (@olgri)

    There is no beta version there. Only previous versions.

    Plugin Author ThimPress

    (@thimpress)

    Hi neko_in_space,

    You can download beta version on here

    Please try and reply for us if has any errors.

    Thanks.

    Thread Starter neko_in_space

    (@olgri)

    Unfortunately, the error remains. The update did not fix it.

    Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Can you try to re-install it again? We updated the beta version. Hope the issue will be resolved.

    Thanks

    Thread Starter neko_in_space

    (@olgri)

    There is a different critical error now:

    
    [24-May-2022 22:57:17 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_next_item() on bool in /public_html/wp-content/plugins/learnpress/inc/templates/class-lp-template-course.php:601
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(307): LP_Template_Course->popup_footer_nav('')
    #1 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #2 /public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #3 /public_html/wp-content/plugins/learnpress/templates/single-course/content-item/popup-footer.php(19): do_action('learn-press/pop...')
    #4 /public_html/wp-content/plugins/learnpress/inc/lp-template-functions.php(908): include('...')
    #5 /public_html/wp-content/plugins/learnpress/inc/templates/class-lp-template-course.php(594): learn_press_get_template('single-course/c...')
    #6 /public_html/wp-includes/class-wp-hook.php(307): LP_Template_Course->popup_footer('')
    #7 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #8 /public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #9 /public_html/wp-content/plugins/learnpress/templates/content-single-item.php(47): do_action('learn-press/sin...')
    #10 /public_html/wp-includes/template-loader.php(106): include('...')
    #11 /public_html/wp-blog-header.php(19): require_once('...')
    #12 /public_html/index.php(17): require('...')
    #13 {main}
      thrown in /public_html/wp-content/plugins/learnpress/inc/templates/class-lp-template-course.php on line 601
    
    Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Do you custom our plugin in your theme? Most of our customers don’t give the error above. Our developer updates the beta again, please try re-install it again.

    Thanks

    Thread Starter neko_in_space

    (@olgri)

    No, no plugin customisation except for some minor css in a child theme.
    It is working now. Thanks! 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Critical error – student cannot see lesson contents, again’ is closed to new replies.