Critical error in Learnpress courses archive
-
Howdy Learnpressers!
On a Learnpress 3.2.7.2 site under WordPress 5.4.1 the courses archive page does not display correctly and I get a fatal error in the PHP log:
PHP Fatal error: Uncaught Error: Call to a member function get_image() on bool in /data/web/e10095/html/wordpress/wp-content/plugins/learnpress/templates/loop/course/thumbnail.php:22
Stack trace:
#0 /data/web/e10095/html/wordpress/wp-content/plugins/learnpress/inc/lp-template-functions.php(2509): include()
#1 /data/web/e10095/html/wordpress/wp-content/plugins/learnpress/inc/lp-template-functions.php(1356): learn_press_get_template(‘loop/course/thu…’)
#2 /data/web/e10095/html/wordpress/wp-includes/class-wp-hook.php(287): learn_press_courses_loop_item_thumbnail(”)
#3 /data/web/e10095/html/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#4 /data/web/e10095/html/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#5 /data/web/e10095/html/wordpress/wp-content/plugins/learnpress/templates/content-course.php(37): do_action(‘learn-press/cou…’)
#6 /data/web/e10095/html/wordpress/wp-includes/template.php(725): require(‘/data/web/e1009…’)
#7 /data/web/e10095/html/wordpress/wp-content/p in /data/web/e10095/html/wordpress/wp-content/plugins/learnpress/templates/loop/course/thumbnail.php on line 22It seems that for some reason that the Learnpress code tries to access a get_image() method on a bool data type.
Thanks for any hints!
The page I need help with: [log in to see the link]
- The topic ‘Critical error in Learnpress courses archive’ is closed to new replies.