Fehlermeldung/Warnung in der template.php + RSS feed funktioniert nicht mehr – page 2

[ad_1]

im customizer wird angezeigt:

Warning: Attempt to read property „post_status“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2288

Warning: Attempt to read property „post_status“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2292

Warning: Attempt to read property „post_status“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2298

Warning: Attempt to read property „post_status“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2302

Warning: Attempt to read property „ID“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2306

Warning: Attempt to read property „post_status“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2310

Warning: Attempt to read property „ID“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2315

Warning: Attempt to read property „ID“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2319

Warning: Attempt to read property „ID“ on null in /home/www/mg-heute.de/website/wp-admin/includes/template.php on line 2324

in der datei ist m.E. alles ok

if ( 'private' === $post->post_status && 'private' !== $post_status ) {
		$post_states['private'] = _x( 'Private', 'post status' );
	}

	if ( 'draft' === $post->post_status ) {
		if ( get_post_meta( $post->ID, '_customize_changeset_uuid', true ) ) {
			$post_states[] = __( 'Customization Draft' );
		} elseif ( 'draft' !== $post_status ) {
			$post_states['draft'] = _x( 'Draft', 'post status' );
		}
	} elseif ( 'trash' === $post->post_status && get_post_meta( $post->ID, '_customize_changeset_uuid', true ) ) {
		$post_states[] = _x( 'Customization Draft', 'post status' );
	}

	if ( 'pending' === $post->post_status && 'pending' !== $post_status ) {
		$post_states['pending'] = _x( 'Pending', 'post status' );
	}

	if ( is_sticky( $post->ID ) ) {
		$post_states['sticky'] = _x( 'Sticky', 'post status' );
	}

	if ( 'future' === $post->post_status ) {
		$post_states['scheduled'] = _x( 'Scheduled', 'post status' );
	}

	if ( 'page' === get_option( 'show_on_front' ) ) {
		if ( (int) get_option( 'page_on_front' ) === $post->ID ) {
			$post_states['page_on_front'] = _x( 'Front Page', 'page label' );
		}

		if ( (int) get_option( 'page_for_posts' ) === $post->ID ) {
			$post_states['page_for_posts'] = _x( 'Posts Page', 'page label' );
		}
	}

	if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) {
		$post_states['page_for_privacy_policy'] = _x( 'Privacy Policy Page', 'page label' );
	}

wp 6.2.2

Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer