PHP Warning: class 'MainWP_Security' not found

I am receiving the following message in my error log:

“PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘MainWP_Security’ not found in”… “wp-includes/class-wp-hook.php on line 287”

Probably just an FYI rather than a question.

Hi Richard,
thanks for reaching out.
Can you tell me do you get this on your Dashboard or child site side?

These PHP warnings are found both on the hosting and the client website error logs.

Hi Richard,

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Status → 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.


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.3.1                                                4.1.3.1                                      Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
MainWP Broken Links Checker Extension4.0                                                    API License Active                           Pass        
Advanced Uptime Monitor Extension  5.0.2.1                                                API License Active                           Pass        
MainWP Branding Extension          4.0.2.1                                                API License Active                           Pass        
MainWP Clean and Lock Extension    4.0.1.1                                                API License Active                           Pass        
MainWP Client Reports Extension    4.0.6                                                  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 Page Speed Extension        4.0.1.1                                                API License Active                           Pass        
MainWP Pro Reports Extension       4.0.2.1                                                API License Active                           Pass        
MainWP Sucuri Extension            4.0.8.1                                                API License Active                           Pass        
MainWP UpdraftPlus Extension       4.0.3                                                  API License Active                           Pass        
MainWP Vulnerability Checker Extension4.0.3.1                                                API License Active                           Pass        
MainWP Wordfence Extension         4.0.1.1                                                API License Active                           Pass        
MainWP WordPress SEO Extension     4.0.1                                                  API License Active                           Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.6                                          Pass        
WordPress Memory Limit             >=64M                                                  128M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.4.13                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           -1                                           Pass        
PHP Memory Limit                   >=128M                                                 368M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   8M                                           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                                          60                                           Warning     
cURL Version                       >=7.18.1                                               7.71.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1d                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             No functions disabled.                                 
PHP Loaded Extensions              Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, readline, session, shmop, snmp, soap, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, timezonedb, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  5.7.32                                       Pass        
MySQL Mode                         NOT SET                                                
MySQL Client Encoding              utf8mb4                                                
Server Info                        
Server Software                    LiteSpeed                                              
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              ON                                                     
Server self connect                Response Test O.K.                                     
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Gateway Interface                                                                         
Memory Usage                       73.11 MB                                               
Request Time                       1608563663                                             
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                                                    
MainWP Settings                    
Number Of Child Sites              13                                                     
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksYes                                                    
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return                                                         
Maximum number of pages to return                                                         
Primary Backup System              MainWP UpdraftPlus Extension                           
Maximum simultaneous requests      4                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests                                                        
Minimum simultaneous install/update requests                                                       
Active Plugins                     
Akismet Anti-Spam                  4.1.7                                                  Inactive                                     
Hello Dolly                        1.7.2                                                  Inactive                                     
MainWP Broken Links Checker Extension4.0                                                    Active                                       
MainWP Dashboard                   4.1.3.1                                                Active                                       
PHP Compatibility Checker          1.5.0                                                  Active                                       
SeedProd Coming Soon Page Pro      5.12.9                                                 Active                                       
UpdraftPlus - Backup/Restore       1.16.43                                                Active                                       
Wordfence Security                 7.4.14                                                 Active                                       
Yoast SEO                          15.5                                                   Active                                       

Hi RIchard,

thanks for getting back to me.

Report looks good.

The only thing that I noticed is that you are still using the Broken Links Checker extension that has been retired over a year ago. Can you please try to disable it and see if that helps? I just want to be sure that this old code is not causing this.

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