Random php errors

I can’t narrow this to a certain extension but I have some random errors in my logs

PHP Warning: Creating default object from empty value in /wp-content/plugins/mainwp/class/class-mainwp-system-handler.php on line 437
PHP Notice: Only variables should be passed by reference in /wp-content/plugins/mainwp/class/class-mainwp-utility.php on line 923


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.6                                                  4.1.6                                        Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Activity Log for MainWP            1.7.0                                                                                                           
Advanced Uptime Monitor Extension  5.1.2                                                  API License Active                           Pass        
Boilerplate Extension              4.0.2.1                                                API License Active                           Pass        
MainWP BackWPup Extension          4.0.3                                                  API License Active                           Pass        
MainWP Branding Extension          4.0.2.1                                                API License Active                           Pass        
MainWP Broken Links Checker Extension4.0.0.3                                                API License Active                           Pass        
MainWP Bulk Settings Manager Extension4.0.2.1                                                API License Active                           Pass        
MainWP Clean and Lock Extension    4.0.1.1                                                API License Active                           Pass        
MainWP Clone Extension             4.0.1                                                  API License Active                           Pass        
MainWP Code Snippets Extension     4.0.1                                                  API License Active                           Pass        
MainWP Comments Extension          4.0.3                                                  API License Active                           Pass        
MainWP Custom Dashboard Extension  4.0.2                                                  API License Active                           Pass        
MainWP Favorites Extension         4.0.5                                                  API License Active                           Pass        
MainWP File Uploader Extension     4.0.1                                                  API License Active                           Pass        
MainWP Google Analytics Extension  4.0.3.1                                                API License Active                           Pass        
MainWP Maintenance Extension       4.0.2.1                                                API License Active                           Pass        
MainWP Post Plus Extension         4.0.2.1                                                API License Active                           Pass        
MainWP Pro Reports Extension       4.0.6                                                  API License Active                           Pass        
MainWP Team Control                4.0.1.1                                                API License Active                           Pass        
MainWP UpdraftPlus Extension       4.0.4                                                  API License Active                           Pass        
MainWP WooCommerce Status Extension4.0.6                                                  API License Active                           Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.7.2                                        Pass        
WordPress Memory Limit             >=64M                                                  512M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.4.18                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   128M                                         Pass        
PHP Post Max Size                  >=2M                                                   128M                                         Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.18.1                                               7.58.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1                                Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             , pcntl_alarm, pcntl_async_signals, pcntl_exec, pcntl_fork, pcntl_get_last_error, pcntl_getpriority, pcntl_setpriority, pcntl_signal, pcntl_signal_dispatch, pcntl_signal_get_handler, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_unshare, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifcontinued, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig,
PHP Loaded Extensions              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, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, readline, redis, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  8.0.23-14                                    Pass        
MySQL Mode                         ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION      
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    nginx/1.16.1                                           
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              ON                                                     
Server self connect                Not expected HTTP response body:                       
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
Gateway Interface                  CGI/1.1                                                
Memory Usage                       10.05 MB                                               
Request Time                       1623946687                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              54                                                     
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksYes                                                    
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 366                                                    
Maximum number of posts to return  50                                                     
Maximum number of pages to return  50                                                     
Maximum Number of Comments         50                                                     
Primary Backup System              MainWP BackWPup Extension                              
Maximum simultaneous requests      8                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip8                                                      
Minimum delay between requests to the same ip500                                                    
Maximum simultaneous sync requests 10                                                     
Minimum simultaneous install/update requests3                                                      
Active Plugins                     
Activity Log for MainWP            1.7.0                                                  Active                                       
BackWPup                           3.9.0                                                  Active                                       
MainWP Broken Links Checker Extension4.0.0.3                                                Active                                       
MainWP Child                       4.1.6.1                                                Active                                       
MainWP Dashboard                   4.1.6                                                  Active                                       
MalCare Security - Free Malware Scanner, Protection & Security for WordPress4.61                                                   Active                                       
Query Monitor                      3.7.1                                                  Active                                       
Typemarker                         1.4.0                                                  Active                                       
WP 2FA - Two-factor authentication for WordPress1.6.2                                                  Active                                       
WP Crontrol                        1.10.0                                                 Active                                       
WP fail2ban                        4.3.0.9                                                Inactive                                     

Hi Eric,

Thanks for reaching out.

I can’t duplicate the problem on our test sites.

In order to isolate this issue, are you able to temporarily disable extensions so we see if the issue comes from one of the extensions or the Dashboard plugin?

1 Like

I have tested and I think it may be coming from the Activity Log so I have them looking into it. I will post back when I get more info.

Hi Eric,

Thanks for letting me know.

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