nanodesigns / nanosupport

Create a fully featured Support Center in your WordPress setup without any third party dependency, completely FREE. Get a built-in Knowledgebase too. The plugin is available on WordPress.org repository:
https://wordpress.org/plugins/nanosupport/
GNU General Public License v2.0
50 stars 13 forks source link

Notice: map_meta_cap was called incorrectly. #52

Closed mayeenulislam closed 6 years ago

mayeenulislam commented 6 years ago

There displays a notice in admin panel when NanoSupport deactivated:

Notice: map_meta_cap was called incorrectly. The post type nanosupport 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 /path/to/wp-includes/functions.php on line 4139

mayeenulislam commented 6 years ago

The notice is being displayed because the post types of comments are attached to a post type (nanosupport) that doesn’t exist when the plugin is deactivated.

The only remedy is to delete all the data attached to NanoSupport.

See similar issues in WooCommerce, Easy Digital Downloads