• hi,

    On my staging site I am getting this notice displayed as I have warnings turned on. Has anybody else encountered this and is there a recommended way of dealing with it?

    Notice: Undefined property: stdClass::$post_status in /home/xxxxxxx/public_html/tbs_staging/wp-admin/includes/misc.php on line 1433

    thanks

    • This topic was modified 4 years, 2 months ago by apg1912.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you try disabling all plugins and check if the error persists? Are you using XAMPP for your staging environment?

    Thread Starter apg1912

    (@apg1912)

    No, I haven’t disabled all plugins and so I guess that is my next step. Because it was a WP function in misc.php in wp-admin, I didn’t think other plugins could mess with that because it’s in the WP admin space.

    The function is ‘_wp_privacy_settings_filter_draft_page_titles( $title, $page )’

    and the statement causing the error begins:
    if ( ‘draft’ === $page->post_status && ‘privacy’ === get_current_screen()->id ) ….

    post_status is undeclared.

    The staging site is on a hosting company site served by Linux.

    • This reply was modified 4 years, 2 months ago by apg1912.
    • This reply was modified 4 years, 2 months ago by apg1912.

    I’m getting the same error on the same line. Did you ever find the source?

    Thread Starter apg1912

    (@apg1912)

    No. as it was only happening on my staging site when I was in admin mode opening up pages, I let it go because I had too many other things to do. It’s not a function I’d expect plugins to interfere with and I have quite a few and so I’ve not had the chance yet yo start de-activating them to see if there is a chance that lone of them is responsible.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined Property’ is closed to new replies.