Title: Plugin throws error in WP_DEBUG
Last modified: August 22, 2016

---

# Plugin throws error in WP_DEBUG

 *  [tbruketta](https://wordpress.org/support/users/tbruketta/)
 * (@tbruketta)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/plugin-throws-error-in-wp_debug/)
 * Thanks for a great plugin, one snag that I am running in to.
 * This plugin throws the following error when you are running WP_DEBUG:
 * has_cap was called with an argument that is deprecated since version 2.0! Usage
   of user levels by plugins and themes is deprecated. Use roles and capabilities
   instead.
 * Obviously I can disable WP_DEBUG to hide the error, but I thought I would put
   it on your radar especially since this function has been deprecated since V 2.0.
 * Thanks!
 * Thomas
 * [https://wordpress.org/plugins/custom-permalinks/](https://wordpress.org/plugins/custom-permalinks/)

The topic ‘Plugin throws error in WP_DEBUG’ is closed to new replies.

 * ![](https://ps.w.org/custom-permalinks/assets/icon.svg?rev=1785367)
 * [Custom Permalinks](https://wordpress.org/plugins/custom-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-permalinks/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [tbruketta](https://wordpress.org/support/users/tbruketta/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/plugin-throws-error-in-wp_debug/)
 * Status: not resolved