Title: Error &#8211; has_cap() Deprecated
Last modified: February 2, 2017

---

# Error – has_cap() Deprecated

 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-has_cap-deprecated/)
 * I currently have debugging turned on on my site and I keep getting the following
   error:
 * > Notice: has_cap was called with an argument that is deprecated since version
   > 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles 
   > and capabilities instead. in \wp-includes\functions.php on line 4020
 * Which I’m sure if I turn off errors would be fine. It appears at the top of the
   admin site on every page then again in the Settings menu above the plugin page“
   Facebook Members”.
 * On the “Facebook Members” page there’s additional errors:
 *     ```
       Notice: Undefined index: as_facebook_mem_stream in \plugins\facebook-members\facebook-members.php on line 148
       Notice: Undefined index: as_facebook_mem_header in \plugins\facebook-members\facebook-members.php on line 149
       Notice: Undefined index: as_facebook_mem_faces in \plugins\facebook-members\facebook-members.php on line 150
       Notice: Undefined index: as_facebook_mem_widget_stream in \plugins\facebook-members\facebook-members.php on line 151
       Notice: Undefined index: as_facebook_mem_widget_faces in \plugins\facebook-members\facebook-members.php on line 152
       ```
   

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

 *  [rspandey62](https://wordpress.org/support/users/rspandey62/)
 * (@rspandey62)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-has_cap-deprecated/#post-8915327)
 * This is a debugging error caused by turning the DEBUG option to True. You can
   check the article on [has_cap error](http://computertips.exploremyindia.in/2017/03/has_cap-was-called-with-an-argument-that-is-deprecated.html)
   for a possible resolution of your problem.
 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-has_cap-deprecated/#post-8917001)
 * [@rspandey62](https://wordpress.org/support/users/rspandey62/) Thanks for the
   reply but the cause isn’t DEBUG the cause is the plugin, debug is just reporting
   the cause of the issue. Unfortunately, I cannot resolve the issue myself without
   modifying the plugin directly, which would be overwritten whenever the plugin
   updates and is highly unadvisable.
 * It’s the theme author’s responsibility to resolve these kinds of issues.

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

The topic ‘Error – has_cap() Deprecated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-members_393837.svg)
 * [Social Friends](https://wordpress.org/plugins/facebook-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-members/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-members/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/error-has_cap-deprecated/#post-8917001)
 * Status: not resolved