• register_rest_route was called?incorrectly.

    Thoughts on error. Widget Slider breaks –

    Notice: register_rest_route was called incorrectly. The REST API route definition for mec/v1/events 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 /home/customer/www/mrlocalhistory.org/public_html/wp-includes/functions.php on line 5663

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor webnus

    (@webnus)

    Hello @veehikle,

    ?Thank you for taking the time to provide feedback.
    This topic is forwarded to the developer team, and it will be checked and fixed/improved for the next updates.

    Best Regards

    Hello,

    we are one the Version 6.2.0 and also get this error now.

    register_rest_route was called incorrectly. The REST API route definition for mec/v1/events 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.) 1

    wp-includes/functions.php:5663
        register_rest_route()
        wp-content/plugins/modern-events-calendar/app/skins/general_calendar.php:44
        MEC_skin_general_calendar->mec_general_calendar_get_events_api()
        wp-includes/class-wp-hook.php:303
        do_action('rest_api_init')
        wp-includes/rest-api.php:537
        rest_get_server()
        wp-includes/rest-api.php:495
        rest_do_request()
        wp-includes/block-patterns.php:74
        _load_remote_block_patterns()
        wp-includes/class-wp-hook.php:303
        do_action('current_screen')
        wp-admin/includes/class-wp-screen.php:421
        WP_Screen->set_current_screen()
        wp-admin/includes/screen.php:243
        set_current_screen()
        wp-admin/admin.php:212

    Best Regards

    Thread Starter veehikle

    (@veehikle)

    Code newbie: Is there an interim code fix or was the plugin updated? If interim, please provide path to the file to update manually. Thanks

    Oh for those debugging, we’re using version 6.2.0 lite

    • This reply was modified 3 years, 3 months ago by veehikle.
    • This reply was modified 3 years, 3 months ago by veehikle.
    • This reply was modified 3 years, 3 months ago by veehikle.
    Plugin Contributor webnus

    (@webnus)

    Hello,

    Than you for your report. We will fix it in next update.

    You can change this file until the release of the new version: modern-events-calendar-lite/app/skins/general-calendar.php (line 44)

    Thread Starter veehikle

    (@veehikle)

    Change the file how?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘5.8 REST API ERROR: LITE VERSION – register_rest_route was called?incorrectly.’ is closed to new replies.