Support » Fixing WordPress » Trying to get property ‘post_type’ of non-object

  • Resolved Naomi

    (@nton22)


    Hi everyone! My site is getting the White Screen of Death after deploying it from staging (on siteground) to live recently and found this error and am unsure how I can resolve this. 

    Notice: Trying to get property ‘post_type’ of non-object in /home/customer/www/xxxxxxxx.com/public_html/wp-includes/post-template.php on line 666

    class=”-template -template-elementor_canvas single elementor-default elementor-template-canvas elementor-kit-10 elementor-page elementor-page-682 elementor-maintenance-mode”>

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.