Title: PHP Error : has_cap argument deprecated
Last modified: July 10, 2019

---

# PHP Error : has_cap argument deprecated

 *  Resolved [qtpweb](https://wordpress.org/support/users/qtpweb/)
 * (@qtpweb)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-has_cap-argument-deprecated/)
 * Hello,
 * there is a PHP Error with this plugin, here is the alert :
 * has_cap was called with an argument that is deprecated since version 2.0.0! Usage
   of user levels is deprecated. Use capabilities instead.
 * The problem seems to be here :
 * add_submenu_page()
    wp-content/plugins/wp-chatbot/admin/class-htcc-admin.php:
   65
 * Thanks

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

 *  Plugin Support [ingasupranovich](https://wordpress.org/support/users/ingasupranovich/)
 * (@ingasupranovich)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-has_cap-argument-deprecated/#post-11719524)
 * Hi, [@qtpweb](https://wordpress.org/support/users/qtpweb/)
    Could you please 
   double check the version of the plugin and upgrade to the newest version if possible.
   Recheck after the upgrade if you still see any errors and let me know the result
 *  [livire](https://wordpress.org/support/users/livire/)
 * (@livire)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-error-has_cap-argument-deprecated/#post-11735581)
 * I have the same problem. And I have the newest version…
    Thanks
 *  [swlabhot](https://wordpress.org/support/users/swlabhot/)
 * (@swlabhot)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-error-has_cap-argument-deprecated/#post-11736540)
 * Same problem here, all running latest versions. Have uninstalled and reinstalled
   and its the same…

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

The topic ‘PHP Error : has_cap argument deprecated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-chatbot_8774f8.svg)
 * [WP-Chatbot for Messenger](https://wordpress.org/plugins/wp-chatbot/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-chatbot/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-chatbot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-chatbot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-chatbot/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [swlabhot](https://wordpress.org/support/users/swlabhot/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-error-has_cap-argument-deprecated/#post-11736540)
 * Status: resolved