Process timed out. Please try again. (On sync) after PHP 7.4 > 8.1

Hi guys! I finally updated the server where my MainWP dashboard is hosted to PHP 8.1, because I had other subdomains that up until recently required PHP 7.4.

Now almost all the times I hit sync, I get this Process timed out. Please try again. on the child listing and end up getting a 502 bad gateway on the server.

I made sure every required function listed here is enabled:

imagepng is enabled.
bccomp is enabled.
putenv is enabled.
curl_exec is enabled.
curl_multi_exec is enabled.
tmpfile is enabled.
set_time_limit is enabled.

Any hint on how to overcome this? I have all the server php variables maxed out.

Thanks in advance, best regards,

Hey @jpfigueira

Do you get the process time out every time, even when you try to sync just one site?

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Info → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

Hi!

I tried individual sync for a bunch of websites,some of they succeeded, some of them returned Process timed out. Please try again. The ones that failed, after refreshing I also got a 502 Bad Gateway.

Here you go:


### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  2048M                                        Pass        
WordPress Version                  >=6.2                                                  6.6.2                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.29.0                                               7.87.0                                       Pass        
Function `tmpfile` enabled         N/A                                                    Enabled                                      Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/1.1.1w                               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, PDO, Phar, Reflection, SPL, SimpleXML, bcmath, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, i360, iconv, imagick, imap, intl, ionCube Loader, json, libxml, litespeed, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, readline, session, shmop, soap, sockets, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           300000                                       Pass        
PHP Max Input Time                 >=30 seconds                                           -1                                           Pass        
PHP Memory Limit                   >=256M                                                 2G                                           Pass        
PHP Post Max Size                  >=2M                                                   1G                                           Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Session enabled                N/A                                                    Enabled                                      Pass        
PHP Upload Max Filesize            >=2M                                                   256M                                         Pass        
PHP Version                        >=7.4                                                  8.1.29                                       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                                                    NOT SET                                                  
MySQL Version                      >=5.0                                                  5.7.44-cll-lve                               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                                                                         
HTTPS                              ON                                                     
Memory Usage                       98.37 MB                                               
Operating System                   Linux                                                  
Request Time                       1729275669                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    No                                                     
MainWP Dashboard Version           Latest: 5.2.2 | Detected: 5.2.2 Pass                   
MainWP legacy backups enabled      No                                                     
Maximum number of comments         50                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests3                                                      
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests 8                                                      
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of connected sites          31                                                     
Optimize data loading              No                                                     
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   No                                                     
Site health monitoring enabled     No                                                     
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Advanced Uptime Monitor Extension  5.3.1                                                  Active                                       Pass        
MainWP Comments Extension          5.0                                                    Active                                       Pass        
MainWP Custom Dashboard Extension  5.0.1                                                  Active                                       Pass        
MainWP Domain Monitor Extension    5.0.3                                                  Active                                       Pass        
MainWP Google Analytics Extension  5.0.1                                                  Active                                       Pass        
MainWP iThemes Security Extension  5.0.1                                                  Active                                       Pass        
MainWP Lighthouse Extension        5.0.2                                                  Active                                       Pass        
MainWP Pro Reports Extension       5.0.5                                                  Active                                       Pass        
MainWP Sucuri Extension            5.0                                                    Active                                       Pass        
MainWP UpdraftPlus Extension       5.0.1                                                  Active                                       Pass        
MainWP Vulnerability Checker Extension5.0.1                                                  Active                                       Pass        
MainWP White Label Extension       5.0                                                    Active                                       Pass        
MainWP WooCommerce Status Extension5.0.3                                                  Active                                       Pass        

### Plugin                         Version                                                Status                                    ###

Loco Translate                     2.6.11                                                 Active                                       
MainWP Dashboard                   5.2.2                                                  Active                                       
Post SMTP                          2.9.9                                                  Active                                       
Solid Security Basic               9.3.3                                                  Active                                       
Wordfence Security                 7.11.7                                                 Active                                       
Yoast SEO                          23.6                                                   Active                                       

Thanks once again, best regards,
JPFigueira

If sync is failing mostly for multiple sites, then I’d suggest increasing “cURL Timeout” from the current value of 60 to at least 300.

