• 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:4045

    Caller:
    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:621

    Plugin: 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

Viewing 1 replies (of 1 total)
  • Interesting. I’m having a very similar issue on one of my sites. I’m not using Woocommerce though.

    But I am seeing the following message in my wp-admin area with WPDEBUG set to true:

    Notice: 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 /home3/oodzopmy/public_html/gemgreyhounds/wp-includes/functions.php on line 4045

    Would love to know what’s causing it as I’m getting errors when trying to activate some plugins.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error related to has_cap is breaking Javascript in parts of my site’ is closed to new replies.