Errors in the log

Since the installation of 4.3 I’ve got some errors/warnings showing up in the PHP error log (that was empty before).

PHP Warning:  Attempt to read property "expiry_date" on null in /.../wp-content/plugins/mainwp-domain-monitor-extension/class/class-mainwp-domain-monitor-admin.php on line 528

PHP Warning:  Attempt to read property "domain_name" on null in /.../wp-content/plugins/mainwp-domain-monitor-extension/class/class-mainwp-domain-monitor-admin.php on line 550

PHP Warning:  Undefined variable $issueCount in /.../wp-content/plugins/mainwp-wordfence-extension/views/scanner/scan-results.php on line 15
PHP Fatal error:  Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in /.../wp-content/plugins/mainwp-wordfence-extension/class/mainwp-wordfence-config.class.php:872
Stack trace:
#0 /.../wp-content/plugins/mainwp-wordfence-extension/class/mainwp-wordfence-config.class.php(872): unserialize()
#1 /.../wp-content/plugins/mainwp-wordfence-extension/models/scanner/wfScanner.php(82): MainWP_Wordfence_Config::get_ser()
#2 /.../wp-content/plugins/mainwp-wordfence-extension/models/scanner/wfScanner.php(70): MainWP_wfScanner->_fetchSummaryItems()
#3 /.../wp-content/plugins/mainwp-wordfence-extension/views/scanner/scan-results.php(57): MainWP_wfScanner->getSummaryItem()
#4 /.../wp-content/plugins/mainwp-wordfence-extension/libs/wfView.php(62): include('...')
#5 /.../wp-content/plugins/mainwp-wordfence-extension/class/mainwp-wordfence-log.class.php(92): MainWP_wfView->render()
#6 /.../wp-content/plugins/mainwp-wordfence-extension/class/mainwp-wordfence.class.php(878): MainWP_Wordfence_Log::gen_result_tab()
#7 /.../wp-includes/class-wp-hook.php(307): MainWP_Wordfence::render_general_tabs()
#8 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#9 /.../wp-includes/plugin.php(476): WP_Hook->do_action()
#10 /.../wp-content/plugins/mainwp/class/class-mainwp-manage-sites-view.php(759): do_action()
#11 /.../wp-content/plugins/mainwp/pages/page-mainwp-manage-sites.php(1084): MainWP\Dashboard\MainWP_Manage_Sites_View::render_scan_site()
#12 /.../wp-content/plugins/mainwp/pages/page-mainwp-manage-sites.php(1257): MainWP\Dashboard\MainWP_Manage_Sites::render_scan_site()
#13 /.../wp-includes/class-wp-hook.php(307): MainWP\Dashboard\MainWP_Manage_Sites::render_manage_sites()
#14 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#15 /.../wp-includes/plugin.php(476): WP_Hook->do_action()
#16 /.../wp-admin/admin.php(259): do_action()
#17 {main}
  thrown in /.../wp-content/plugins/mainwp-wordfence-extension/class/mainwp-wordfence-config.class.php on line 872

Hi Jos,

These PHP warnings come from the Domain Monitor and the Wordfence extension.
It doesn’t seem to be related to the MainWP 4.3 version.

I will move this post to the Bugs category.

These errors were introduced after the installation of the beta 1, so it’s definitely related. Before the installation the error log was always empty (I’m monitoring the log).

Hi Jos, thanks for verifying that.
I will have our dev team check this and update as soon as I get feedback from them.

In the meantime, can you please post the community system report here?

1 Like

### WordPress Check                Required                                               Detected                                     Status   ###

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

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1k                               Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.29.0                                               7.61.1                                       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 ( V8.0.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, intl, json, libxml, litespeed, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, redis, session, soap, sockets, sodium, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PHP Post Max Size                  >=2M                                                   64M                                          Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   64M                                          Pass        
PHP Version                        >=7.0                                                  8.0.24                                       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.10-MariaDB                              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                                                                         
HTTPS                              ON                                                     
Memory Usage                       24.44 MB                                               
Operating System                   Linux                                                  
Request Time                       1666120251                                             
Server Protocol                    HTTP/1.1                                               
Server self connect                Response Test O.K.                                     
Server Software                    LiteSpeed                                              
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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    No                                                     
Cache control enabled              No                                                     
MainWP Dashboard Version           Latest: 4.2.7.1 | Detected: 4.3 BETA 1 Warning         
MainWP legacy backups enabled      No                                                     
Maximum number of comments         50                                                     
Maximum number of pages to return  50                                                     
Maximum number of posts to return  50                                                     
Maximum simultaneous install and update requests4                                                      
Maximum simultaneous requests      10                                                     
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests 10                                                     
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip2000                                                   
Number of child sites              246                                                    
Optimize for shared hosting or big networksYes                                                    
Plugin advanced automatic updates enabledNo                                                     
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   No                                                     
Site health monitoring enabled     No                                                     
Theme advanced automatic updates enabledNo                                                     
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledNo                                                     

### Extensions                     Version                                                License                                      Status   ###

Activity Log for MainWP            2.0.0                                                                                                           
Advanced Uptime Monitor Extension  5.2.2                                                  Actived                                      Pass        
Dashboard Lock                     4.0.2                                                  Actived                                      Pass        
MainWP Code Snippets Extension     4.0.2                                                  Actived                                      Pass        
MainWP Comments Extension          4.0.6                                                  Actived                                      Pass        
MainWP Custom Dashboard Extension  4.1.1                                                  Actived                                      Pass        
MainWP Domain Monitor Extension    4.0.1                                                  Actived                                      Pass        
MainWP Favorites Extension         4.0.10                                                 Actived                                      Pass        
MainWP File Uploader Extension     4.1                                                    Actived                                      Pass        
MainWP Maintenance Extension       4.1.1                                                  Actived                                      Pass        
MainWP Staging Extension           4.0.3                                                  Actived                                      Pass        
MainWP Sucuri Extension            4.0.12                                                 Actived                                      Pass        
MainWP UpdraftPlus Extension       4.0.6                                                  Actived                                      Pass        

### Plugin                         Version                                                Status                                    ###

Activity Log for MainWP            2.0.0                                                  Active                                       
MainWP Child                       4.3 BETA 2                                             Active                                       
MainWP Dashboard                   4.3 BETA 1                                             Active                                       
MainWP Page Speed Extension        4.0.1.1                                                Inactive                                     
UpdraftPlus - Backup/Restore       2.22.23.25                                             Active                                       
Wordfence Security                 7.7.1                                                  Active                                       

And the Wordfence Extension was enabled as well.

I must say there’s been only one error today, but that was when I updated the child plugin from beta 1 to 2:

PHP Fatal error:  Uncaught Error: Class "MainWP\Child\MainWP_Security" not found in /.../wp-content/plugins/mainwp-child/class/class-mainwp-child.php:287
Stack trace:
#0 /.../wppanel/wp-includes/class-wp-hook.php(307): MainWP\Child\MainWP_Child->parse_init()
#1 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 /.../wp-includes/plugin.php(476): WP_Hook->do_action()
#3 /.../wp-settings.php(598): do_action()
#4 /.../wppanel/wp-config.php(88): require_once('...')
#5 /.../wp-load.php(50): require_once('...')
#6 /.../wp-admin/admin-ajax.php(22): require_once('...')
#7 {main}
  thrown in /.../wp-content/plugins/mainwp-child/class/class-mainwp-child.php on line 287

So maybe the other errors were thrown when switching between default and dark theme or doing other tests and not during regular daily usage.

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