Error in Log File

Hi,

I’m seeing this entry in the error_log file in a couple of site:

[26-Nov-2020 13:59:57 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'MainWP_Security' not found in /home/sitexxxxxx/public_html/wp-includes/class-wp-hook.php on line 287

Site is running PHP 7.4.  And WP 5.5.3

What do you think is the issue here?

thanks.

Hi @nubranch,

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.

Here you go:


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.2.1                                                4.1.2.1                                      Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Advanced Uptime Monitor Extension  5.0.2                                                  API License Active                           Pass        
MainWP Buddy Extension             4.0                                                    API License Active                           Pass        
MainWP Code Snippets Extension     4.0                                                    API License Active                           Pass        
MainWP Pro Reports Extension       4.0                                                    API License Active                           Pass        
MainWP Branding Extension          4.0.2.1                                                API License Active                           Pass        
MainWP Bulk Settings Manager Extension4.0.2.1                                                API License Active                           Pass        
MainWP Custom Dashboard Extension  4.0.1                                                  API License Active                           Pass        
MainWP Favorites Extension         4.0.4                                                  API License Active                           Pass        
MainWP Google Analytics Extension  4.0.3.1                                                API License Active                           Pass        
MainWP iThemes Security Extension  4.0.3.1                                                API License Active                           Pass        
MainWP Maintenance Extension       4.0.2.1                                                API License Active                           Pass        
MainWP Sucuri Extension            4.0.8.1                                                API License Active                           Pass        
MainWP Wordfence Extension         4.0.2                                                  API License Active                           Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.5.3                                        Pass        
WordPress Memory Limit             >=64M                                                  128M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.2.34                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           600                                          Pass        
PHP Memory Limit                   >=128M                                                 768M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   768M                                         Pass        
PHP Post Max Size                  >=2M                                                   768M                                         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.2.)                                           
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, SourceGuardian, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, i360, iconv, 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, tidy, timezonedb, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  10.3.25-MariaDB-log-cll-lve                  Pass        
MySQL Mode                         NO_ENGINE_SUBSTITUTION                                 
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
Gateway Interface                                                                         
Memory Usage                       65.73 MB                                               
Request Time                       1606418398                                             
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              30                                                     
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return  50                                                     
Maximum number of pages to return                                                         
Primary Backup System              Default MainWP Backups                                 
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 8                                                      
Minimum simultaneous install/update requests3                                                      
Active Plugins                     
BackupBuddy                        8.6.2.0                                                Active                                       
Disable Comments                   1.11.0                                                 Active                                       
MainWP Child                       4.1.2                                                  Active                                       
MainWP Dashboard                   4.1.2.1                                                Active                                       
Members                            3.1.3                                                  Active                                       
Post SMTP                          2.0.15                                                 Active                                       
Wordfence Security                 7.4.12                                                 Active                                       

Hi, I see that some of your extensions are out of date.

Are you able to simply reinstall all extensions by following these steps:

  1. Go to the WP > Plugins > Installed Plugins page on your MainWP Dashboard site
  2. Deactivate and Delete all MainWP Extensions
  3. Go to the MainWP > Extensions page
  4. Click the Install Extensions button to install all your extensions latest versions.
  5. Click the Activate Extensions button to activate the API license.

By doing this you will be sure that you are using all the latest versions.

Done.

For the iThemes security plugin, I got this error when trying to install the extensions:
copy_failed_ziparchive - mainwp-ithemes-security-extension/core/modules/global/active.php

I don’t really need this extension anymore due to its limitations (not supporting pro features).

The other extensions installed ok.

Hi, thanks for getting back to me.

If you change your mind and try to install the extension again, please try one more time and see how it goes. If it fails again and you need us to help, please let me know.

Let us know how it goes with the originally reported problem.

I’m still getting the error. This is from today:

[28-Nov-2020 18:03:59 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘MainWP_Security’ not found in /home/sitexxxx/public_html/wp-includes/class-wp-hook.php on line 287

thanks.

Hi Hani, thanks for getting back to me.

Would you mind opening a private Help Desk ticket so we can collect some additional information & investigate further?

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