Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#60073 closed defect (bug) (duplicate)

WordPress core function causing persistent deprecated warning when WP_DEBUG enabled

Reported by: earthman100's profile earthman100 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.4.2
Component: Database Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Upgrading to PHP 8.1 surfaces this

Deprecated: mysqli_real_connect(): Passing null to parameter #5 ($database) of type ?string is deprecated in /code/wp-includes/class-wpdb.php on line 1987 
Deprecated: mysqli_real_connect(): Passing null to parameter #7 ($socket) of type ?string is deprecated in /code/wp-includes/class-wpdb.php on line 1987

From what I can see, Parameter # 5 and # 7 are both explicitly set as null directly in the core file - see attached:

https://lh3.googleusercontent.com/u/0/drive-viewer/AEYmBYRKKP24W5t79A5UlR9Fdju0R8Kvs0__nZW1WeH8D0w9f7aRpDH6DnU2m3M3qaEc_Fn_gY5lvA54RGw5OcMDR2-2Mjtp9Q=w1536-h2048

Change History (3)

#1 @earthman100
12 months ago

This is on Pantheon hosting.

#2 in reply to: ↑ description @SergeyBiryukov
12 months ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, thanks for the ticket!

This was previously raised in #56836 and #54877:

#3 @earthman100
12 months ago

Not using LiteSpeed directly

Looks like Pantheon has flagged it as related to New Relic monitors.

Thanks, it's awaiting a patch.

Note: See TracTickets for help on using tickets.