BuddyDev

Search

[Resolved] Error / Fix line 196 bp-profile-visibility.php

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #9536

    I was getting 2 errors when using another plugin with your BP Profile Visibility… the file bp-profile-visibility.php fired off on profile page Illegal string offset ‘id’ and Uninitialized string offset: 0 so I added $btn['id'] = ' '; on line (195 right before line 196) in bp-profile-visibility.php file. This seems to have fixed the problem. Is this okay to do?

  • Keymaster
    (BuddyDev Team)
    Posts: 21466
    Brajesh Singh on #9538

    Hi,
    Yes, That is a notice since we did an unset on Id. We could not notice it due to the version of php it seems. Your change is fine. It wills top the notice and we will have it in our next update(in next 2-3 days). It is not an error, so you can ignore it for now.

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #9543

    Thanks… probably noticed it since I use define( 'WP_DEBUG_LOG', true ); else define('WP_DEBUG', true);

    Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 21466
    Brajesh Singh on #9545

    It’s good to have the WP_DEBUG enabled on development sites, It helps catch a lot of future issues:)

You must be logged in to reply to this topic.

This topic is: resolved