PHP Warning: Undefined variable $delay_autoupdate

Hi there,

since the last update the cronjob throws a warning:

PHP Warning:  Undefined variable $delay_autoupdate in /var/www/***/wp-content/plugins/mainwp/class/class-mainwp-system-cron-jobs.php on line 868

Additionally the system report:


### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  128M                                         Pass        
WordPress Version                  >=3.6                                                  6.1.1                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1n                               Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.29.0                                               7.64.0                                       Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    opcache_get_status,                                      
PHP Exif Support                   N/A                                                    YES ( V8.0.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, redis, session, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           120                                          Pass        
PHP Memory Limit                   >=128M                                                 1024M                                        Pass        
PHP Post Max Size                  >=2M                                                   8M                                           Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   2M                                           Pass        
PHP Version                        >=7.0                                                  8.0.25                                       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                                                    NO_ENGINE_SUBSTITUTION                                   
MySQL Version                      >=5.0                                                  5.7.40                                       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.9
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       6.02 MB                                                
Operating System                   Linux                                                  
Request Time                       1669759359                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
Cache control enabled              Yes                                                    
MainWP Dashboard Version           Latest: 4.3.0.1 | Detected: 4.3.0.1 Pass               
MainWP legacy backups enabled      No                                                     
Maximum number of pages to return  50                                                     
Maximum number of posts to return  50                                                     
Maximum simultaneous install and update requests5                                                      
Maximum simultaneous requests      10                                                     
Maximum simultaneous requests per ip7                                                      
Maximum simultaneous sync requests 10                                                     
Minimum delay between requests     150                                                    
Minimum delay between requests to the same ip500                                                    
Number of child sites              274                                                    
Optimize for shared hosting or big networksYes                                                    
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   Yes                                                    
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledNo                                                     
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Dashboard Lock                     4.0.2                                                  Actived                                      Pass        
MainWP Bulk Settings Manager Extension4.0.5                                                  Actived                                      Pass        
MainWP Custom Dashboard Extension  4.1.2                                                  Actived                                      Pass        
MainWP Sucuri Extension            4.0.12                                                 Actived                                      Pass        
MainWP Time Capsule Extension      4.0.3                                                  Actived                                      Pass        
MainWP UpdraftPlus Extension       4.0.6                                                  Actived                                      Pass        
MainWP Vulnerability Checker Extension4.1.2                                                  Actived                                      Pass        
MainWP White Label Extension       4.1.1                                                  Actived                                      Pass        
MainWP Wordfence Extension         4.0.7                                                  Actived                                      Pass        

### Plugin                         Version                                                Status                                    ###

MainWP Child                       4.3.0.1                                                Active                                       
MainWP Dashboard                   4.3.0.1                                                Active                                       
OMGF                               5.4.3                                                  Active                                       
UpdraftPlus - Backup/Restore       1.22.23                                                Active                                       

Hey @dms

Thank you for reaching out and reporting this.

Before I send pass this along to the development team for further investigation, considering this is a PHP Warning and not a PHP Error, can you please verify if the cron jobs are functioning properly?

No, to get all new updates from all sites i have to use manuall sync.

@dms

Can you please try this version and see if it resolves the issue?

Thanks for your effort. I appreciate it. In the meanwhile 4.3.0.2 came out and i updated to it. The version in the zip is 4.3.0.1. Should I try it anyway?

If you don’t mind, please do try it and let us know if it fixes the issue so that we can provide feedback to the development team.

I have updated it to your version provided and it fixes the issue.

Kind regards,
Holger

1 Like

Perfect, I’m glad it fixed the issue.

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