BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Advanced: Page load speed, plugin organizer, BuddyPress for LearnDash trouble
Tagged: optimization
- This topic has 3 replies, 2 contibutors, and was last updated 8 years, 8 months ago by Michael.
Question
March 25, 2016 at 9:19 am #65163@mln83I 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 LearnDashAre there any other plugin requirements for BuddyPress for LearnDash?
Best regards,
MichaelAnswers
March 25, 2016 at 9:28 am #65167@mln83Having 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?
March 25, 2016 at 9:40 am #65168@
AnonymousHi @mln83
BuddyPress for LearnDash should be loaded last.
RegardsMarch 25, 2016 at 9:47 am #65172@mln83Hi @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
- The question ‘Advanced: Page load speed, plugin organizer, BuddyPress for LearnDash trouble’ is closed to new replies.