• unboxedgems

    (@unboxedgems)


    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 to see the link]

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

    (@alvindcaesar)

    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

    (@unboxedgems)

    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

    (@unboxedgems)

    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

    (@yingscarlett)

    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.