• Resolved tom coady

    (@tomcoady)


    After installing this Multilist Subscribe for Sendy plugin I see this error when trying to edit my woo home page:

    Notice: register_rest_route was called incorrectly. The REST API route definition for wplikeapro-sendy/v1/subscribe is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback.

    To avoid flooding I put the rest of the error message onto https://pastebin.com/KPELu2ZH

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author cnesbit

    (@cnesbit)

    hi Tom,

    thank you for your feedback! I have not seen this error in the plugin before so thank you for reporting it. I will take a look at it this week and see if I can push an fix out for you.

    Thank you!
    Chris

    Thread Starter tom coady

    (@tomcoady)

    Thanks for your prompt reply, and let me know if you need any help!

    Plugin Author cnesbit

    (@cnesbit)

    Hi Tom,

    Though I was not able to reproduce the error on my test site, I was able to research the error and pinpoint the line of code that seems to cause your issue in some cases.

    You should be able to use the plugin without a critical error if you update to the latest version.

    If you are still seeing a critical error please let me know so I can dig further into the issue.

    Thank you for checking out my plug-in, I hope it meets your needs for your website!

    ~Chris

    Thread Starter tom coady

    (@tomcoady)

    Thank you for taking the time to examine this issue despite not being able to reproduce. I hope to test the updated plugin in due course and will let you know in case I run into any other issues.

    Thread Starter tom coady

    (@tomcoady)

    Using version 1.6.0 I can reproduce the fatal error by simply editing a text page from the external view. This is the resulting message:

    Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php:1411 Stack trace: #0 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php(1411): array_intersect_key('name', Array) #1 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php(1333): WP_REST_Server->get_data_for_route('/wplikeapro-sen...', Array, 'view') #2 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php(1223): WP_REST_Server->get_data_for_routes(Array, 'view') #3 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php(1139): WP_REST_Server->get_index(Object(WP_REST_Request)) #4 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php(985): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/', Array, NULL) #5 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api.php(479): WP_REST_Server->dispatch(Object(WP_REST_Request)) #6 /home/insider/chocolatedetective.co.uk/wp-includes/rest-api.php(2810): rest_do_request(Object(WP_REST_Request)) #7 [internal function]: rest_preload_api_request(Array, '/') #8 /home/insider/chocolatedetective.co.uk/wp-admin/edit-form-blocks.php(82): array_reduce(Array, 'rest_preload_ap...', Array) #9 /home/insider/chocolatedetective.co.uk/wp-admin/post.php(187): require('/home/insider/c...') #10 {main} thrown in /home/insider/chocolatedetective.co.uk/wp-includes/rest-api/class-wp-rest-server.php on line 1411
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    
    Learn more about troubleshooting WordPress.
    Plugin Author cnesbit

    (@cnesbit)

    hi Tom,

    That looks to be a separate error than the one I fixed in 1.6.0. I will take a look at this different error and push an update to the plugin when I have a fix.

    Thank you for your patience on this, and your willingness to report errors. The fix will help others who use the plugin in the future as well.

    ~Chris

    Plugin Author cnesbit

    (@cnesbit)

    hi Tom,

    Can you explain what you mean by “editing a text page from the external view”?

    Once you’re logged into the WordPress admin, what are you clicking to get to the view where this bug is happening?

    Thanks,
    Chris

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woo Home Page critical error’ is closed to new replies.