• Resolved fredperes

    (@fredperes)


    I inserted the [wss_sensei_lesson_button] shortcode and got this error:

    Notice: Trying to get property ‘lesson’ of non-object in /wp-content/plugins/woo-sensei-shortcodes/shortcodes.php on line 195

    Any tips?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPExperts.io

    (@wpexpertsio)

    Please use the correct lesson_id as a shortcode attribute, where you want to display button. make sure you have the shortcode in this format
    ‘[wss_sensei_lesson_button lesson_id=7709]’

    Thread Starter fredperes

    (@fredperes)

    I;ve got this error:

    Notice: Trying to get property ‘lesson’ of non-object in /wp-content/plugins/woo-sensei-shortcodes/shortcodes.php on line 195

    Fatal error: Uncaught Error: Call to a member function lesson_quizzes() on null in /wp-content/plugins/woo-sensei-shortcodes/shortcodes.php:195 Stack trace: #0 /wp-includes/shortcodes.php(319): lesson_button(Array, ”, ‘wss_sensei_less…’) #1 [internal function]: do_shortcode_tag(Array) #2 /wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(wss_se…’, ‘do_shortcode_ta…’, ‘[wss_sensei_les…’) #3 /wp-content/themes/Divi/includes/builder/class-et-builder-element.php(845): do_shortcode(‘[wss_sensei_les…’) #4 /wp-includes/shortcodes.php(319): ET_Builder_Element->_shortcode_callback(Array, ‘[wss_sensei_les…’, ‘et_pb_code’) #5 [internal function]: do_shortcode_tag(Array) #6 /wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[? in /wp-content/plugins/woo-sensei-shortcodes/shortcodes.php on line 195

    Plugin Author WPExperts.io

    (@wpexpertsio)

    Hi fredperes!

    we have fixed this issue in our new version. Please update your plugin to see the changes. if you have any problem feel free to ask.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in [wss_sensei_lesson_button]’ is closed to new replies.