Title: Using default theme and no plugins &#8211; still PHP warnings
Last modified: May 26, 2023

---

# Using default theme and no plugins – still PHP warnings

 *  Resolved [TWD](https://wordpress.org/support/users/twd/)
 * (@twd)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/using-default-theme-and-no-plugins-still-php-warnings/)
 * When I try to access the Customizer on the front end I get these PHP warning 
   messages at the top of the page.
   Warning: Attempt to read property “post_status”
   on null in /home/customer/www/my-web-site/public_html/wp-admin/includes/template.
   php on line 2288
 * Warning: Attempt to read property “ID” on null in /home/customer/www/my-web-site/
   public_html/wp-admin/includes/template.php on line 2306
 * Warning: Attempt to read property “post_status” on null in /home/customer/www/
   my-web-site/public_html/wp-admin/includes/template.php on line 2310
 * Warning: Attempt to read property “ID” on null in /home/customer/www/my-web-site/
   public_html/wp-admin/includes/template.php on line 2315
   I have deactivated ALL
   plugins.I have switched to a default theme.I have reinstalled the latest version
   of WP.Nothing seems to work.For now, I’ve simply suppressed the warnings through
   wp-config.php but obviously, that’s not ideal. There must be something not quite
   right.I created the site on Local by Flywheel then migrated it to SiteGround.
   The local dev site doesn’t show these warnings.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Nastia Kolomoytseva](https://wordpress.org/support/users/nastaia/)
 * (@nastaia)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/using-default-theme-and-no-plugins-still-php-warnings/#post-16770488)
 * Hello [@twd](https://wordpress.org/support/users/twd/) 
   I’ve found a thread with
   a similar issue [here](https://wordpress.org/support/topic/warning-attempt-to-read-property-post_status-on-null-in/#post-16249650).
   Can you try removing the menu and see if the error will go away?Cheers,Nastia
 *  Thread Starter [TWD](https://wordpress.org/support/users/twd/)
 * (@twd)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/using-default-theme-and-no-plugins-still-php-warnings/#post-16773930)
 * Yes! One of my menus had some menu items marked red (invalid).
   I deleted that
   menu because I wasn’t actually using it anymore.That seems to have fixed the 
   problem.Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using default theme and no plugins – still PHP warnings’ is closed to
new replies.

## Tags

 * [php warnings](https://wordpress.org/support/topic-tag/php-warnings/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [TWD](https://wordpress.org/support/users/twd/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/using-default-theme-and-no-plugins-still-php-warnings/#post-16773930)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
