[ad_1]
Hi @vontweb,
I am wondering if the PW protection is blocking access to the REST API, which in turn is causing the failure. What are you using to enable PW protection? I can try replicating on my end.
Thanks!
Nick
I had tried that but it didn’t help (and I just tried again to make sure). The PW protection is provided by Flywheel via their dashboard and acts like an old htaccess popup login. I have other sites in development that use your plugin and have password protection enabled but this is the only one having issues. I submitted a ticket to Flywheel to see if they can see anything on their end because this could very well be a hosting issue. I’m going at it from both sides …
Thank you for this additional information. I believe I can see the issue now. The URL contains two ? due to the way the routes are setup.
Typically REST API endpoints are located at https://www.examplesite.com/wp-json/block-visibility/v1/variables?type=simplified, not https://www.examplesite.com/index.php?rest_route=/block-visibility/v1/variables?type=simplified.
Are you able to share a bit more about the site setup? This will likely require a quick fix in the plugin itself to account for such a REST route configuration but is definitely feasible.
Thanks!
Nick
All set! Nick, your post made me check permalink settings and they were set to “simple.” This is a one page site and I hadn’t set permalinks to “post name.” So now I know that front-end site permalink settings can affect back-end processing. Thanks for the quick help!
Oh wow, fascinating. I’m sorry you had to go through that, but I learned something as well!
Please don’t hesitate to reach out if I can be of further assistance.
Best,
Nick
