• I currently have debugging turned on on my site and I keep getting the following error:

    Notice: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in \wp-includes\functions.php on line 4020

    Which I’m sure if I turn off errors would be fine. It appears at the top of the admin site on every page then again in the Settings menu above the plugin page “Facebook Members”.

    On the “Facebook Members” page there’s additional errors:

    Notice: Undefined index: as_facebook_mem_stream in \plugins\facebook-members\facebook-members.php on line 148
    Notice: Undefined index: as_facebook_mem_header in \plugins\facebook-members\facebook-members.php on line 149
    Notice: Undefined index: as_facebook_mem_faces in \plugins\facebook-members\facebook-members.php on line 150
    Notice: Undefined index: as_facebook_mem_widget_stream in \plugins\facebook-members\facebook-members.php on line 151
    Notice: Undefined index: as_facebook_mem_widget_faces in \plugins\facebook-members\facebook-members.php on line 152
Viewing 2 replies - 1 through 2 (of 2 total)
  • This is a debugging error caused by turning the DEBUG option to True. You can check the article on has_cap error for a possible resolution of your problem.

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    @rspandey62 Thanks for the reply but the cause isn’t DEBUG the cause is the plugin, debug is just reporting the cause of the issue. Unfortunately, I cannot resolve the issue myself without modifying the plugin directly, which would be overwritten whenever the plugin updates and is highly unadvisable.

    It’s the theme author’s responsibility to resolve these kinds of issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error – has_cap() Deprecated’ is closed to new replies.