Skip to:
Content
Pages
Categories
Search
Top
Bottom

Warning: Attempt to read property “id” on null […]bp-xprofile-template.php


  • Antipole
    Participant

    @antipole

    Hi… since updating to PHP8.3 I am seeing the warning
    Warning: Attempt to read property "id" on null in /home/[...]/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php on line 558

    Any idea what’s up, please?

    WP 6.7
    BP 14.2.1
    PHP 8.3

Viewing 1 replies (of 1 total)

  • emaralive
    Participant

    @emaralive

    Hi,

    It is difficult tell since the error message is missing backtrace info. Furthermore, I’m not getting that error with:

    • WP 6.7
    • BP 14.2.1
    • PHP 8.3

    Just for GP and long story short, I placed the function bp_get_the_profile_field_id(); in functions.php of a child theme in an attempt to replicate the error. Query Monitor revealed the error was caused by the aforementioned function, see the following screenshot:

    screenshot

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