WordPress.org

Support

Support » Plugins and Hacks » Developer Tools » [Resolved] Developer Tools has_cap error

[Resolved] Developer Tools has_cap error

  • I have a fresh install of WordPress 3.1.2 and I loaded your plug v. 1.1.1. I’m seeing this in the admin:

    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/calmusic/public_html/sites/solutioniq/wp-includes/functions.php on line 3387

    Any ideas?

Viewing 1 replies (of 1 total)
  • Plugin Author User Removed

    @kjmeath

    You’re seeing this error because of 2 reasons:

    1: You have define(‘WP_DEBUG’, true); enabled in wp-config.php

    2: I am using a deprecated value in the add_menu_page() function, which technically still works if you don’t have debugging enabled.

    I made the fix for v1.1.2, thanks for the catch.
    In the mean time, you can fix this by updating line 164 of:
    plugins/developer_tools/com/app/MainApplication.php

    From:
    $developerToolsPage = add_menu_page('Developer Tools', 'Developer Tools', 10, DEVELOPER_TOOLS_PAGE_SLUG, array(&$this, 'AdminUiPageContent'));

    To:
    $developerToolsPage = add_menu_page('Developer Tools', 'Developer Tools', 'activate_plugins', DEVELOPER_TOOLS_PAGE_SLUG, array(&$this, 'AdminUiPageContent'));

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Developer Tools has_cap error’ is closed to new replies.
Skip to toolbar