You can find information on how to do so in our KB: Resolving System Requirement Issues - MainWP Knowledgebase

If that doesn’t resolve the issue, please open a private Help Desk ticket so we can collect some additional information & investigate further.

And please refer to this Managers thread by its URL in the ticket.

Oh ok! I’ll have to ask the hosting for help, for neither setting it php.ini nor .user.ini is working :frowning:

I’ve checked with the previous 7.4 PHP version and the timeout was indeed set to 300.

Let you know as soon as have it changed.

Best Regards,
JPFigueira

FYI, while I’m waiting for the hosting to reply, I tried to force it in wp-config:

ini_set('default_socket_timeout', 300);

It does in fact show 300 on the system report but checking via phpinfo() it’s still at 60.

I’ll wait for a proper PHP change :slight_smile:

Best regards, have a great weekend!
JPFigueira

2 Likes

Hi!

Got feedback from the hosting provider, they told be in these servers it should be done via .htacess, so I did:

php_value default_socket_timeout 300

However, the issue is still present. Here’s the new report:


### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  2048M                                        Pass        
WordPress Version                  >=6.2                                                  6.6.2                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.29.0                                               7.87.0                                       Pass        
Function `tmpfile` enabled         N/A                                                    Enabled                                      Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/1.1.1w                               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, PDO, Phar, Reflection, SPL, SimpleXML, bcmath, bz2, calendar, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, i360, iconv, imagick, imap, intl, ionCube Loader, json, libxml, litespeed, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, readline, session, shmop, soap, sockets, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           300000                                       Pass        
PHP Max Input Time                 >=30 seconds                                           -1                                           Pass        
PHP Memory Limit                   >=256M                                                 2G                                           Pass        
PHP Post Max Size                  >=2M                                                   1G                                           Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Session enabled                N/A                                                    Enabled                                      Pass        
PHP Upload Max Filesize            >=2M                                                   256M                                         Pass        
PHP Version                        >=7.4                                                  8.1.29                                       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                                                    NOT SET                                                  
MySQL Version                      >=5.0                                                  5.7.44-cll-lve                               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                                                                         
HTTPS                              ON                                                     
Memory Usage                       98.87 MB                                               
Operating System                   Linux                                                  
Request Time                       1729519053                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    No                                                     
MainWP Dashboard Version           Latest: 5.2.2 | Detected: 5.2.2 Pass                   
MainWP legacy backups enabled      No                                                     
Maximum number of comments         50                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests3                                                      
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests 8                                                      
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of connected sites          31                                                     
Optimize data loading              No                                                     
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   No                                                     
Site health monitoring enabled     No                                                     
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Advanced Uptime Monitor Extension  5.3.1                                                  Active                                       Pass        
MainWP Comments Extension          5.0                                                    Active                                       Pass        
MainWP Custom Dashboard Extension  5.0.1                                                  Active                                       Pass        
MainWP Domain Monitor Extension    5.0.3                                                  Active                                       Pass        
MainWP Google Analytics Extension  5.0.1                                                  Active                                       Pass        
MainWP iThemes Security Extension  5.0.1                                                  Active                                       Pass        
MainWP Lighthouse Extension        5.0.2                                                  Active                                       Pass        
MainWP Pro Reports Extension       5.0.5                                                  Active                                       Pass        
MainWP Sucuri Extension            5.0                                                    Active                                       Pass        
MainWP UpdraftPlus Extension       5.0.1                                                  Active                                       Pass        
MainWP Vulnerability Checker Extension5.0.1                                                  Active                                       Pass        
MainWP White Label Extension       5.0                                                    Active                                       Pass        
MainWP WooCommerce Status Extension5.0.3                                                  Active                                       Pass        

### Plugin                         Version                                                Status                                    ###

Loco Translate                     2.6.11                                                 Active                                       
MainWP Dashboard                   5.2.2                                                  Active                                       
Post SMTP                          2.9.9                                                  Active                                       
Solid Security Basic               9.3.3                                                  Active                                       
Wordfence Security                 7.11.7                                                 Active                                       
Yoast SEO                          23.6                                                   Active                                       

Thanks in advance, best regardsm
JPFigueira

Thanks for trying that.

Please open a private Help Desk ticket so we can take a closer look.

And please refer to this Managers thread by its URL in the ticket.