[wp-trac] [WordPress Trac] #59113: Call to undefined function str_contains() in wp-includes/load.php:1618

WordPress Trac noreply at wordpress.org
Thu Aug 17 10:41:44 UTC 2023


#59113: Call to undefined function str_contains() in wp-includes/load.php:1618
-------------------------------+------------------------------
 Reporter:  lernerconsult      |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Bootstrap/Load     |     Version:  6.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 emmaedeh]:
 > But now I have this new error -> (Fatal error: Cannot redeclare
 _wp_can_use_pcre_u() (previously declared in
 /home/healqils/splitsecondsermons.com/wp-includes/compat.php:28) in
 /home/healqils/splitsecondsermons.com/wp-includes/compat.php on line 28)

 I'm sorry to hear you are having issues with your website. It looks like
 the error is caused by an incomplete upgrade.

 It appears that the `wp-settings.php` file was not updated during the
 upgrade to 6.3, and the `compat.php` file is now loaded twice. It should
 be removed from [source:tags/6.2.2/src/wp-settings.php?marks=107#L105 line
 107] where it was previously included.

 Please note that there were
 [https://core.trac.wordpress.org/changeset?old_path=tags%2F6.2.2%2Fsrc
 %2Fwp-settings.php&new=&new_path=tags%2F6.3%2Fsrc%2Fwp-settings.php other
 changes] to the `wp-settings.php` file in 6.3 as well, so I would
 recommend downloading the [https://wordpress.org/download/ latest version
 of WordPress] and replacing the file with a fresh copy, that should fix
 the issue.

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


More information about the wp-trac mailing list