• Resolved techstuffempirion

    (@techstuffempirion)


    Hi there,

    After the WP 5.5 update this now appears in the wp-admin section – does this require a plugin update or is there something I can do myself?

    Thanks!

    Notice: register_rest_route was called incorrectly. The REST API route definition for wordpress-popular-posts/v1/popular-posts/widget/(?P[\d]+) is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback.

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @techstuffempirion,

    Thanks for the heads up. Yes, this will require a new plugin update to get rid of the PHP notice.

    For the time being, you can either set the WP_DEBUG constant in your wp-config.php file (located at the root of your website) to false to temporarily get rid of the notice (you can set it back to true afterwards if you want to):

    define( 'WP_DEBUG', false );

    … or you can try and fix this yourself by following these instructions (be warned though, you may break your website if you’re not careful with this):

    1. Go to Plugins > Plugin Editor and select WordPress Popular Posts from the dropdown.
    2. Click on src/Rest/Controller.php to edit this file.
    3. Find this function and replace it with this version.
    4. Finally, click on Update File to save changes.
Viewing 1 replies (of 1 total)

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