Support » Plugin: LH Private BuddyPress » Undefined offset: 0 in call $bp->action_variables[0] == ‘feed’

  • ResolvedPlugin Contributor jonathanmoorebcsorg

    (@jonathanmoorebcsorg)


    Notice: Undefined offset: 0 in /wp-content/plugins/lh-private-buddypress/lh-private-buddypress.php on line 25
    from:
    $bp->action_variables[0] == ‘feed’

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    this can be fixed by wrapping this logic in a

        if (is_buddypress()){
        }

    and returning false if not.

    Or even:

      if ( function_exists('bp_is_active') ) {
        if (is_buddypress()){

    in case BuddyPress was deactivated.

    That way, public bbPress forum or other non-BuddyPress page may be allowed.

    Plugin Contributor jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    testing ok so far

    Plugin Author shawfactor

    (@shawfactor)

    These changes should also be included in the latest version 1.03.

    Thankyou for your suggestions, all good improvements, do you wish to be co-author of this plugin?

    I would be happy to add you

    Pete

    • This reply was modified 3 years, 9 months ago by shawfactor.
    Plugin Contributor jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    I’m sure I don’t deserve the honour of being a co-author, up to you.
    Yes the changes seem ok so far

    • This reply was modified 3 years, 9 months ago by jonathanmoorebcsorg. Reason: forgot to mark as resolved
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined offset: 0 in call $bp->action_variables[0] == ‘feed’’ is closed to new replies.