Public key already set on PHP8

As soon as I update my site to PHP 7.4, I get the error: Public key already set. Please deactivate & reactivate the MainWP Child plugin on the child site and try again.

I’ve tried:

  • disabling and reenabling the plugin
  • deleting %mainwp_% from MYSQL options table
  • changing theme
  • disabling all other plugins

My server is managed by Runcloud.

Downgrading to 7.4 and it’s able to connect again.

I’ve compared the PHP Disabled Functions and PHP Loaded Extensions between the two versions and they are pretty much identical (just timezonedb is different).

Child site and parent site: Wordpress 6.4.1
MainWP child: Version 4.5.3
MainWP dashboard Version

Hi @doctypedigital

MainWP is fully compatible with PHP 8 and we have multiple test Dashboard running on it without a problem, so the culprit might be a missing PHP extension.

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


Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

Also, please include the system report for the Child Site in question by navigating to MainWP Child > System Information and clicking the Blue button.

Thanks Bojan, apologies it meant to say “as soon as I update my site to PHP 8.0” and also made it clearer that it was the child site was I was upgrading. Sorry, I was getting tired :slight_smile:

### WordPress Check                Required                                               Detected                                     Status   ###

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

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.29.0                                               7.68.0                                       Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/1.1.1f                               Pass        
OpenSSL Working Status             Yes                                                    Yes                                          Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    _getppid, diskfreespace, dl, escapeshellcmd, exec, fpassthru, getmyuid, highlight_file, ignore_user_abort, ini_alter, ini_alter, leak, link, link, listen, passthru, pcntl_exec, popen, posix, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname, posix_uname, proc_close, proc_nice, proc_open, proc_terminate, set_time_limit, shell_exec, show_source, socket_accept, socket_bind, socket_clear_error, socket_close, socket_connect, socket_create_listen, socket_create_pair, socket_listen, socket_read, source, stream_socket_server, symlink, symlink, system, tmpfile, virtual,            
PHP Exif Support                   N/A                                                    YES                                                      
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imap, intl, json, libxml, mbstring, memcache, memcached, msgpack, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, pspell, readline, realpath_turbo, redis, session, shmop, soap, sockets, sodium, sqlite3, standard, swoole, sysvmsg, sysvsem, sysvshm, tidy, timezonedb, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=256M                                                 256M                                         Pass        
PHP Post Max Size                  >=2M                                                   256M                                         Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   256M                                         Pass        
PHP Version                        >=7.4                                                  8.0.30                                       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                                                                                                             
MySQL Mode                         N/A                                                    ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION            
MySQL Version                      >=5.0                                                  10.4.32-MariaDB-1:10.4.32+maria~ubu2004-log  Pass        

### Server Configuration           Detected Value                                      ###

Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       19.37 MB                                               
Operating System                   Linux                                                  
Request Time                       1701717095                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache/2.4.58 (Unix) OpenSSL/1.1.1f                    
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance                                                        
Basic uptime monitoring enabled    Yes                                                    
MainWP Dashboard Version           Latest:  Detected: Pass                
MainWP legacy backups enabled      No                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests                                                       
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests                                                        
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of connected sites          13                                                     
Optimize for shared hosting or big networksNo                                                     
Plugin advanced automatic updates enabledYes                                                    
Primary backup system              MainWP Legacy Backups                                  
REST API enabled                   No                                                     
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledNo                                                     
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Advanced Uptime Monitor Extension  5.2.6                                                  Active                                       Pass        
MainWP Bulk Settings Manager Extension4.0.5                                                  Active                                       Pass        
MainWP Domain Monitor Extension    4.0.6                                                  Active                                       Pass        
MainWP Maintenance Extension       4.1.2                                                  Active                                       Pass        
MainWP Page Speed Extension        4.0.3                                                  Active                                       Pass        
MainWP Pro Reports Extension       4.2                                                    Active                                       Pass        
MainWP Rocket Extension            4.0.5                                                  Inactive                                     Warning     
MainWP Sucuri Extension            4.1                                                    Active                                       Pass        
MainWP URL Extractor Extension     4.0.3                                                  Inactive                                     Warning     
MainWP Vulnerability Checker Extension4.1.6                                                  Active                                       Pass        
MainWP White Label Extension       4.1.3                                                  Inactive                                     Warning     

### Plugin                         Version                                                Status                                    ###

EWWW Image Optimizer               7.2.1                                                  Active                                       
Limit Login Attempts Reloaded      2.25.26                                                Active                                       
MailPoet                           4.38.0                                                 Active                                       
MailPoet Premium                   4.38.0                                                 Active                                       
MainWP Child                       4.5.3                                                  Active                                       
MainWP Child Reports               2.2                                                    Active                                       
MainWP Dashboard                                                         Active                                       
MainWP Page Speed Extension        4.0.3                                                  Active                                       
Redirection                        5.3.10                                                 Active                                       
WP Mail Logging                    1.12.0                                                 Active                                       

I’ve 12 other sites that are connecting fine so it’s probably an extension missing from the child site when upgrading to PHP8. Is there a similar log from the client that I can send on?



No worries and thanks for the clarification :slight_smile:

There is a system report for a Child Site as well, but it is not meant to be shared publically.

With that in mind, would you pleaes open a private Help Desk ticket so we can collect some additional information & investigate further?

And please refer to this Managers thread by its URL in the ticket.

Thanks Bojan, will close this now and pick things up on ticket #26468.

1 Like

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

Just to provide an update on this -

A required PHP function set_time_limit() was disabled on the child site.

After it was enabled, the issue was resolved.

You can find a list of required PHP functions in this help document: