Skip to:
Content
Pages
Categories
Search
Top
Bottom

group access after upgrade 2.9.3 to 3.1.0


  • reivilob
    Participant

    @reivilob

    Hi
    I have a site:
    dev.linkedbyroad.com (dev version of http://www.linkedbyroad.com)

    Version 4.9.6
    Buddypress 2.9.3

    after upgrade to
    Buddypress 3.1.0

    the groups are not accessible with error:
    Fatal error: Cannot redeclare bp_groups_group_access_protection() (previously declared in /srv/vhosts/linkedbyroad-dev/htdocs/wp-content/plugins/buddypress/bp-groups/actions/access.php:16) in /srv/vhosts/linkedbyroad-dev/htdocs/wp-content/plugins/buddypress/bp-groups/actions/access.php on line 85

    downgrade to Buddypress 2.9.3 works again fine …

    Any idea ?

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

  • Venutius
    Moderator

    @venutius

    I’ve looked at this file and the copy I’ve got does not redeclare bp_groups_group_access_protection on line 85 so I’m thinking that something may have got corrupt during your upgrade. I think in the first instance I’d try uninstalling BP and reinstalling it to see if you can fix the error that way.


    reivilob
    Participant

    @reivilob

    I already do this and no changes…
    I also compare my BP files to https://plugins.svn.wordpress.org/buddypress/tags
    exactly the same


    Venutius
    Moderator

    @venutius

    Did you get a chance to inspect your copy of access.php to see if the function is redclared on line 85?


    reivilob
    Participant

    @reivilob

    Sorry to not understand your question …

    my file htdocs/wp-content/plugins/buddypress/bp-groups/actions/access.php is exactly the same as in the distrib and line 85 is
    “}”
    just before the
    add_action( 'bp_actions', 'bp_groups_group_access_protection' );

    if i do in all my site a:
    grep -R "bp_groups_group_access_protection" *

    give me only :

    wp-content/plugins/buddypress/bp-groups/actions/access.php:function bp_groups_group_access_protection() {
    wp-content/plugins/buddypress/bp-groups/actions/access.php:add_action( 'bp_actions', 'bp_groups_group_access_protection' );
    wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php:    * Filter the access check in bp_groups_group_access_protection() for this extension.

    Venutius
    Moderator

    @venutius

    Yes so for some reason your particular install is seeing this function as being declared twice, yet that second reported line of code does not exist in the actual code.

    I know you think this has been caused by the upgrade to 3.1, which may prove to be the case, however I think we need to try and rule out other potential causes. Have you tried deactivating your other plugins to see if BP 3.1 works on it’s own?


    reivilob
    Participant

    @reivilob

    YES !
    Paid Membership Pro Customizations Add on seems responsible
    I will investigate

    Thanks a lot for this idea
    Best regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar