Rank Math SEO Plugin Causes 404 Error on All Local Websites

Issue Summary

I installed the Rank Math SEO plugin on a test installation and named that site: plugin-test".
Now every new site that I try to setup is getting redirected to a 404 error page.
The log file shows that Rank Math is trying to load on sites where it’s not even installed. I uninstalled Rank Math from the initial test site, but the problem still persists. Maybe it changed some config variable used by Local? I’ve checked all of the config routing files and everything seems normal in each site, so it’s affected at a level above individual sites.

Troubleshooting Questions

  • It’s happening on all sites added after the initial setup of the plugin on the original test site.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser? NO

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

  1. Install the Rank Math Pro plugin on a test site
  2. Enable Image SEO (Alt, Title tag rewrites)

System Details

  • Which version of Local is being used? 6.4.3

  • What Operating System (OS) and OS version is being used?
    Windows 10 Professional

  • Attach the Local Log. (The errors are listing the “plugintest” site when my “themetest” site is the one trying to load). local “themetest” displays a 404 error and logs the following errors in the log file:

2022/10/28 07:31:00 [error] 4508#3972: *20913 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: plugintests.local, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “http://127.0.0.1:10011/wp-admin/admin-ajax.php”, host: “plugintests.local”, referrer: “http://plugintests.local/wp-admin/admin.php?page=rank-math-options-general
2022/10/28 07:33:01 [error] 4508#3972: *20916 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: plugintests.local, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “http://127.0.0.1:10011/wp-admin/admin-ajax.php”, host: “plugintests.local”, referrer: “http://plugintests.local/wp-admin/admin.php?page=rank-math-options-general
2022/10/28 07:35:02 [error] 4508#3972: *20921 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: plugintests.local, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “http://127.0.0.1:10011/wp-admin/admin-ajax.php”, host: “plugintests.local”, referrer: “http://plugintests.local/wp-admin/admin.php?page=rank-math-options-general
2022/10/28 07:37:03 [error] 4508#3972: *20923 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: plugintests.local, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “http://127.0.0.1:10011/wp-admin/admin-ajax.php”, host: “plugintests.local”, referrer: “http://plugintests.local/wp-admin/admin.php?page=rank-math-options-general
2022/10/28 08:25:03 [error] 4508#3972: *21112 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: ::1, server: plugintests.local, request: “GET /wp-admin/plugins.php?plugin_status=all&paged=1&s HTTP/1.1”, upstream: “http://127.0.0.1:10011/wp-admin/plugins.php?plugin_status=all&paged=1&s”, host: “plugintests.local”, referrer: “http://plugintests.local/wp-admin/plugins.php?plugin_status=all&paged=1&s

Security Reminder

Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.