Failed REST query – No provider?
-
I installed and activated this plugin on the latest WP 6.0.1. I did not set providers. I went to my user profile, scrolled down and requested Use My Current Location. I have WP debug enabled to diagnose another unrelated issue.
The error below was returned. Would it be correct that this is because I do not have a provider set yet? If so I’d suggest that the provider is checked before the REST query.
Call to a member function set() on null in simple-location/includes/class-rest-geo.php:410 Stack trace: #0 /wp-includes/rest-api/class-wp-rest-server.php(1143): REST_Geo::geocode() #1 /wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respon #2 /wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispat #3 /wp-includes/rest-api.php(394): WP_REST_Server->serve_request() #4 /wp-includes/class-wp-hook.php(307): rest_api_loaded() #5 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #6 /wp-includes/plugin.php(524): WP_Hook->do_action() #7 /wp-includes/class-wp.php(398): do_action_ref_array() #8 /wp-content/plugins/simple-location/includes/class-rest-geo.php on line 410
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Failed REST query – No provider?’ is closed to new replies.