• Resolved model13

    (@model13)


    I’m trying out version 1.1.0 of Access Monitor with WP 4.3.1. We’re on multisite (shouldn’t make a difference) and have WP_DEBUG set to true (it’s a test installation).

    When I open a post, page or similar custom content type for editing, I see one or more instances of this PHP notice:

    Notice: Undefined index: am_post_types in (path redacted)/wp-content/plugins/access-monitor/am-post-inspection.php on line 95

    I don’t see anything failing to function as a result, merely reporting it as a courtesy.

    https://wordpress.org/plugins/access-monitor/

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Thanks for noting that. I’ll check it for my next release.

    The PHP error type of ‘notice’ is an indicator that something is technically incorrect in a non-breaking way; in this case, I’m referencing an element in an array that doesn’t exist in that array. It won’t cause any problems, but I should be checking whether the element exists before I attempt to reference it. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice on Pages/Posts’ is closed to new replies.