Title: PHP Notice: Function map_meta_cap was called incorrectly
Last modified: August 19, 2022

---

# PHP Notice: Function map_meta_cap was called incorrectly

 *  [Shannon Little](https://wordpress.org/support/users/enchiridion/)
 * (@enchiridion)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-notice-function-map_meta_cap-was-called-incorrectly/)
 * Hi,
    I just tried this plugin out but immediately got this error upon activating
   it:
 *     ```
       PHP Notice:  Function map_meta_cap was called <strong>incorrectly</strong>. The post type wcct_countdown is not registered, so it may not be reliable to check the capability "edit_post" against a post of that type. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 4.4.0.) in /var/www/xxx/public/wp/wp-includes/functions.php on line 5831
       PHP Stack trace:
       PHP   1. {main}() /var/www/xxx/public/wp/wp-admin/plugins.php:0
       PHP   2. activate_plugin() /var/www/xxx/public/wp/wp-admin/plugins.php:58
       PHP   3. do_action() /var/www/xxx/public/wp/wp-admin/includes/plugin.php:691
       PHP   4. WP_Hook->do_action() /var/www/xxx/public/wp/wp-includes/plugin.php:476
       PHP   5. WP_Hook->apply_filters() /var/www/xxx/public/wp/wp-includes/class-wp-hook.php:331
       PHP   6. WCCT_Core->wcct_activation() /var/www/xxx/public/wp/wp-includes/class-wp-hook.php:307
       PHP   7. XLWCCT_Admin::handle_activation() /var/www/xxx/public/content/plugins/finale-woocommerce-sales-countdown-timer-discount/finale-woocommerce-sales-countdown-timer-discount-plugin-lite.php:320
       PHP   8. wp_insert_post() /var/www/xxx/public/content/plugins/finale-woocommerce-sales-countdown-timer-discount/admin/wcct-admin.php:259
       PHP   9. do_action() /var/www/xxx/public/wp/wp-includes/post.php:4662
       PHP  10. WP_Hook->do_action() /var/www/xxx/public/wp/wp-includes/plugin.php:476
       PHP  11. WP_Hook->apply_filters() /var/www/xxx/public/wp/wp-includes/class-wp-hook.php:331
       PHP  12. XLWCCT_Admin->save_menu_order() /var/www/xxx/public/wp/wp-includes/class-wp-hook.php:309
       PHP  13. current_user_can() /var/www/xxx/public/content/plugins/finale-woocommerce-sales-countdown-timer-discount/admin/wcct-admin.php:878
       PHP  14. user_can() /var/www/xxx/public/wp/wp-includes/capabilities.php:693
       PHP  15. WP_User->has_cap() /var/www/xxx/public/wp/wp-includes/capabilities.php:801
       PHP  16. map_meta_cap() /var/www/xxx/public/wp/wp-includes/class-wp-user.php:777
       PHP  17. _doing_it_wrong() /var/www/xxx/public/wp/wp-includes/capabilities.php:166
       PHP  18. trigger_error() /var/www/xxx/public/wp/wp-includes/functions.php:5831
       ```
   
 * Seems this error was first reported over a year ago but unfortunately still exists:
   
   [https://wordpress.org/support/topic/php-notice-map_meta_cap-was-called-incorrectly-3/](https://wordpress.org/support/topic/php-notice-map_meta_cap-was-called-incorrectly-3/)

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

 * ![](https://ps.w.org/finale-woocommerce-sales-countdown-timer-discount/assets/
   icon-256x256.jpg?rev=1659516)
 * [Finale Lite - Sales Countdown Timer & Discount for WooCommerce](https://wordpress.org/plugins/finale-woocommerce-sales-countdown-timer-discount/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/finale-woocommerce-sales-countdown-timer-discount/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/finale-woocommerce-sales-countdown-timer-discount/)
 * [Active Topics](https://wordpress.org/support/plugin/finale-woocommerce-sales-countdown-timer-discount/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/finale-woocommerce-sales-countdown-timer-discount/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/finale-woocommerce-sales-countdown-timer-discount/reviews/)

## Tags

 * [not fixed](https://wordpress.org/support/topic-tag/not-fixed/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)

 * 0 replies
 * 1 participant
 * Last reply from: [Shannon Little](https://wordpress.org/support/users/enchiridion/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/php-notice-function-map_meta_cap-was-called-incorrectly/)
 * Status: not resolved