Bug: REST request error during install
-
Hello!
First of all – great work with the plugin!
I found a bug, not sure how severe it is, but in my opinion it should be fixed.
Here is how to recreate:I set up a clean WP-install (v5.0.3) with Local by Flywheel. I install the Redirection-plugin at version 3.7.2. I activate the plugin, navigate to “Tools” then “Redirection”. Then I click “Start Setup”, then “Continue Setup” and when the section “Checking your REST API” showing I get the following result:
[X] GET Default /wp-json/ – HTTP 404
[X] POST Default /wp-json/ – HTTP 404
[?] GET Raw /index.php?rest_route=/
[?] POST Raw /index.php?rest_route=/
[X] GET Relative /wp-json/ – HTTP 404
[X] POST Relative /wp-json/ – HTTP 404When inspecting these request in the browser tools I see why the request is failing. The reason is that the request to “/wp-json/…” have an error in the URL. The requests does not format the GET-parameters the correct way (? instead of &).
Example: https://redirectiontest.local/wp-json/redirection/v1/plugin/test/&_wpnonce=7564039c64
It should have been: https://redirectiontest.local/wp-json/redirection/v1/plugin/test/?_wpnonce=7564039c64
I hope this is enough to replicate and hopefully solve.
I’m running NGINX (the same thing also happens when running Apache), PHP 7.2.0 and MySQL 5.6.
Kind regards, Robert S?ther.
- The topic ‘Bug: REST request error during install’ is closed to new replies.