[wp-trac] [WordPress Trac] #63437: [v6.8.1] Unsupported operand types: bool & string in wp_privacy_anonymize_ip on line 8234
WordPress Trac
noreply at wordpress.org
Wed May 14 12:29:15 UTC 2025
#63437: [v6.8.1] Unsupported operand types: bool & string in
wp_privacy_anonymize_ip on line 8234
----------------------------+--------------------------------
Reporter: codesdnc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 6.8
Severity: major | Resolution:
Keywords: | Focuses: php-compatibility
----------------------------+--------------------------------
Comment (by nickbrazilian):
Hey look at what i got, i managed to replicate!
In the proxy i put
X-Forwarded-For: 2001:db8::1:2:3:4:5:6:7
in the get request for the wp-admin
GET http://localhost:8889/wp-admin/ HTTP/1.1
When the admin panel loads, it shows this:
Fatal error: Uncaught TypeError: Unsupported operand types: bool & string
in /var/www/src/wp-includes/functions.php:8265 Stack trace: #0
/var/www/src/wp-admin/includes/class-wp-community-events.php(273):
wp_privacy_anonymize_ip('2001:db8::1:2:3...', true) #1 /var/www/src/wp-
includes/script-loader.php(2031):
WP_Community_Events::get_unsafe_client_ip() #2 /var/www/src/wp-includes
/class-wp-hook.php(324): wp_localize_community_events('') #3 /var/www/src
/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #4
/var/www/src/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5
/var/www/src/wp-admin/admin-header.php(144):
do_action('admin_print_scr...') #6 /var/www/src/wp-admin/_index.php(137):
require_once('/var/www/src/wp...') #7 /var/www/src/wp-admin/index.php(10):
require_once('/var/www/src/wp...') #8 {main} thrown in /var/www/src/wp-
includes/functions.php on line 8265
There has been a critical error on this website. Please check your site
admin email inbox for instructions. If you continue to have problems,
please try the support forums.
Learn more about troubleshooting WordPress.
So yeah we crashed the wp-admin panel by having a broken ip.
This could be something, i will proceed to try to crash this with an real
ipv6 address, or maybe it is just nothing...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63437#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list