PHP 8.0.17 TypeError
-
Hello,
After switching to PHP 8.0.17 from PHP 7.4 we noticed some errors in the log. One of them seems to be happening because of the query monitor plugin. When deactivating it – the error is no more.
WP version: 5.9.3
Hosting: Cloudways, Debianphp -v PHP 8.0.17 (cli) (built: Mar 20 2022 17:07:52) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.17, Copyright (c) Zend Technologies with Zend OPcache v8.0.17, Copyright (c), by Zend Technologies
TypeError: Uncaught exception 'TypeError' with message 'mysqli::real_connect(): Argument #5 ($port) must be of type ?int, string given' in /home/655799.cloudwaysapps.com/mqmfrzyxhx/public_html/wp-includes/wp-db.php:2162 in mysqli::real_connect called at ? (?) in mysqli_query called at /home/<apppath>/public_html/wp-includes/wp-db.php (2162) in wpdb::_do_query called at /home/<apppath>/public_html/wp-includes/wp-db.php (2051) in wpdb::query called at /home/<apppath>/public_html/wp-includes/wp-db.php (2829) in wpdb::get_results called at /home/<apppath>/public_html/wp-includes/class-wp-user-query.php (776) in WP_User_Query::query called at /home/<apppath>/public_html/wp-includes/class-wp-user-query.php (78) in WP_User_Query::__construct called at /home/<apppath>/public_html/wp-includes/sitemaps/providers/class-wp-sitemaps-users.php (64) in WP_Sitemaps_Users::get_url_list called at /home/<apppath>/public_html/wp-includes/sitemaps/class-wp-sitemaps.php (208) in WP_Sitemaps::render_sitemaps called at /home/<apppath>/public_html/wp-includes/class-wp-hook.php (307) in WP_Hook::apply_filters called at /home/<apppath>/public_html/wp-includes/class-wp-hook.php (331) in WP_Hook::do_action called at /home/<apppath>/public_html/wp-includes/plugin.php (474) in do_action called at /home/<apppath>/public_html/wp-includes/template-loader.php (13) in require_once called at /home/<apppath>/public_html/wp-blog-header.php (19) in require called at /home/<apppath>/public_html/index.php (17)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘PHP 8.0.17 TypeError’ is closed to new replies.