• Hi there ,

    I get the below error in the profile page in progress page:

    Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, array given in /var/www/html/wp-content/plugins/learnpress/inc/user-item/class-lp-user-item-course.php:386 Stack trace: #0 /var/www/html/wp-content/plugins/learnpress/inc/user-item/class-lp-user-item-course.php(386): round(Array, 1) #1 /var/www/html/wp-content/themes/turitor/learnpress/profile/tabs/courses/purchased.php(57): LP_User_Item_Course->get_percent_result() #2 /var/www/html/wp-content/plugins/learnpress/inc/user/class-lp-profile.php(184): include('/var/www/html/w...') #3 /var/www/html/wp-includes/class-wp-hook.php(287): LP_Profile->output_section_content('purchased', Array, Object(LP_Profile)) #4 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #5 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #6 /var/www/html/wp-content/themes/turitor/learnpress/profile/content.php(52): do_action('learn-press/pro...', 'purchased', Array, Object(LP_Profile)) #7 /var/www/html/wp-content/plugins/learnpress/inc/lp-template-functions.php(2695): include('/var/www/html/w...') #8 /var/www/html/wp-content/plugins/learnpress/inc/lp-template-functions.php(551): learn_press_get_template('profile/content...', Array) #9 /var/www/html/wp-includes/class-wp-hook.php(287): learn_press_user_profile_content(Object(LP_Profile)) #10 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #11 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #12 /var/www/html/wp-content/themes/turitor/learnpress/profile/profile.php(45): do_action('learn-press/use...', Object(LP_Profile)) #13 /var/www/html/wp-content/plugins/learnpress/inc/lp-template-functions.php(2695): include('/var/www/html/w...') #14 /var/www/html/wp-content/plugins/learnpress/inc/shortcodes/class-lp-shortcode-profile.php(41): learn_press_get_template('profile/profile...') #15 /var/www/html/wp-content/plugins/learnpress/inc/class-lp-shortcodes.php(94): LP_Shortcode_Profile->output() #16 /var/www/html/wp-content/plugins/learnpress/inc/class-lp-shortcodes.php(154): LP_Shortcodes::wrapper_shortcode(Object(LP_Shortcode_Profile)) #17 /var/www/html/wp-includes/shortcodes.php(343): LP_Shortcodes::profile('', '', 'learn_press_pro...') #18 [internal function]: do_shortcode_tag(Array) #19 /var/www/html/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(learn_...', 'do_shortcode_ta...', '[learn_press_pr...') #20 /var/www/html/wp-content/plugins/elementor/includes/base/widget-base.php(391): do_shortcode('[learn_press_pr...') #21 /var/www/html/wp-content/plugins/elementor/includes/widgets/text-editor.php(397): Elementor\Widget_Base->parse_text_editor('[learn_press_pr...') #22 /var/www/html/wp-content/plugins/elementor/includes/base/controls-stack.php(1892): Elementor\Widget_Text_Editor->render() #23 /var/www/html/wp-content/plugins/elementor/includes/base/widget-base.php(549): Elementor\Controls_Stack->render_by_mode() #24 /var/www/html/wp-content/plugins/elementor/includes/base/widget-base.php(679): Elementor\Widget_Base->render_content() #25 /var/www/html/wp-content/plugins/elementor/includes/base/element-base.php(650): Elementor\Widget_Base->print_content() #26 /var/www/html/wp-content/plugins/elementor/includes/base/element-base.php(911): Elementor\Element_Base->print_element() #27 /var/www/html/wp-content/plugins/elementor/includes/base/element-base.php(650): Elementor\Element_Base->print_content() #28 /var/www/html/wp-content/plugins/elementor/includes/base/element-base.php(911): Elementor\Element_Base->print_element() #29 /var/www/html/wp-content/plugins/elementor/includes/base/element-base.php(650): Elementor\Element_Base->print_content() #30 /var/www/html/wp-content/plugins/elementor/core/base/document.php(1305): Elementor\Element_Base->print_element() #31 /var/www/html/wp-content/plugins/elementor/core/base/document.php(942): Elementor\Core\Base\Document->print_elements(Array) #32 /var/www/html/wp-content/plugins/elementor/includes/frontend.php(982): Elementor\Core\Base\Document->print_elements_with_wrapper(Array) #33 /var/www/html/wp-content/plugins/elementor/includes/frontend.php(896): Elementor\Frontend->get_builder_content(209) #34 /var/www/html/wp-includes/class-wp-hook.php(287): Elementor\Frontend->apply_builder_in_content('<p>[learn_press...') #35 /var/www/html/wp-includes/plugin.php(212): WP_Hook->apply_filters('<p>[learn_press...', Array) #36 /var/www/html/wp-includes/post-template.php(253): apply_filters('the_content', '<p>[learn_press...') #37 /var/www/html/wp-content/themes/turitor/template/full-width-template.php(16): the_content() #38 /var/www/html/wp-includes/template-loader.php(106): include('/var/www/html/w...') #39 /var/www/html/wp-blog-header.php(19): require_once('/var/www/html/w...') #40 /var/www/html/index.php(17): require('/var/www/html/w...') #41 {main} thrown in /var/www/html/wp-content/plugins/learnpress/inc/user-item/class-lp-user-item-course.php on line 386

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

    (@briantp)

    Please try switch to the default theme of WordPress to check, I think the theme you using have overwritten our template

Viewing 1 replies (of 1 total)

The topic ‘profile page error’ is closed to new replies.