Title: Error when using BP in mu-plugins folder
Last modified: August 21, 2016

---

# Error when using BP in mu-plugins folder

 *  [alm](https://wordpress.org/support/users/alm-/)
 * (@alm-)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-using-bp-in-mu-plugins-folder/)
 * Hi,
 * This plugin causes warnings when using buddypress as a must-use plugin in the
   mu-plugins folder.
 *     ```
       PHP Warning:  fopen(/srv/www/projectname/wp-content/plugins/buddypress/bp-loader.php): failed to open stream: No such file or directory in /srv/www/projectname/wp-includes/functions.php on line 3508
       PHP Warning:  fread() expects parameter 1 to be resource, boolean given in /srv/www/projectname/wp-includes/functions.php on line 3511
       PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /srv/www/projectname/wp-includes/functions.php on line 3514
       ```
   
 * This is due to the path to buddypress being set to
    `WP_PLUGIN_DIR . '/buddypress/
   bp-loader.php'` on line 467 in the main plugin file.
 * Recommend using the constant BP_PLUGIN_DIR instead.
 * [http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/](http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [donmik](https://wordpress.org/support/users/atallos/)
 * (@atallos)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-using-bp-in-mu-plugins-folder/#post-4004480)
 * Hi, thanks for the advice. I can’t use BP_PLUGIN_DIR because when I want to use
   it the constant doesn’t exist yet, so it doesn’t work…

Viewing 1 replies (of 1 total)

The topic ‘Error when using BP in mu-plugins folder’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-xprofile-custom-fields-
   type.svg)
 * [Buddypress Xprofile Custom Fields Type](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-xprofile-custom-fields-type/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [donmik](https://wordpress.org/support/users/atallos/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/error-when-using-bp-in-mu-plugins-folder/#post-4004480)
 * Status: not resolved