projectnami icon indicating copy to clipboard operation
projectnami copied to clipboard

Warning: Undefined array key class-wp-site-health.php

Open SiberMedya opened this issue 1 year ago • 2 comments

Warning: Undefined array key "wp_comments" in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Attempt to read property "rows" on null in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Undefined array key "wp_options" in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Attempt to read property "rows" on null in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Undefined array key "wp_posts" in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Attempt to read property "rows" on null in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Undefined array key "wp_terms" in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Attempt to read property "rows" on null in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Undefined array key "wp_users" in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

Warning: Attempt to read property "rows" on null in E:\Inetpub\vhosts\siberreklam.com\httpdocs\wp-admin\includes\class-wp-site-health.php on line 3587

SiberMedya avatar Jan 30 '25 13:01 SiberMedya

$threshold_map = array( 'comments_count' => $wpdb->comments, 'options_count' => $wpdb->options, 'posts_count' => $wpdb->posts, 'terms_count' => $wpdb->terms, 'users_count' => $wpdb->users, );

	foreach ( $threshold_map as $threshold => $table ) {
		if ( $thresholds[ $threshold ] <= $results[ $table ]->rows ) {
			return true;
		}

SiberMedya avatar Feb 24 '25 10:02 SiberMedya

$threshold_map = array( 'comments_count' => $wpdb->comments, 'options_count' => $wpdb->options, 'posts_count' => $wpdb->posts, 'terms_count' => $wpdb->terms, 'users_count' => $wpdb->users, );

	foreach ( $threshold_map as $threshold => $table ) {
		if ( $thresholds[ $threshold ] <= $results[ $table ]->rows ) {
			return true;
		}

Yes, I encountered the same issue. The errors also appeared on the Site Health page. I suspect that the new WordPress update caused this. By the way, have you resolved it now?

Sky-Sparkle avatar May 18 '25 13:05 Sky-Sparkle