Closed harriswong closed 9 months ago
That is possible. It could also be triggered if /wc/v3/data/continents
is removed or is missing from the REST API's router registry somehow. These 3 lines in the log caught my eye but I don't think they did anything strange:
#6 /srv/htdocs/wp-content/plugins/vision/includes/plugin.php(69): register_rest_route('vision/v1', '/item/(?P<id>\\d...', Array)
#7 /srv/htdocs/wp-content/plugins/vision/vision.php(71): Vision_Builder->run()
#8 /wordpress/core/6.4.3/wp-includes/class-wp-hook.php(324): vision_run('')
Description
This PR removes the
parent::__construct();
since there are no parent constructors to call.Related issue(s)
Closes https://github.com/Automattic/woocommerce-services/issues/2714
Steps to reproduce & screenshots/GIFs
trunk
, openwoocommerce-services.php
and go to line 1028. Changeif ( ! isset( $existing_routes['/wc/v3/data/continents'] ) ) {
toif ( true || ! isset( $existing_routes['/wc/v3/data/continents'] ) ) {
. This forces the plugin to use our own continents controller.http://localhost/wp-json/wc/v3/data/continents
, you should be able to reproduce the error:Checklist
changelog.txt
entry addedreadme.txt
entry added