[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 Aug 6 13:15:56 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 visual.destini):

 I'm also getting this error - it only seems to be applying to my IP
 address. The biggest change is having set up Cloudflare a few months ago
 but this is the first time the error has come up, same line:



 {{{
                 // Partially anonymize the IP by reducing it to the
 corresponding network ID.
                 if ( function_exists( 'inet_pton' ) && function_exists(
 'inet_ntop' ) ) {
 8234                    $ip_addr = inet_ntop( inet_pton( $ip_addr ) &
 inet_pton( $netmask ) );
                         if ( false === $ip_addr ) {
                                 return '::';
 }}}


 I am able to get to some elements of the dashboard, but immediately after
 logging in I'm taken to a fatal error page with the same stack trace as
 OP.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63437#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list