• Resolved TWD

    (@twd)


    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)
  • Hello @twd

    I’ve found a thread with a similar issue here. Can you try removing the menu and see if the error will go away?

    Cheers,
    Nastia

    Thread Starter TWD

    (@twd)

    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.