Title: phpinfo plugin throwing deprecated notice
Last modified: August 31, 2016

---

# phpinfo plugin throwing deprecated notice

 *  [efc](https://wordpress.org/support/users/eceleste/)
 * (@eceleste)
 * [10 years ago](https://wordpress.org/support/topic/phpinfo-plugin-throwing-deprecated-notice/)
 * I am getting this notice when I have this plugin active and debugging turned 
   on:
 * `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 /home/bitnami/wordpress/wp-includes/functions.php on
   line 3844`
 * I traced this to the use of `10` for a user capability in the plugin. I can eliminate
   this warning if I replace line 21 with the following:
 * `add_options_page('Phpinfo', 'Phpinfo', 'edit_dashboard', __FILE__, 'dprx_phpinfo_manage_page');`
 * Maybe you would consider an update to the plugin with this fix?
 * [https://wordpress.org/plugins/phpinfo/](https://wordpress.org/plugins/phpinfo/)

The topic ‘phpinfo plugin throwing deprecated notice’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/phpinfo.svg)
 * [Phpinfo](https://wordpress.org/plugins/phpinfo/)
 * [Support Threads](https://wordpress.org/support/plugin/phpinfo/)
 * [Active Topics](https://wordpress.org/support/plugin/phpinfo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phpinfo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phpinfo/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [efc](https://wordpress.org/support/users/eceleste/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/phpinfo-plugin-throwing-deprecated-notice/)
 * Status: not resolved