[Resolved] LearnDash Integration and Style Bug

Home Forums Support [Resolved] LearnDash Integration and Style Bug

Home Forums Support LearnDash Integration and Style Bug

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #2193354

    If I’m logged in, the course page is fine. When logged out, the Course page does not look as it should and there is a Critical Error message where the Course Content should be.
    Site shared in private info.
    Debug file shows GP errors.

    Customer Support

    Hi there,

    so the debug log is 90% related to the backup buddy plugin:

    PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/xxxx/xxxx/wp-content/plugins/backupbuddy/pluginbuddy/_pluginbuddy.php

    and probably 10% related to the learndash-retake-course plugin (?)

    PHP Notice: Trying to get property 'ID' of non-object in /home/xxxx/xxxx/wp-content/plugins/learndash-retake-course/src/Frontend/Frontend_Container.php on line 64

    Those are just notices, but is something that should be raised with the plugin authors.

    The actual error is this:

    [19-Apr-2022 10:38:10 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function learndash_get_course_price() in /home/xxxx/xxxx/wp-content/plugins/sfwd-lms/includes/settings/settings-billing-functions.php:294
    Stack trace:
    #0 /home/xxxx/xxxx/wp-content/themes/generatepress/learndash/course.php(111): learndash_payment_buttons(Object(WP_Post))
    #1 /home/xxxx/xxxx/wp-content/plugins/sfwd-lms/includes/class-ld-cpt-instance.php(454): include('/home/drdaycar/...')
    #2 /home/xxxx/xxxx/wp-includes/class-wp-hook.php(307): SFWD_CPT_Instance->template_content('<p><img class="...')
    #3 /home/xxxx/xxxx/wp-includes/plugin.php(189): WP_Hook->apply_filters('<p><img class="...', Array)
    #4 /home/xxxx/xxxx/wp-includes/post-template.php(253): apply_filters('the_content', '<img class=" wp...')
    #5 /home/xxxx/xxxx/wp-content/themes/generatepress/content-single.php(73): the_content()

    What i don’t get is this:


    Was the Theme edited as, to the best of my knowledge, there are no learndash templates in the theme ?


    I deactivated those to test and still same errors.

    Looking at error log, it could be that the errors are coming from the main Learndash core plugin and looks like that version was released not long ago. It’s possible that upgrading to this plugin’s latest version was the trigger for all of this. I’ll ask their support. Thanks for your help!

    Customer Support

    It could be the big difference between the original and updated versions.
    But i still find this: themes/generatepress/learndash/course.php peculiar.

    See what LearnDash say and let us know 🙂


    LD support replied that:
    The issue is with Legacy template set as Active template in LearnDash > Settings > General.

    You’ll have to switch the Active template to LearnDash 3.0.

    This is an unexpected behavior in the latest version of LearnDash when using the LearnDash Legacy theme. It’s been addressed and is fixed pending a release. The release will be out very soon.

    Appreciate your help, David!

    Customer Support

    Well thats great to hear they are working on it – thanks for reporting back, as i am sure it will come up for other users!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.