Skip to:
Content

BuddyPress.org

Opened 5 weeks ago

Last modified 5 weeks ago

#9276 assigned defect (bug)

error when using $bp->displayed_user->domain

Reported by: locker17's profile locker17 Owned by: espellcaste's profile espellcaste
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 14.3.2
Component: Documentation Keywords:
Cc:

Description

Using $bp->loggedin_user->domain like described here:
<a href="https://codex.buddypress.org/developer/the-bp-global/">https://codex.buddypress.org/developer/the-bp-global/</a>
throws an error on my page:
Undefined property: stdClass::$domain

So I am using the function bp_displayed_user_domain() instead which works. I am running PHP 8.2 if that matters.

If $bp->displayed_user->domain is deprecated or whatever can someone please update the docs?
Thanks!

Reason: Tried to use $bp->displayed_user->domain when testing this script here from shanep to add a new tab:
https://gist.github.com/shanebp/5d3d2f298727a0a036e5

Change History (2)

This ticket was mentioned in Slack in #buddypress by espellcaste. View the logs.


5 weeks ago

#2 @espellcaste
5 weeks ago

  • Owner changed from imath to espellcaste
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.