Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#46545 closed defect (bug) (invalid)

HUNDREDS OF FALSE ERROR MESSAGES: After making the woocommerce plugin inactive log is filled with irrelvant messages about woocommerce being inactive

Reported by: kal123's profile kal123 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

Regardless of what plugin I deactivate, the posts created by it in the database get flagged by this false error message.

Here I have decactivated woocommerce:

Notice: map_meta_cap was called incorrectly. The post type shop_webhook is not registered, so it may not be reliable to check the capability "read_post" against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.) in /var/www/[*]/public_html/wp-includes/functions.php on line 4667

Please remove this message if it cannot be done correctly. I don't want to see a hundred messages everytime I deactivate plugin. This message is of zero value.

Change History (3)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Posts, Post Types

Related: [34091], #16956.

#2 @SergeyBiryukov
5 years ago

  • Keywords close added

Hi @kal123, welcome to WordPress Trac! Thanks for the report.

This notice indicates that there is some orphaned content with the shop_webhook post type left in the database.

The message was added in [34091] to notify developers and site administrators that the capability checks like edit_post are failing in the absence of the registered post type.

This Trac is used for enhancements and bug reporting for the WordPress core software, not for third-party plugins like WooCommerce. Please try their support via https://woocommerce.com/ or the support forums to get help with removing these notices from your site.

#3 @desrosj
5 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing out from lack of reporter feedback and this seems to be WooCommerce related.

Note: See TracTickets for help on using tickets.