Login issue on WordPress Multisite

Hi,

I am experiencing a login issue on my WordPress Multisite main site when the MainWP Child plugin is active.

Here is a summary of the issue:

  • I have a WordPress Multisite installation with MainWP Child plugin installed on the main site.
  • Whenever MainWP Child is active, logging into the main site results in a 504 Gateway Timeout error.
  • Deactivating MainWP Child resolves the issue immediately, confirming it is the cause.

My questions:

  1. Is it possible to run MainWP Child on a WordPress Multisite main site without causing a 504 timeout on login?
  2. Is there a way to configure MainWP Child to prevent it from making blocking outbound requests during the login process?

Thank you.

Hey @Valeriia

Welcome to the MainWP community.

MainWP Child is not designed or tested for WordPress Multisite, so our support for this setup is limited.

Based on what you described, this does not look like MainWP Child making blocking outbound requests during a normal WordPress login. The more likely cause is local login/change logging inside MainWP Child.

When login activity is recorded on multisite, the plugin may need to check the user’s roles across sites and save the event to the Child changes-log tables. On some multisite networks, especially larger ones, that can be slow enough to cause a 504 timeout during login.

As a diagnostic test, you can temporarily disable the MainWP Child login logger with a small MU plugin:

<?php
/**
 * Plugin Name: MainWP Child Login Logger Test
 */

add_filter( 'mainwp_child_changes_logs_load_login_loggers', '__return_empty_array' );

Save that file here:

wp-content/mu-plugins/mainwp-child-login-logger-test.php

If the mu-plugins folder does not exist, create it first.

Then try logging in again. If the 504 stops, that confirms the timeout is coming from the local login/change logging path rather than an outbound request.