Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP Remove Profile Links: How to address PHP Strict Standards Error


  • lisaleague
    Participant

    @lisaleague

    Hi, I’m getting these errors for BP Remove Profile Links plugin and would like to know how to address, thanks

    [Sat Aug 06 11:09:33.881878 2016] [:error] [pid 8371] [client 103.232.127.8:36983] PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method bphelp_remove_profile_links::remove_xprofile_links() should not be called statically in /nas/content/live/sitename/wp-includes/plugin.php on line 525
    [Sat Aug 06 11:09:36.259489 2016] [:error] [pid 19510] [client 103.232.127.8:36999] PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method bphelp_remove_profile_links::remove_xprofile_links() should not be called statically in /nas/content/live/sitename/wp-includes/plugin.php on line 525, referer: http://sitename.wpengine.com/members/sitename/achievements/

    1. Which version of WordPress are you running?
    4.5.3

    2. Did you install WordPress as a directory or subdomain install?
    directory
    3. If a directory install, is it in root or in a subdirectory?
    root
    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    4.5.2
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Y
    6. Which version of BP are you running?
    2.6.2
    7. Did you upgraded from a previous version of BP? If so, from which version?
    No
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    BadgeOS
    Version 1.4.8.2 | By LearningTimes | View details

    BadgeOS Community Add-On
    Version 1.2.3 | By Credly | View details

    bbPress
    Version 2.5.10 | By The bbPress Community | View details

    Boss for Sensei
    Version 1.0.9 | By BuddyBoss | Visit plugin site

    BP Remove Profile Links
    Version 1.2 | By @bphelp | Visit plugin site

    BuddyBoss One Click Installer
    Version 1.0.3 | By BuddyBoss | Visit plugin site

    BuddyPress
    Version 2.6.2 | By The BuddyPress Community | View details

    BuddyPress for Sensei
    Version 1.1.1 | By BuddyBoss | View details

    BuddyPress Global Search
    Version 1.1.4 | By BuddyBoss | View details

    PHP Compatibility Checker
    Version 1.1.2 | By WP Engine | View details

    Sensei
    Version 1.9.6 | By WooThemes | View details

    Sensei Course Participants
    Version 1.1.3 | By WooThemes | View details

    Sensei Media Attachments
    Version 1.0.0 | By WooThemes | View details

    Templatera
    Version 1.1.11 | By WPBakery | Visit plugin site

    WooCommerce
    Version 2.6.4 | By WooThemes | View details | Docs | API Docs | Premium Support

    WooCommerce Helper
    Version 1.7.0 | By WooCommerce | Visit plugin site

    WPBakery Visual Composer
    Version 4.12 | By Michael M – WPBakery.com | Visit plugin site

    9. Are you using the standard WordPress theme or customized theme?
    Boss.Version: 2.2.2
    By BuddyBoss.com

    10. Have you modified the core files in any way?
    no

    11. Do you have any custom functions in bp-custom.php?
    no

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    Version 2.5.10

    13. Please provide a list of any errors in your server’s log files.
    [Sat Aug 06 11:09:33.881878 2016] [:error] [pid 8371] [client 103.232.127.8:36983] PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method bphelp_remove_profile_links::remove_xprofile_links() should not be called statically in /nas/content/live/sitename/wp-includes/plugin.php on line 525
    [Sat Aug 06 11:09:36.259489 2016] [:error] [pid 19510] [client 103.232.127.8:36999] PHP Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method bphelp_remove_profile_links::remove_xprofile_links() should not be called statically in /nas/content/live/sitename/wp-includes/plugin.php on line 525, referer: http://sitename.wpengine.com/members/sitename/achievements/

    14. Which company provides your hosting?
    WPEngine

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

  • shanebp
    Moderator

    @shanebp

    You don’t need that plugin.

    Instead, try this in your theme/functions.php or in bp_custom.php

    function lisa_remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action('bp_setup_globals', 'lisa_remove_xprofile_links');

    lisaleague
    Participant

    @lisaleague

    Thanks @shanebp will give it a try.

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