Title: Function map_meta_cap was called incorrectly
Last modified: October 27, 2023

---

# Function map_meta_cap was called incorrectly

 *  [roadlink](https://wordpress.org/support/users/roadlink/)
 * (@roadlink)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/function-map_meta_cap-was-called-incorrectly-2/)
 * Hi there,
   I keep getting this error.Is it related with your plugin?
 * Notice: Function map_meta_cap was called <strong>incorrectly</strong>. The post
   type <code>product</code> is not registered, so it may not be reliable to check
   the capability <code>edit_post</code> against a post of that type. Please see
   <a href=”[https://wordpress.org/documentation/article/debugging-in-wordpress/”>Debugging](https://wordpress.org/documentation/article/debugging-in-wordpress/”>Debugging)
   in WordPress</a> for more information. (This message was added in version 4.4.0.)
   in /home//public_html/wp-includes/functions.php on line 5905

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

 *  Plugin Author [Felix W.](https://wordpress.org/support/users/welly2103/)
 * (@welly2103)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/function-map_meta_cap-was-called-incorrectly-2/#post-17173376)
 * Hi [@roadlink](https://wordpress.org/support/users/roadlink/)
 * I have not yet seen this error and unfortunately cannot reproduce it without 
   additional information. The post type product is usually a type that is assigned
   by WooCommerce. You can simply deactivate my plugin and quickly test whether 
   the error is related to my plugin.
 * Greetings Felix
 *  Thread Starter [roadlink](https://wordpress.org/support/users/roadlink/)
 * (@roadlink)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/function-map_meta_cap-was-called-incorrectly-2/#post-17176345)
 * OK, thanks.
   How about this?Warning: Attempt to read property “ID” on null in /
   srv/htdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-
   types.php on line 902
 *  Plugin Author [Felix W.](https://wordpress.org/support/users/welly2103/)
 * (@welly2103)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/function-map_meta_cap-was-called-incorrectly-2/#post-17178621)
 * Hi [@roadlink](https://wordpress.org/support/users/roadlink/)
 * does this error no longer exist if the plugin has been deactivated?
 * Greetings Felix

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

The topic ‘Function map_meta_cap was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/extended-post-status/assets/icon-256x256.png?rev=1981802)
 * [Extended Post Status](https://wordpress.org/plugins/extended-post-status/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extended-post-status/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extended-post-status/)
 * [Active Topics](https://wordpress.org/support/plugin/extended-post-status/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extended-post-status/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extended-post-status/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Felix W.](https://wordpress.org/support/users/welly2103/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/function-map_meta_cap-was-called-incorrectly-2/#post-17178621)
 * Status: not resolved