MainWP keeps getting disconnected!

Hello,
We have 31 pages down which we cannot reconnect, this is a problem we need to fix as soon as possible. Here are the server info:


### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
WordPress Version                  >=6.2                                                  6.7.2                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.29.0                                               7.81.0                                       Pass        
Function `tmpfile` enabled         N/A                                                    Enabled                                      Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/3.0.2                                Pass        
OpenSSL Working Status             Yes                                                    Yes                                          Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    No functions disabled.                                   
PHP Exif Support                   N/A                                                    YES                                                      
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, json, libxml, mbstring, memcached, msgpack, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, random, readline, redis, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           180                                          Pass        
PHP Max Input Time                 >=30 seconds                                           180                                          Pass        
PHP Memory Limit                   >=256M                                                 512M                                         Pass        
PHP Post Max Size                  >=2M                                                   256M                                         Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Session enabled                N/A                                                    Enabled                                      Pass        
PHP Upload Max Filesize            >=2M                                                   250M                                         Pass        
PHP Version                        >=7.4                                                  8.3.16                                       Pass        
PHP XML Support                    N/A                                                    YES                                                      
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        

### MySQL                          Required                                               Detected                                     Status   ###

MySQL Client Encoding              N/A                                                    utf8                                                     
MySQL Mode                         N/A                                                    ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION            
MySQL Version                      >=5.0                                                  10.6.18-MariaDB-0ubuntu0.22.04.1             Pass        

### Server Configuration           Detected Value                                      ###

Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Charset Content             N/A                                                    
Architecture                       64         bit                                         
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       7.98 MB                                                
Operating System                   Linux                                                  
Request Time                       1740756923                                             
Server Protocol                    HTTP/2.0                                               
Server self connect                Not expected HTTP response body: Just a moment...Enable JavaScript and cookies to continue
Server Software                    nginx/1.26.2                                           
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Cache control enabled              No                                                     
Enable Uptime Monitoring           Yes                                                    
MainWP Dashboard Version           Latest: 5.3.5.1 | Detected: 5.3.5.1 Pass               
MainWP legacy backups enabled      No                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests2                                                      
Maximum simultaneous requests      5                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests 7                                                      
Maximum simultaneous uptime monitoring requests (Default: 10)10                                                     
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of connected sites          93                                                     
Optimize data loading              Yes                                                    
Plugin advanced automatic updates enabledYes                                                    
Primary backup system              MainWP Legacy Backups                                  
REST API enabled                   No                                                     
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

MainWP Rocket Extension            4.0.5                                                  Inactive                                     Warning     

### Plugin                         Version                                                Status                                    ###

Akismet Anti-spam: Spam Protection 5.3.7                                                  Active                                       
Backup and Staging by WP Time Capsule1.22.23                                                Active                                       
FluentAuth - Auth Security Plugin  1.1.0                                                  Active                                       
FluentSMTP                         2.2.90                                                 Active                                       
MainWP Dashboard                   5.3.5.1                                                Active                                       

Thank you in advance!

@sfidapro Since you didn’t mention which troubleshooting steps you’ve already tried, I’m going to guess a little and cover some common causes based on the error message:

“Not expected HTTP response body: Just a moment… Enable JavaScript and cookies to continue.”

This suggests that your server is blocking its own requests, which can be due to hosting restrictions, Cloudflare, security plugins, or a reverse proxy.

  • Your server is blocking its own requests, likely due to your host disallowing it, Cloudflare, security plugins, or a reverse proxy being in place.
  • You can try the following
  • Ask your host to allow the connections if Dashboard and Child sites are on same host.
  • If using Cloudflare, try adding a Firewall Rule to allow traffic from your server’s IP.
  • Try turning off your security plugins, (e.g., FluentAuth), temporarily disable them and test.
  • If using Nginx, ensure your configuration allows internal connections.
  • Also try SSH into your server and running:
    CleanShot 2025-02-28 at 17.18.35@2x

If you see a challenge page (e.g., from Cloudflare), you’ll need to whitelist your server’s IP.

Hello,
I tried whitelisting the server IP in cloudflare and it still doesn’t work. I reinstalled and tried to re-add the website to mainwp and it gives me this message even though the plugin is installed in the website:

MainWP Child plugin not detected or could not be reached! Ensure the MainWP Child plugin is installed and activated on the child site, and there are no security rules blocking requests. If you continue experiencing this issue, check the MainWP Community for help.

Is there any other possible way to fix this?

I found out that Cloudflare bots protection and proxy blocks it from connecting. When I disable them it connects properly, but is there any way to bypass the server ip of mainwp from these and keep bot protection and proxy on?

Please try following the steps from this help article to whitelist the MainWP Dashboard in Cloudflare: Troubleshoot connection problems - MainWP Knowledgebase

If whitelisting the Dashboard in Cloudflare Firewall does not solve the issue, it may be necessary to also turn off Cloudflare Bot Fight Mode.
At this moment, it’s not possible to whitelist URLs/IPs for that feature.