Title: Fatal error on enable plugin!
Last modified: November 4, 2021

---

# Fatal error on enable plugin!

 *  Resolved [mungbean](https://wordpress.org/support/users/mungbean/)
 * (@mungbean)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/)
 * I’m getting a fatal error when trying to enable the plugin (5.4.3). I have both
   BuddyPress and BuddyBoss, but only BuddyBoss is enabled.
 * Error message is:
 *     ```
       Fatal error: Cannot redeclare bps_buddypress() (previously declared in /var/www/wptbox/wp-content/plugins/buddyboss-platform/bp-core/bp-core-profile-search.php:32) in /var/www/wptbox/wp-content/plugins/bp-profile-search/bps-main.php on line 26
       ```
   
 * Please advise

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

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15035764)
 * Hi mungbean,
 * Before enabling the standard BP Profile Search, try deactivating the basic version
   shipped with BuddyBoss.
 * Go to _BuddyBoss -> Settings -> Profiles_ and untick the checkbox: _Profile Search–
   Enable advanced profile search on the members directory_
 *  Thread Starter [mungbean](https://wordpress.org/support/users/mungbean/)
 * (@mungbean)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15049067)
 * Thanks!
 * I tried what you suggested and after turning off BB profile search, I tried to
   activate your plugin and it appears to have caused a “there has been a critical
   error on your website”
 * I’m not sure if it’s coincidence, but any ideas?
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15050322)
 * It would be useful to see the specific error message.
 * You could find it in your error logs, or you can see errors displayed in real
   time on screen if you temporarily enable WP_DEBUG in your _wp-config.php_ file.
 *  Thread Starter [mungbean](https://wordpress.org/support/users/mungbean/)
 * (@mungbean)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15052986)
 * Sure thing. It does look like a conflict between having BuddyBoss active (with
   profile search unchecked) and then attempting to activate BP Profile Search.
 * `Fatal error: Cannot redeclare bps_get_request() (previously declared in /var/
   www/wptbox/wp-content/plugins/bp-profile-search/bps-search.php:3) in /var/www/
   wptbox/wp-content/plugins/buddyboss-platform/bp-search/bp-search-functions.php
   on line 600`
    -  This reply was modified 4 years, 7 months ago by [mungbean](https://wordpress.org/support/users/mungbean/).
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15054307)
 * Hello mungbean,
 * It appears that you are using _GEO my WordPress_ too.
 * The problem is that, while BuddyBoss is compatible separately with _BP Profile
   Search_ and _GEO my WordPress_, it’s not compatible with both when they are both
   activated.
 * Can you confirm that the problem goes away if you deactivate _GEO my WordPress_?`
 *  Thread Starter [mungbean](https://wordpress.org/support/users/mungbean/)
 * (@mungbean)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15060403)
 * Yes, it seems to have worked with GEO disabled. Is this a BuddyBoss issue or 
   a BP Profile Search issue?
 * Is there a way for your plugin to check for these plugin conflicts when attempting
   to activate the plugin to prevent the critical error from occurring?
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15061567)
 * In this case the conflict is caused by BuddyBoss:
 * > in /var/www/wptbox/wp-content/plugins/buddyboss-platform/bp-search/bp-search-
   > functions.php on line 600
 * BuddyBoss duplicates a _BP Profile Search_ function when _GEO my WordPress_ is
   active, but it should do so when _GEO my WordPress_ is active **and** _BP Profile
   Search_ is not active.
 * There is no way _BP Profile Search_ or _GEO my WordPress_ could work around this
   issue.

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

The topic ‘Fatal error on enable plugin!’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 7 replies
 * 2 participants
 * Last reply from: [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-on-enable-plugin/#post-15061567)
 * Status: resolved