Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Jarno Vos

    (@jarnovos)

    Hi @deadko,

    Thanks for the screenshot, it shows exactly what the issue is.

    The plugin dashboard loads through your site’s REST API, and it looks like you have WordPress installed in the /blog/ subdirectory. So, this means that the REST API is only available under /blog/wp-json/, instead of /wp-json/ on the domain root.

    Your screenshot of the console shows that the plugin’s requests are going to /wp-json/, instead of /blog/wp-json/, which returns a 404 HTML page. The dashboard then fails to load with “not a valid JSON response”, because it expects JSON from the REST API.

    Navigate to your WordPress Dashboard -> Settings -> General, and check that WordPress Address (URL) includes the same subdirectory as your install (e.g. ends with /blog).

    After making that change, refresh the plugin page a few times and the Dashboard should load correctly afterwards; as your site is now configured to use the correct REST API URL.

    Kind regards, Jarno

    Thread Starter deadko

    (@deadko)

    /plugins is my test site

    /blog is another

    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @deadko,

    Those steps also apply when you’ve got two separate WordPress installs (like /plugins and /blog). Each install has its own configuration in Settings -> General.

    On the site where you intend to use the plugin, open Settings -> General and make sure to set it’s WordPress Address (URL) to include the folder you use for wp-admin (so, either …/blog or …/plugins, but not the domain root).

    Then refresh the plugin page a couple of times after making the change; the dashboard can load correctly once your WordPress site is pointing at the right /wp-json/ path.

    Kind regards, Jarno

    Thread Starter deadko

    (@deadko)

    general settings

    Dirección de WordPress (URL) https://www.tusoporteonline.es/plugins

    Dirección del sitio (URL) https://www.tusoporteonline.es/plugins

    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @deadko,

    Looks like the REST API on your /plugins/ site is only responding at /plugins/index.php/wp-json/ (note the index.php being included), while WordPress (and our plugin) expect it at /plugins/wp-json/ (without index.php).

    So because of it, the dashboard requests would still fail. It usually means permalink setting/rewrite rules for the /plugins installation aren’t set up correctly yet.

    On your /plugins/ install, navigate to Settings → Permalinks, set it to an option like “Post Name” (anything other than plain), and make sure to click Save once (even if it was already set to “Post Name”, just click the save button once anyways).

    Then test https://www.tusoporteonline.es/plugins/wp-json/ in the browser, which should return JSON instead of a 404 now. After that, hard-refresh the Really Simple Security page a few times, and it should work.

    Kind regards, Jarno

    Thread Starter deadko

    (@deadko)

    ok, the issue is permalinks, I don’t know why but now I changed to /%postname% and works, thanks for all

    • This reply was modified 3 days, 7 hours ago by deadko.
    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @deadko,

    Great, glad to hear that it’s been fixed already. We appreciate your fast replies & confirmation as well 😉

    Kind regards, Jarno

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.