• Resolved vontweb

    (@vontweb)


    I am getting the “Something went wrong when trying to load the Block Visibility settings. Try refreshing the page. If the error persists, please contact support.” error.

    Wordpress is updated to 6.1. I switched themes to Twenty Twenty Two and disabled all plugins except Block Visibility but the problem persists.

    Note: the site is PW protected because it isn’t live. It is hosted at Flywheel, but this is the only site having issues with the Settings screen.

    There is a 404 error in the console:
    https://www.growingwildfilm.com/index.php?rest_route=/block-visibility/v1/variables?type=simplified
    `{code: “rest_no_route”, message: “No route was found matching the URL and request method.”,…}

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nick Diego

    (@ndiego)

    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

    Thread Starter vontweb

    (@vontweb)

    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 …

    Thread Starter vontweb

    (@vontweb)

    Flywheel reported no issues. I checked the logs and see that the rest of the plugin REST routes work, but this one doesn’t.

    Works:
    https://www.growingwildfilm.com/index.php?rest_route=/block-visibility/v1/settings

    404:
    https://www.growingwildfilm.com/index.php?rest_route=/block-visibility/v1/variables?type=simplified

    results in No route was found matching the URL and request method

    but removing the type=simplified works parameter
    https://www.growingwildfilm.com/index.php?rest_route=/block-visibility/v1/variables

    Plugin Author Nick Diego

    (@ndiego)

    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

    Thread Starter vontweb

    (@vontweb)

    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!

    Plugin Author Nick Diego

    (@ndiego)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Settings Screen Not Loading’ is closed to new replies.