Skip to:
Content

BuddyPress.org

Opened 6 months ago

Closed 6 months ago

#9028 closed defect (bug) (fixed)

BP Core generates "Warning: Undefined array key "REMOTE_ADDR"" when run in WP Playground environment

Reported by: slaffik's profile slaFFik Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc:

Description

Warning: Undefined array key "REMOTE_ADDR" in /wordpress/wp-content/plugins/buddypress/bp-core/bp-core-moderation.php on line 333

I caught it by installing BuddyPress using this link: https://playground.wordpress.net/?plugin=buddypress
And then enabling all of its features, installing BP Default Data, and running BP Default Data to generate everything.

Change History (3)

#1 @imath
6 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 12.0.0

Thanks for your report, I haven’t tested playground yet! I’ll do asap.

This ticket was mentioned in PR #195 on buddypress/buddypress by @imath.


6 months ago
#2

  • Keywords has-patch added; needs-patch removed

Avoid a PHP warning in bp_core_current_user_ip()

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9028

#3 @imath
6 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13649:

Avoid a PHP warning in bp_core_current_user_ip()

Props slaFFik

Fixes #9028
See #9002
Closes https://github.com/buddypress/buddypress/pull/195

Note: See TracTickets for help on using tickets.