• 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 2325

    if ( ‘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?

    • This topic was modified 4 days, 3 hours ago by abacoin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter abacoin

    (@abacoin)

    BY THE WAY… only hapen if we active a child-theme, and in child-theme we remove all custome code, and also we get the warnings.

    Plugin Support Andrei

    (@andrei202)

    Hello there,

    Thanks for reaching out to us!

    Would you mind sharing with us the entire error so we can determine what is generating this?

    I would also recommend a compatibility test (ideally in a staging environment):

    ​​Briefly disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, as it probably will, enable everything one by one, checking each time to see when the problem returns.

    Please let us know when you find the conflict so that we can take a look and see what we can do about it.

    Thread Starter abacoin

    (@abacoin)

    Hello Andrei
    Thank you for your time and support.

    If we change to Twenty Twenty or any theme, including My Theme, then, there is not issue. Is only when we active the child-theme.

    In console there is not errors.

    And we delete all in debug, and reaload one page, and this is all errors displaying in debug:



    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2298 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2302
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2308 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2312
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2316 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2320
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2325 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2329
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2334 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2298
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2302 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2308
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2312 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2316
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "post_status" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2320 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2325
    [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2329 [05-Jul-2024 00:55:25 UTC] PHP Warning: Attempt to read property "ID" on null in /home//public_html/3nitystore.com/wp-admin/includes/template.php on line 2334



    And we don't know from where take more information to help to solve this issue.

    We apresiate any help to solve, we think this is a grate plugin.
    • This reply was modified 2 days ago by abacoin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.