• Resolved mungbean

    (@mungbean)


    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

    (@dontdream)

    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

    (@mungbean)

    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

    (@dontdream)

    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

    (@mungbean)

    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.
    Plugin Author Andrea Tarantini

    (@dontdream)

    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

    (@mungbean)

    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

    (@dontdream)

    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.