[wp-trac] [WordPress Trac] #58066: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

WordPress Trac noreply at wordpress.org
Wed Apr 5 09:06:40 UTC 2023


#58066: PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of
type array|string is deprecated
--------------------------+------------------------------
 Reporter:  ebai4         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  6.2
 Severity:  normal        |  Resolution:
 Keywords:  php81         |     Focuses:
--------------------------+------------------------------

Comment (by tijmensmit):

 I have the same issue with PHP v8.1.20

 It looks like you get this error ( at least in my case ) when no author is
 assigned to a post.

 I get this error on the post overview page for a store locator plugin in
 the author column. The post data is imported from a CSV file, so the post
 is not manually created.

 When I open a post where this error shows up and save it, so it's assigned
 to an author, the error is gone.

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


More information about the wp-trac mailing list