Conflict With Translatepress and post_status draft
-
Hello Dear
We just install the plugin, but if we nav for any page in the site, we get debug warnings:PHP Warning: Attempt to read property “post_status” on null in /home/***/public_html/3nitystore.com/wp-admin/includes/template.php on line 2298
if ( ‘private’ === $post->post_status && ‘private’ !== $post_status ) {
$post_states[‘private’] = _x( ‘Private’, ‘post status’ );
}
and also:
PHP Warning: Attempt to read property “ID” on null in /home/***/public_html/3nitystore.com/wp-admin/includes/template.php on line 2325if ( ‘page’ === get_option( ‘show_on_front’ ) ) {
if ( (int) get_option( ‘page_on_front’ ) === $post->ID ) {
$post_states[‘page_on_front’] = _x( ‘Front Page’, ‘page label’ );
}if ( (int) get_option( 'page_for_posts' ) === $post->ID ) { $post_states['page_for_posts'] = _x( 'Posts Page', 'page label' ); } }
If we deactive the plugin, the the issue disapear.
We have woocommerce installed, and we have some products, posts, pages in ‘draaft’ status, also a couple of page protected with ‘DIGITS: Forced Login Page Lock Addon’.
Can you please help us?
- You must be logged in to reply to this topic.