Cost Tracker not sending notifications

Hi,

I made a test to receive an email notification 2 days before a recurring payment, but nothing happens !

FYI, I receive other notifications from MainWP, so I guess this is not about SMTP problem.

Any idea ?

Hey @wordpressman

Have you verified that you have any recurring payments coming up in two days?

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:

image

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

Hi Bojan,

Yes, I created a reccurring payment to test it. I can retry this, meanwhile I send you my setting:


### 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.3                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          40                                           Warning     
cURL Version                       >=7.29.0                                               8.2.1                                        Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/3.1.1                                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                                                    No functions disabled.                                   
PHP Exif Support                   N/A                                                    YES                                                      
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, mbstring, memcached, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           120                                          Pass        
PHP Max Input Time                 >=30 seconds                                           120                                          Pass        
PHP Memory Limit                   >=256M                                                 768M                                         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.1.27                                       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                                                    NO_ENGINE_SUBSTITUTION                                   
MySQL Version                      >=5.0                                                  5.7.44-48-log                                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.7
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       90.16 MB                                               
Operating System                   Linux                                                  
Request Time                       1710973556                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Response Test O.K.                                     
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
MainWP Dashboard Version           Latest: 5.0.2 | Detected: 5.0.2 Pass                   
MainWP legacy backups enabled      No                                                     
Maximum number of comments         50                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests3                                                      
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests 8                                                      
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of connected sites          15                                                     
Optimize data loading              Yes                                                    
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   Yes                                                    
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Activity Log for MainWP            2.1.1                                                                                                           
Advanced Uptime Monitor Extension  5.3                                                    Active                                       Pass        
Dashboard Lock                     5.0.1                                                  Active                                       Pass        
MainWP Cache Control Extension     5.0                                                    Active                                       Pass        
MainWP Comments Extension          5.0                                                    Active                                       Pass        
MainWP Cost Tracker Assistant Extension5.0                                                    Active                                       Pass        
MainWP Custom Dashboard Extension  5.0                                                    Active                                       Pass        
MainWP Database Updater Extension  5.0                                                    Active                                       Pass        
MainWP Domain Monitor Extension    5.0.1                                                  Active                                       Pass        
MainWP Favorites Extension         5.0                                                    Active                                       Pass        
MainWP Google Analytics Extension  5.0.1                                                  Active                                       Pass        
MainWP Maintenance Extension       5.0                                                    Active                                       Pass        
MainWP Pro Reports Extension       5.0                                                    Active                                       Pass        
MainWP SSL Monitor Extension       5.0                                                    Active                                       Pass        
MainWP Sucuri Extension            5.0                                                    Active                                       Pass        
MainWP Time Tracker Extension      5.0                                                    Active                                       Pass        
MainWP UpdraftPlus Extension       5.0                                                    Active                                       Pass        
MainWP Vulnerability Checker Extension5.0                                                    Active                                       Pass        
MainWP White Label Extension       5.0                                                    Active                                       Pass        
MainWP WooCommerce Shortcuts Extension5.0.1                                                  Active                                       Pass        
MainWP WooCommerce Status Extension5.0.2                                                  Active                                       Pass        
MainWP Wordfence Extension         5.0                                                    Active                                       Pass        

### Plugin                         Version                                                Status                                    ###

Activity Log for MainWP            2.1.1                                                  Active                                       
Admin and Site Enhancements (ASE)  6.9.4                                                  Active                                       
Code Snippets                      3.6.4                                                  Active                                       
Loco Translate                     2.6.7                                                  Active                                       
MainWP Dashboard                   5.0.2                                                  Active                                       
Security Optimizer                 1.4.12                                                 Active                                       
Speed Optimizer                    7.4.6                                                  Inactive                                     
UpdraftPlus - Backup/Restore       1.24.1                                                 Active                                       
Wordfence Security                 7.11.4                                                 Active                                       
Yoast SEO                          22.3                                                   Active                                       

Thanks, @wordpressman.

In our previous tests, we didnā€™t encounter issues with the Cost Tracker notifications but will run some more tests.

Can you check if the Cost Tracker notification email is enabled in MainWP Settings and if the correct email address is set?

Hi Bojan,

Yes, the Cost Tracker email notification is enabled, and the email address is working.
Also, I have programmed a Cost Tracker test:

Normally, the notification should arrive today, because it is set to 2 days, so I will let you know if it finally works.

Iā€™ll keep you posted ā€¦

Thanks.

1 Like

Hi Bojan,

I confirm that no email are triggered by the Cost Tracker. I never received anything ā€¦

Thanks in advance to to keep helping with that problem.

In cases like this itā€™s always good to check the whole process step by step. First step is to check if the emails are actually send by your website. You can use a plugin like:

This plugin both logs the outgoing emails from your website and gives you the possibility to send a test email to make sure your website can successfully send emails.

If emails are successfully sent, but still not received, have your host check the logs to see if they came back for some reason or maybe didnā€™t leave the server at all.

Thanks Jos,

In fact, I receive all the other mails sent by MainWP, so, the problem must be somewhere else ā€¦

Thatā€™s good to know, but the log can at least help to check if the email is being sent. Next step might be to determine if the cron job is working, that does the check and should send the email. Cron jobs (background tasks) often donā€™t get executed if thereā€™s no traffic on the site. An uptime monitoring service like uptimerobot.com could help with that.

Thanks Jos. Youā€™re right then ! I installed the plugin and have set another cost that should trigger an email tomorrow.
Concerning the cron, Iā€™m the only one visiting my MainWP website, so, obviously, there is not that much traffic. Do you think I should use ā€œmanualā€ cron job on the server to trigger like every hours ? Or use a olugin like WP Control ?

If you want to use the WP Cron system, there should be traffic and uptimerobot.com can check your site automatically every 5 minutes, what should be enough to start cron jobs. You can also use a server cron, which is a bit more technical. I think A Deep Dive into WP-Cron: Enhancing Scheduler Efficiency in WordPress - MainWP WordPress Management is a good start to read about it.

Maybe a more direct cron job is available for the cost tracker, but I canā€™t help you with that, so in that case you should wait for an answer of support.

2 Likes

Hi Jos,

Ok, I follow your advice, and Iā€™ve put my MainWP website under Uptime Robots checking every 5 mn . Letā€™s see if that change something ! If that doesnā€™t give any help, Iā€™ll try WP Control, hoping that 1 of those solution will help !
Than ks a lot for your advises ā€¦

2 Likes

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