• Resolved r121

    (@r121)


    Hi, the latest 2.6.6 version produces the following warning for me, which did not happen with 2.6.5.

    Notice: Undefined property: WP_Post_Type::$post_type in web/app/plugins/wp-security-audit-log/classes/Sensors/Content.php on line 899

    A quick bit of debugging shows that $post->post_type doesn’t exist on one of my pages. If I manually add the following to the CheckOtherSensors function, the error notice goes away.

    if (!isset($post->post_type)) {
    return false;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @r121,

    Sorry for taking long to get back to you.

    Thank you for reporting this. We will add a new check in the next update to ensure the object is of WP_Post class, and will fix this issue.

    Should there be anything else we can help you with, do not hesitate to ask.

    Thread Starter r121

    (@r121)

    Fixed with version 2.6.8. Thanks!

    Glad all is sorted @r121. Would appreciate if you rate our plugin.

    Thank you for reporting the issue and should you have any further queries please do not hesitate to get in touch.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined property: WP_Post_Type::$post_type’ is closed to new replies.