Warnings trying to set up Uptime Robot

I’m sure I’ve done this correctly and I have an Uptime Robot API key. However, when I enter it in the Advanced Uptime Monitor Settings and click on Save settings, I get a page with three warnings (plus debug data):

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in C:\Users<user>\Local Sites\mainwp\app\public\wp-content\plugins\advanced-uptime-monitor-extension\class\class-mainwp-aum-uptimerobot-controller.php on line 755

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\Users<user>\Local Sites\mainwp\app\public\wp-content\plugins\advanced-uptime-monitor-extension\class\class-mainwp-aum-uptimerobot-controller.php:755) in C:\Users\livec\Local Sites\mainwp\app\public\wp-includes\pluggable.php on line 1329

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\Users<user>\Local Sites\mainwp\app\public\wp-content\plugins\advanced-uptime-monitor-extension\class\class-mainwp-aum-uptimerobot-controller.php:755) in C:\Users\livec\Local Sites\mainwp\app\public\wp-includes\pluggable.php on line 1332

Note that I’m running this on a Local by Flywheel install - I did have problems setting this up initially (and I posted about this on the WordPress extension page) but I got it all running and all seems OK - other than this error.

Any idea what’s happening and how to fix this?

Hi AlanH,

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.

Thanks, Bogdan.


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.5.1                                                4.1.5.1                                      Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Advanced Uptime Monitor Extension  5.1.1                                                  API License Active                           Pass        
MainWP Sucuri Extension            4.0.8.1                                                API License Active                           Pass        
WPvivid Backup MainWP              0.9.15                                                                                                          
WordPress                          
WordPress Version                  >=3.6                                                  5.7                                          Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.3.5                                        Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           1200                                         Pass        
PHP Max Input Time                 >=30 seconds                                           600                                          Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   300M                                         Pass        
PHP Post Max Size                  >=2M                                                   1000M                                        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.64.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1b                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.3.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             No functions disabled.                                 
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, readline, session, soap, sodium, standard, tidy, tokenizer, wddx, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  8.0.16                                       Pass        
MySQL Mode                         NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    nginx/1.16.0                                           
Operating System                   WINNT                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.0                                               
HTTPS                              OFF                                                    
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/89.0.4389.90 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       5.29 MB                                                
Request Time                       1616622693                                             
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              15                                                     
Use WP-Cron                        No                                                     
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance                                                        
Maximum number of posts to return                                                         
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                                                        
Minimum simultaneous install/update requests                                                       
Active Plugins                     
MainWP Dashboard                   4.1.5.1                                                Active                                       
WPvivid Backup MainWP              0.9.15                                                 Active                                       

Hi Alan,

Report looks good, I can’t see anything unusual in there.

Can you please try to reinstall the extension and see if that solves the problem?

I deactivated, deleted then reinstalled the Uptime extension, grabbed the API key and entered it but still get the same error.

Can I make sure I’m doing this correctly? I go to the Advanced Uptime Monitor Settings tab, enter my API key (from My Account on the mainwp.com website, which starts wc_order_…) then click on Save Settings? That’s when I get those three warnings.

By the way, the link on that page ’ Enter your API key provided by the Uptime Robot. Not sure how to get it? Click here to find out!’ is a 404.

You are trying to use the MainWP API code, but you should use the Uptime Robot API, which you can find on https://uptimerobot.com/dashboard.php#mySettings under API Settings.

1 Like

Argh. Sorry. I was using the correct API code before uninstalling and reinstalling. However, I’ve just tried with the right Uptime robot Main API key (it starts u124) and I still get the same warnings.

Line 755 of the file advanced-uptime-monitor-extension/class/class-mainwp-aum-uptimerobot-controller.php is about the alert contacts, so have you set up an alert contact in Uptime Robot and selected it as the default contact in the AUM Extension?

I do have an alert contact email in Uptime robot (and I verified it when I signed up) but that doesn’t appear in the MainWP AUP extension. I paste the API key into the Uptime Robot API Key field but the Default alert contact field says ‘No items found! Make sure to submit your Uptime Robot API key first.’ Should I see my Uptime robot alert email address there? Do I need to save settings first? That’s when I get the warnings.

Do I have to set up something other than an email alert contact? If so, what?

That’s as far as my ideas go… I’ll let @bogdan handle the rest of this issue.

Many thanks, @josklever

I suspect I’m missing something simple…

1 Like

If it’s MainWP that contacts Uptime Robot then that may work but if Uptime robot has to contact my MainWP install, it won’t be able to as it’s on a local WordPress install. Is that something to do with it?

Hi AlanH,

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

Thanks, Bogdan. Done.

1 Like

After troubleshooting this problem, we found that there is some issue with the localhost setup.

It is confirmed that everything works properly on a web-hosted dashboard so the client decided to continue from the new dashboard.

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