Hi there, could you please let me know what version of WordPress you’re running?
As you can see in this chart, WordPress 6.1.x (but not prior versions) has beta support for PHP 8.2, although not all themes and plugins are compatible. If you are running 6.1.1 but still getting the critical error, please let me know, and I’ll look into this further. Thanks!
@o3internet Hey again, aside from the information about your WP version, another thing you can do is check your site’s error logs. If you turn on debugging, you can then check the site’s debug log to see what specific fatal error is causing that critical-error message. More info here about how to do that, if you haven’t before:
I am running WP 6.1.1.
Here is the debug.log:
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 63
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 73
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 89
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 102
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 111
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
[08-Feb-2023 21:38:24 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 63
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 73
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 89
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 102
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Cookie/Jar.php on line 111
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /home/websitename/public_html/wp-includes/Requests/Transport/cURL.php on line 345
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/websitename/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /home/websitename/public_html/wp-includes/Requests/Transport/cURL.php on line 345
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /home/websitename/public_html/wp-includes/Requests/Transport/cURL.php on line 345
[08-Feb-2023 21:38:25 UTC] PHP Deprecated: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /home/websitename/public_html/wp-includes/Requests/Transport/cURL.php on line 345
[08-Feb-2023 21:39:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/websitename/public_html/wp-includes/class-wpdb.php:1807
Stack trace:
#0 /home/websitename/public_html/wp-includes/class-wpdb.php(734): wpdb->db_connect()
#1 /home/websitename/public_html/wp-includes/load.php(562): wpdb->__construct()
#2 /home/websitename/public_html/wp-settings.php(124): require_wp_db()
#3 /home/websitename/public_html/wp-config.php(108): require_once('/home/websitename...')
#4 /home/websitename/public_html/wp-load.php(50): require_once('/home/websitename...')
#5 /home/websitename/public_html/wp-blog-header.php(13): require_once('/home/websitename...')
#6 /home/websitename/public_html/index.php(17): require('/home/websitename...')
#7 {main}
thrown in /home/websitename/public_html/wp-includes/class-wpdb.php on line 1807
[08-Feb-2023 21:39:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/websitename/public_html/wp-includes/class-wpdb.php:1807
Stack trace:
#0 /home/websitename/public_html/wp-includes/class-wpdb.php(734): wpdb->db_connect()
#1 /home/websitename/public_html/wp-includes/load.php(562): wpdb->__construct()
#2 /home/websitename/public_html/wp-settings.php(124): require_wp_db()
#3 /home/websitename/public_html/wp-config.php(108): require_once('/home/websitename...')
#4 /home/websitename/public_html/wp-load.php(50): require_once('/home/websitename...')
#5 /home/websitename/public_html/wp-blog-header.php(13): require_once('/home/websitename...')
#6 /home/websitename/public_html/index.php(17): require('/home/websitename...')
#7 {main}
thrown in /home/websitename/public_html/wp-includes/class-wpdb.php on line 1807
Thanks for providing the log so speedily, @o3internet.
I asked one of the core developers to take a look, and this is what they said:
The deprecations are known. The Requests library is updated in WP 6.2 which eliminated those deprecations.
The fatal error is likely due to their host not supporting
mysqli, causing WP to usemysqlextension. WP 3.9 switched to usingmysqliextension.Here’s the Trac ticket you can point them to https://core.trac.projectdmc.org/ticket/51988.
There’s an active discussion on improving messaging and potentially checking for the extension.
I hope this is helpful.
Just to clarify, this doesn’t look like something theme-specific, it’s core WP. You’ll see that there are no themes referenced in the error logs.
Let me know if you have any other questions around this.
Thanks! So it sounds like this is an issue that will be resolved in WP 6.2. Awesome 🙂
Marking this as resolved.
