Posted: September 22, 2020 at 4:05 pm
Everytime I log in as admin and go into EventEspresso – I get the following messages at the top of my screen. EE still seems to run ok but its been troubling me. 🙂
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. in /usr/www/users/migmar/wdma/wp/wp-includes/functions.php on line 5057
Deprecated: contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead. in /usr/www/users/migmar/wdma/wp/wp-includes/functions.php on line 5148
A deprecated function/method is one that has been replaced with a ‘better’ version, so the original version usage is discouraged (hence the notice).
However, with regards to this notice:
has_cap() is not in use within Event Espresso at all so that notice is being thrown by another plugin (or your site’s theme) and just happens to throw the notice on EE’s pages.
To find the cause you’ll need to do a full troubleshoot by disabling all plugins on the site and check the page to see if the notice is still thrown, if so switch to a default theme and again check (if it’s then removed its a theme issue). If disabling plugins removed the notice you then need to enable each plugin one by one, refreshing the page that showed the notice each time to see which one brings it back.
If you let us know the plugin we can advise from there.
Again this is unlikely to be from Event Espresso itself, I can’t find any calls to that function at all.
One of my test sites had the Send Grid plugin installed and threw this notice, so are you using that plugin?
(Note there are many plugins that could be using that function, the above is just a shot in the dark)