• Resolved michaelm89

    (@michaelm89)


    Hey,
    I have site error when learndash is disabled on my buddyboss homepage, could you help me?

    Fatal error: Uncaught Error: Class 'LearnDash_Settings_Section' not found
    in /home/renomuj/domains/designhacker.pl/public_html/wp-content/plugins/buddyboss-platform/bp-integrations/learndash/bp-learndash-functions.php on line 481
    
    Call stack:
    
    bb_learndash_profile_courses_slug()
    wp-content/plugins/buddyboss-platform/bp-integrations/learndash/bp-learndash-filters.php:369
    bb_support_learndash_course_permalink()
    wp-includes/class-wp-hook.php:303
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:327
    WP_Hook::do_action()
    wp-includes/plugin.php:470
    do_action()
    wp-content/plugins/buddyboss-platform/bp-core/bp-core-catchuri.php:404
    bp_core_set_uri_globals()
    wp-includes/class-wp-hook.php:303
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:327
    WP_Hook::do_action()
    wp-includes/plugin.php:470
    do_action()
    wp-content/plugins/buddyboss-platform/bp-core/bp-core-dependency.php:266
    bp_init()
    wp-includes/class-wp-hook.php:303
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:327
    WP_Hook::do_action()
    wp-includes/plugin.php:470
    do_action()
    wp-settings.php:578
    require_once()
    wp-config.php:94
    require_once()
    wp-load.php:50
    require_once()
    wp-blog-header.php:13
    require()
    index.php:17
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @michaelm89

    this happens because the plugin buddyboss-platform calls the class “LearnDash_Settings_Section”, but that class is defined in the plugin Learndash.

    When a plugin calls a function or a class that is defined in another plugin, it should first check if that function or class exists.
    In this case they had to write something that looks like:

    if( class_exists( ‘LearnDash_Settings_Section’ ) ){
    //Their code here
    }

    But they have probably written something that looks like

    if Learndash is active then run the code… (the wrong syntax, just to show what I mean)

    If on a page you disable Learndash using Freesoul Deactivate Plugins, because they improperly check if Learndash is active, in their code it looks like Learndash is active, but it isn’t on that page. If this is the problem you should solve it by updating version 1.8.8.7.3 and adding this line of code in wp-config.php:

    define( 'FDP_REMOVE_FILTERS_BEFORE_FIRST_PLUGIN',false );

    Add the line above before the comment /* That’s all, stop editing! Happy blogging. */

    To update to 1.8.8.7.3 do the following:
    – Download the zip from https://downloads.wp.xz.cn/plugin/freesoul-deactivate-plugins.1.8.8.7.3.zip
    – Go to the plugins page
    – Click on add new
    – Click on the upload plugin
    – Confirm you want the new version

    After updating the plugin check if it has also updated the mu-plugin going to the plugins page => Must-use. You should see version 1.8.8.7.3 also there.

    Please, let me know if it works.

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @michaelm89

    if you update to 1.8.8.7.4 you don’t need to add any line of code in wp-config.php. You find it here: https://downloads.wp.xz.cn/plugin/freesoul-deactivate-plugins.1.8.8.7.4.zip

    Please, let me know if it solves the issue.

    Thread Starter michaelm89

    (@michaelm89)

    the update seems to have fixed the problem.
    thank you for fast help! 🙂

    Plugin Author Jose Mortellaro

    (@giuse)

    Many thanks to you @michaelm89 for discovering this issue!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘buddyboss + learndash error’ is closed to new replies.