Critical error – student cannot see lesson contents, again
-
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 17Thanks!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Critical error – student cannot see lesson contents, again’ is closed to new replies.