PHP error related to has_cap is breaking Javascript in parts of my site
-
Hi ya,
So I found that this plugin is breaking bits of my site.I’m using Query Monitor to see what’s going on.
It’s reporting this:
Message:
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.Location:
wp-includes/functions.php:4045Caller:
do_action(‘admin_menu’)
wp-admin/includes/menu.php:149
rg108_register_checkout_menu_page()
wp-includes/class-wp-hook.php:286
add_options_page()
wp-content/plugins/woo-single-page-checkout/includes/setting.php:5
add_submenu_page()
wp-admin/includes/plugin.php:1233
current_user_can(10)
wp-admin/includes/plugin.php:1157
WP_User->has_cap()
wp-includes/capabilities.php:621Plugin: woo-single-page-checkout
———-
If I remove woo-single-page-checkout then that error goes away.
Maybe some of that data is being passed in an incorrect format…
Thanks,
Norman
- The topic ‘PHP error related to has_cap is breaking Javascript in parts of my site’ is closed to new replies.