• Resolved Taner Temel

    (@clu55ter)


    Hello,

    Just started receiving a critical error when students enrol on a new course, the the plugin has been working well until now. I have created a video of the error linked below.

    Video of the error:
    https://bolton365net-my.sharepoint.com/:v:/g/personal/websitecontent_bolton365_net/EU7Xj4xTXvZNiUizgGdwb1MBs1zY8_cAk72yBzZ2xYBi1A?e=mivYlO

    My setup details are:
    WordPress 5.6
    PHP 7.4
    Theme Ocean WP 2.0.2
    LearnPress Version 3.2.8.5

    Error Logs
    [Thu Jan 21 09:02:54 2021] [error] [client 212.121.202.251:0] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_item_id() on string in /home/sites/some-directory/learninghub/wp-content/plugins/learnpress/inc/emails/types/class-lp-email-type-enrolled-course.php:81\nStack trace:\n#0 /home/sites/some-directory/learninghub/wp-content/plugins/learnpress/inc/emails/class-lp-email-enrolled-course-instructor.php(69): LP_Email_Type_Enrolled_Course->get_object()\n#1 /home/sites/some-directory/learninghub/wp-content/plugins/learnpress/inc/emails/types/class-lp-email-type-enrolled-course.php(168): LP_Email_Enrolled_Course_Instructor->trigger(‘2609’, 326, ‘2609’)\n#2 /home/sites/some-directory/learninghub/wp-includes/class-wp-hook.php(287): LP_Email_Type_Enrolled_Course->auto_enroll_trigger(3095, ‘pending’)\n#3 /home/sites/some-directory/learninghub/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)\n#4 /ho

    Your help will be very much appreciated.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @clu55ter

    Please try to re-install LearnPress or you can go to FTP find folder LearnPress plugin with this path wp-content\plugins\learnpress -> edit file function.php https://prnt.sc/xczazn downgrade the version to 3.2.8.4 -> Save
    Then go to your dashboard -> Plugin -> re-update LearnPress

    Thread Starter Taner Temel

    (@clu55ter)

    Hi @augustus09

    Thank you for the reply, I will try this and reply to the thread with the outcome.

    Thanks again!

    Thread Starter Taner Temel

    (@clu55ter)

    Hi @augustus09

    Solved, after reinstalling the plugin the issue seems to have been resolved.

    Thanks for you help!

    Hi, I am piggibacking here, since I have a very similar problem. If a user tries to register, I get a critical error. I have reinstalled as per @augustus09 ‘s instructions, but it hasn’t fixed the error. It says:

    “Fatal error: Uncaught Error: Unknown named parameter $reg_username in /WP_path/wp-content/plugins/learnpress/inc/class-lp-forms-handler.php:180 Stack trace: #0 /WP_path/wp-content/plugins/learnpress/inc/class-lp-forms-handler.php(308): LP_Forms_Handler::process_register() #1 /WP_path/wp-includes/class-wp-hook.php(287): LP_Forms_Handler::init() #2 /WP_path/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #3 /WP_path/wp-includes/plugin.php(484): WP_Hook->do_action() #4 /WP_path/wp-settings.php(557): do_action() #5 /WP_path/wp-config.php(195): require_once(‘…’) #6 /WP_path/wp-load.php(37): require_once(‘…’) #7 /WP_path/wp-blog-header.php(13): require_once(‘…’) #8 /WP_path/index.php(17): require(‘…’) #9 {main} thrown in /WP_path/wp-content/plugins/learnpress/inc/class-lp-forms-handler.php on line 180”

    Can anyone help please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical Error when Enrolling on course’ is closed to new replies.