Did you try disabling all plugins and check if the error persists? Are you using XAMPP for your staging environment?
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 5 years, 3 months ago by
apg1912.
-
This reply was modified 5 years, 3 months ago by
apg1912.
I’m getting the same error on the same line. Did you ever find the source?
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.