• Resolved sharklet

    (@sharklet)


    Hello!
    I’m having an issue with LearnPress. When I click on the course to go start it, it gives me a page that says “There has been a critical error on this website”.

    Using LearnPress v4.1.0 and wordpress & themes are all up to date.

    I ran debug in WordPress and got the following:

    “Fatal error: Uncaught Error: Call to undefined method WPBMap::addAllMappedShortcodes() in /home/tx3mg91uceg5/public_html/wp-content/plugins/learnpress/inc/abstracts/abstract-post-data.php:144 Stack trace: #0 /home/tx3mg91uceg5/public_html/wp-content/plugins/learnpress/inc/lp-template-functions.php(56): LP_Abstract_Post_Data->get_content() #1 /home/tx3mg91uceg5/public_html/wp-content/plugins/learnpress/templates/single-course/tabs/tabs.php(14): learn_press_get_course_tabs() #2 /home/tx3mg91uceg5/public_html/wp-content/plugins/learnpress/inc/lp-template-functions.php(930): include(‘/home/tx3mg91uc…’) #3 /home/tx3mg91uceg5/public_html/wp-content/plugins/learnpress/inc/templates/abstract-template.php(257): learn_press_get_template(‘single-course/t…’, Array) #4 /home/tx3mg91uceg5/public_html/wp-includes/class-wp-hook.php(292): LP_Template_Callback->callback(”) #5 /home/tx3mg91uceg5/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #6 /home/tx3mg91uceg5/public_html/wp-includes/plugin.php(4 in /home/tx3mg91uceg5/public_html/wp-content/plugins/learnpress/inc/abstracts/abstract-post-data.php on line 144

    There has been a critical error on this website.”

    Can anyone help fix this?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Please go to this part in LearnPress \inc\abstracts\abstract-post-data.php line 145
    change current code to this code

    
    // Fix style, js if content is WP Bakery
    if ( class_exists( 'WPBMap' ) && method_exists( 'WPBMap', 'addAllMappedShortcodes' ) ) {	WPBMap::addAllMappedShortcodes();
    }
    

    We will have an update soon to fix it.

    Thread Starter sharklet

    (@sharklet)

    Thank you so much! That did the trick.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Learnpress critical error’ is closed to new replies.