Title: Wrong usage add_options_page function
Last modified: September 1, 2016

---

# Wrong usage add_options_page function

 *  [andrey-hohlov](https://wordpress.org/support/users/andrey-hohlov/)
 * (@andrey-hohlov)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wrong-usage-add_options_page-function/)
 * Hi!
 * In sphinxsearch.php on line 395
    `add_options_page('Sphinx Search', 'Sphinx Search',
   9, basename(__FILE__), array(&$this, 'print_admin_page'));` there is wrong arguments
   that throw an error
 * > 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 /vagrant/wordpress/wp-includes/functions.php on line
   > 3842
 * For fix change ‘9’ for other capability – [https://codex.wordpress.org/Roles_and_Capabilities](https://codex.wordpress.org/Roles_and_Capabilities)
 * [https://wordpress.org/plugins/wordpress-sphinx-plugin/](https://wordpress.org/plugins/wordpress-sphinx-plugin/)

The topic ‘Wrong usage add_options_page function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-sphinx-plugin.svg)
 * [WordPress Sphinx Search Plugin](https://wordpress.org/plugins/wordpress-sphinx-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-sphinx-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-sphinx-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-sphinx-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-sphinx-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-sphinx-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [andrey-hohlov](https://wordpress.org/support/users/andrey-hohlov/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/wrong-usage-add_options_page-function/)
 * Status: not resolved