• Wen I enalbe the plugin it shows me the following error:
    Usage of user levels is deprecated. Use capabilities instead. in /www/wp-includes/functions.php on line 4865 Notice: has_cap was called with an argument that is deprecated since version 2.0.0!

    And it causes different inssues in my website. Could you please take a look.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Looks like you can no longer specify the capability level in add_menu_page() using an integer (docs).

    add_menu_page(__('Click & Pledge'),'Click & Pledge', 8,'cnpcf_formshelp', 'cnpcf_formshelp');

    Replacing all occurrences of 8 with 'administrator' in clickandpledge_form.php resolved the error for me.

    FYI, I used this plugin to help debug https://github.com/Rarst/wps

    Hey there Click and Pledge – I’m seeing this issue as well and its been posted on other Forums including your own support site and you still have not addressed the issue. Please give this issue a review.

    wpforosupport

    (@wpforosupport)

    Hey there, I am also having the following message pop up every time I log into the admin dashboard or want to edit a post when the SC Audio player plugin is active:
    Deprecated: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.on line 5061

    I have about 30 posts on my site which use the SC Audio player. What can I do to have the message disappear? When I disable the plugin, do I have to edit every single post again, using a different audio player?

    Any input to resolve this is highly appreciated.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘has_cap was called with an argument that is deprecated sinse version 2.0.0’ is closed to new replies.