• Resolved ishaikh546

    (@ishaikh546)


    Hi
    I am getting error after update of woocommerce plugin please help me error are given below
    Notice: register_rest_route was called incorrectly. The REST API route definition for wc/v1/brands is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/wp-includes/functions.php on line 5225

Viewing 2 replies - 1 through 2 (of 2 total)
  • mother.of.code

    (@imazed)

    The Mother of Code

    Hi there!

    The error you’re seeing means that a plugin or your theme are creating a REST API route using a wrong hook.
     
    The best way to determine which one it is, is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    This is best done on a staging site. That’s a copy of your live site, so you can test things out without making changes to your actual site. Some hosting companies offer a staging site service within their hosting plans. If yours does not, there is a great free plugin that will allow you to build a complete staging site with a few button clicks: https://wordpress.org/plugins/wp-staging.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @ishaikh546. We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about the WooCommerce plugin, please start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘register_rest_route was called incorrectly’ is closed to new replies.