Title: Debug Errors from WP-includes
Last modified: August 19, 2016

---

# Debug Errors from WP-includes

 *  [cmunns](https://wordpress.org/support/users/cmunns/)
 * (@cmunns)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/)
 * Theme debug throws errors from wp-includes. How is this related to the theme 
   files?
 * e.g. Notice: 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. in /Library/WebServer/Documents/wordpress/wp-includes/functions.
   php on line 3321
 * I deleted all plug-ins and searched inside of ALL my template files and still
   get this error and a few others that come from inside of wp-includes.
 * Because of these errors the theme is not being accepted into the free theme directory.

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

 *  [dogbot](https://wordpress.org/support/users/dogbot/)
 * (@dogbot)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615216)
 * did you ever get an answer? I get this error too. I am using WP 3.0.1
    Thanks
 *  [Luke McDonald](https://wordpress.org/support/users/thelukemcdonald/)
 * (@thelukemcdonald)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615236)
 * I am getting the same thing. However, I get the notice to disappear when when
   I take my theme options menu call of my function.php file.
 * add_action(‘admin_menu’, “cs_debut_admin_init”);
 * Even if I take out the “cs_debut_admin_init” function completely, the notice 
   is still thrown. Interesting….
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615237)
 * Try ensuring that you’re not using any deprecated tags or functions in your theme.
 *  [Luke McDonald](https://wordpress.org/support/users/thelukemcdonald/)
 * (@thelukemcdonald)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615238)
 * I found the solution on [tumbledesign.com](http://tumbledesign.com/fix-notice-has_cap-was-called-with-an-argument-that-is-deprecated-since-version-2-0-in-wordpress/).
 *  [Luke McDonald](https://wordpress.org/support/users/thelukemcdonald/)
 * (@thelukemcdonald)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615239)
 * Just so the solution is here as well. It had to do with using a role identifier
   instead of a capability in the add_theme_page() function:
 * **Wrong:** (the use of “8”)
    add_theme_page( “Debut Options”, “Theme Options”,
   8, ‘cs_debut_admin_menu’, ‘cs_debut_admin’);
 * **Correct:** (i used “switch_themes”)
    add_theme_page( “Debut Options”, “Theme
   Options”, ‘switch_themes’, ‘cs_debut_admin_menu’, ‘cs_debut_admin’);
 *  [dudesl](https://wordpress.org/support/users/dudesl/)
 * (@dudesl)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615241)
 * here a same problem whit a detailed solution. The font is the same: tumbledesign.
   com
 * [http://wordpress.org/support/topic/has_cap-was-called-with-an-argument-that-is-deprecated?replies=8#post-1775460](http://wordpress.org/support/topic/has_cap-was-called-with-an-argument-that-is-deprecated?replies=8#post-1775460)

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

The topic ‘Debug Errors from WP-includes’ is closed to new replies.

## Tags

 * [debug errors](https://wordpress.org/support/topic-tag/debug-errors/)

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 6 replies
 * 5 participants
 * Last reply from: [dudesl](https://wordpress.org/support/users/dudesl/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/debug-errors-from-wp-includes/#post-1615241)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
