• Resolved drtonyb

    (@drtonyb)


    Since version 7.11.42 the following problem has been logged constantly by php:

    PHP Notice: register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. …

    This needs fixing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem. Trying to save the Settings and get a white screen stuck on /wp-admin/admin-post.php with the error message:
    component: “Plugin: wp-google-maps”

    file: “wp-includes/functions.php”

    line: 4773

    message: “register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.)”

    stack: (5) […]
    ​​
    0: “register_rest_route()”
    ​​
    1: “WPGMZA\\RestAPI->registerRoute()”
    ​​
    2: “WPGMZA\\RestAPI->registerRoutes()”
    ​​
    3: “WPGMZA\\RestAPI->onInit()”
    ​​
    4: “do_action(‘init’)”
    ​​
    length: 5
    ​​
    <prototype>: Array []

    type: “notice”

    I cannot save new settings at all at the moment.
    PHP-Version is 7.2.19-nmm1

    Hi there

    Thank you for getting in touch, our apologies for any inconvenience caused.

    We’ve recently made some changes to the REST API following similar reports,

    Can you please update to 7.11.45 and confirm this issue is solved?

    Kind regards
    – Perry

    Hi there @drtonyb, hi @wiso92

    We have solved this issue in our 7.11.46 update, which will go live shortly.

    Please can you update and confirm the issue is solved?

    Kind regards
    – Perry

    Thread Starter drtonyb

    (@drtonyb)

    Hi Perry,

    I’ve updated the plugin to ver 7.11.46 and the errors I was seeing are not being produced.

    Thanks for the good work.

    Tony

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

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