[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 04:11:46 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 emmaedeh):
Thanks for the response @SergeyBiryukov
I am currently having this same issue, as I try to recover a backup of my
WordPress site.
I have added "require ABSPATH . WPINC . '/compat.php';" in line 34 as you
advised and it fixed that. 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)
Any Help?
Replying to [comment:1 SergeyBiryukov]:
> Hi there, welcome to WordPress Trac! Thanks for the report.
>
> The line number in the error message points to the
`wp_convert_hr_to_bytes()` function. In all the scenarios I can think of,
by the time this function runs, the polyfills from `compat.php` should
already be loaded.
>
> 1. Could you provide the steps to reproduce the issue on a clean
install?
> 2. Could you confirm that your `wp-settings.php` file has `compat.php`
on [source:tags/6.3/src/wp-settings.php?marks=34#L32 line 34]?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59113#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list