Trying to get property 'post_status' of non-object in XStore customize.php

This topic has 7 replies, 3 voices, and was last updated 3 years, 1 months ago ago by Olga Barlow

  • Avatar: mjervin
    mjervin
    Participant
    February 24, 2021 at 19:57

    In the XStore customization screen, I see series of errors related to finding, what looks like, missing default posts. Can you please suggest a way to resolve this?

    Notice: Trying to get property ‘post_status’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2181 Notice: Trying to get property ‘post_status’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2185 Notice: Trying to get property ‘post_status’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2191 Notice: Trying to get property ‘post_status’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2195 Notice: Trying to get property ‘ID’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2199 Notice: Trying to get property ‘post_status’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2203 Notice: Trying to get property ‘ID’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2208 Notice: Trying to get property ‘ID’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2212 Notice: Trying to get property ‘ID’ of non-object in /chroot/home/a2041fc1/63d1309b10.nxcli.net/html/wp-admin/includes/template.php on line 2217

    6 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 25, 2021 at 10:17

    Hi

    You need to update WordPress Core Files and Then disable 3-rd party plugins and activate parent theme to check errors.

    Update the theme and Core plugin to new versions – https://xstore.helpscoutdocs.com/article/63-theme-update https://xstore.helpscoutdocs.com/article/37-plugins-update

    Avatar: mjervin
    mjervin
    Participant
    February 25, 2021 at 13:03

    With All plugins disabled and the parent XStore theme enabled, I still get the same message.

    Please note that I was already on the latest version of WordPress, WooCommerce and XStore plugin (including the theme).

    Michael

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 25, 2021 at 17:53

    Hello,

    Could you, please, go to Appearance > Themes > install and activate Storefront theme. Check if you have the mentioned notice with the Storefront theme. Let me know about the results.

    Regards

    Avatar: mjervin
    mjervin
    Participant
    February 28, 2021 at 16:39

    In a development environment, I installed the “Default” demo theme and the error goes away. It seems have something to do with default posts being missing. However, I can’t figure out how to restore the individual posts that would cause this error to disappear. Do you have a list of those that are required?

    I’ve added many of them back, but that doesn’t seem to have resolved it.

    Avatar: mjervin
    mjervin
    Participant
    March 1, 2021 at 00:09

    I finally was able to solve this. I reran the import of the default theme into my theme and child checking ‘pages’ (and nothing else), but unchecking homepage and widgets. It restored whatever page was missing and by backing up my child theme and not overwriting the home page it appears to have kept my site in tact.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 1, 2021 at 13:17

    Hello,

    Glad to hear that you sorted out. Do you need any other help from our side?

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.