Title: WordPress Error Messages In Customizer
Last modified: April 26, 2024

---

# WordPress Error Messages In Customizer

 *  [unboxedgems](https://wordpress.org/support/users/unboxedgems/)
 * (@unboxedgems)
 * [2 years ago](https://wordpress.org/support/topic/wordpress-error-messages-in-customizer/)
 *     ```wp-block-code
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2298
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2302
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2308
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2312
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2316
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2320
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2325
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2329
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2334
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2298
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2302
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2308
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2312
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2316
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2320
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2325
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2329
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2334
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2298
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2302
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2308
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2312
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2316
   
       Warning: Attempt to read property "post_status" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2320
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2325
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2329
   
       Warning: Attempt to read property "ID" on null in /home/unboxedg/public_html/wp-admin/includes/template.php on line 2334
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-error-messages-in-customizer%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Alvind](https://wordpress.org/support/users/alvindcaesar/)
 * (@alvindcaesar)
 * [2 years ago](https://wordpress.org/support/topic/wordpress-error-messages-in-customizer/#post-17714744)
 * Hi there,
 * All those warnings were pointing to WordPress core files, not to the theme. Have
   you tried switching to WordPress’s default theme to see if the warnings persist?
 *  Thread Starter [unboxedgems](https://wordpress.org/support/users/unboxedgems/)
 * (@unboxedgems)
 * [2 years ago](https://wordpress.org/support/topic/wordpress-error-messages-in-customizer/#post-17716173)
 * Yes , I went into troubleshooting mode with all plugins and default wordpress
   theme. The error messages were still there. I suspect there might be a bad link
   somewhere but I’m not sure
 *  Thread Starter [unboxedgems](https://wordpress.org/support/users/unboxedgems/)
 * (@unboxedgems)
 * [2 years ago](https://wordpress.org/support/topic/wordpress-error-messages-in-customizer/#post-17716181)
 * Now most of the pages on my site are just blacked out. I suspect it happened 
   from one bad page/link now its spread to other pages
 *  [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [2 years ago](https://wordpress.org/support/topic/wordpress-error-messages-in-customizer/#post-17716653)
 * Hi there,
 * As the issue is not from the theme, the best we can do give you some debug tips.
   If that doesn’t work, you will need to reach out to WP’s support for this. Thanks
   for your understanding!
 * These warnings indicate that WordPress is trying to access properties of a post
   object that doesn’t exist. This could be caused by various issues, such as incorrect
   usage of template tags or attempting to access post properties in contexts where
   they are not available.
 * Here are a few steps you can take to debug and fix these warnings:
    1. **Check Template Files**: Review the template files where these warnings occur(
       template.php in this case) and ensure that the template tags are being used 
       correctly. Make sure that you’re passing valid post objects to functions that
       expect them.
    2. **Plugin/Theme Conflicts**: Deactivate plugins and switch to a default theme(
       like Twenty Twenty-One) to see if the issue persists. If the warnings disappear,
       reactivate your plugins and theme one by one to identify the culprit.
    3. **Check Query Results**: If you’re running custom queries, ensure that they 
       are returning valid post objects. If the query doesn’t return any results, you
       might end up trying to access properties of a null object.
    4. **Error Reporting**: Enable debugging in WordPress to get more detailed error
       messages. You can do this by setting `WP_DEBUG` to `true` in your wp-config.
       php file.
    5. **Inspect Hooks**: If these warnings occur in the context of hooks (like action
       or filter hooks), double-check the callback functions hooked to those actions
       or filters. Make sure they are handling data correctly.
    6. **Update WordPress**: Ensure that your WordPress installation, plugins, and 
       themes are up to date. Sometimes, these issues are resolved in newer versions.
 * Hope above info will be helpful!

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

The topic ‘WordPress Error Messages In Customizer’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [ying](https://wordpress.org/support/users/yingscarlett/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/wordpress-error-messages-in-customizer/#post-17716653)
 * Status: not resolved