BuddyBoss Home – Web Support Forums Solutions Social Learner Advanced: Page load speed, plugin organizer, BuddyPress for LearnDash trouble

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #65163
    @mln83

    I am trying to optimize the delivery of site content even further using Plugin Organizer. Unfortunately BuddyPress for LearnDash 1.0.7 is causing trouble:

    Fatal error: Class 'BuddyPress_Learndash_Loader' not found in /public_html/wp-content/plugins/buddypress-learndash/buddypress-learndash.php on line 143

    I want to define the load order of individual plugins to see if I can knock off a few 100 ms. The site is now down to about 2 sec load time and 16 http requests. It is mainly of interest to mobile users now since I want to reduce the size of the above-the-fold content. 🙂

    Let me know what you think. To me the logical plugin load order should be something like:
    1. Plugin Organizer
    2. BuddyPress
    3. LearnDash LMS
    4. Boss for LearnDash
    5. BuddyPress for LearnDash

    Are there any other plugin requirements for BuddyPress for LearnDash?

    Best regards,
    Michael

    Answers

    #65167
    @mln83

    Having a look at the code now:

    /**
     * Must be called after hook 'plugins_loaded'
     * @return BuddyPress for LearnDash Plugin main controller object
     */
    function buddypress_learndash()
    {
      global $BUDDYPRESS_LEARNDASH, $bp;
      
      if ( $bp ) {
    	$BUDDYPRESS_LEARNDASH->bp_learndash_loader = BuddyPress_Learndash_Loader::instance();
      }
      
      if ( $bp && bp_is_active('groups') ) {
    	 $BUDDYPRESS_LEARNDASH->bp_learndash_groups = BuddyPress_Learndash_Groups::instance();
      }
    
      return $BUDDYPRESS_LEARNDASH;
    }

    I am wondering. Should BuddyPress for LearnDash be the last plugin to be loaded or?

    #65168

    Anonymous
    @

    Hi @mln83
    BuddyPress for LearnDash should be loaded last.
    Regards

    #65172
    @mln83

    Hi @vapvarun,

    Thanks. I tried that but BuddyPress for LearnDash always seems to cause a fatal error when changing the plugin load order.

    I have also asked the guys who created Plugin Organizer: https://wordpress.org/support/topic/load-order-always-trouble-with-one-plugin?replies=1. I’ll see what they have to say. Perhaps they have further insight into this 🙂

    Best regards,
    Michael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Advanced: Page load speed, plugin organizer, BuddyPress for LearnDash trouble’ is closed to new replies.