Pro Reports tokens inoperative in recent weeks — tokens print verbatim, unprocessed

My Pro Reports used to work just fine, but some weeks ago many of the tokens stopped showing the expected data and now just print verbatim, unprocessed.

It’s taken me a while to ask about this (my MainWP instance is for my own benefit, at present I don’t manage sites for any clients). But I would like to fix it.

I do use a customised report template, but it’s not that different from the built-in one that it’s based on — and besides, I tried the standard ones again and got the same (lack of) results.

I do keep all plugins regularly up to date on both the MainWP site and the child sites. It seems to have been an update that broke this, and I hoped the problem would resolve itself with another update, but that hasn’t happened.

How do I get the tokens working again please?

Also, even before this, I couldn’t get the domain monitor tokens to output anything — for example, [domain.monitor.status] would print verbatim, unprocessed.

Hi @TechNoggin

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.

Sure, thanks for the directions. Here it is:


### WordPress Check                Required                                               Detected                                     Status   ###

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

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/3.0.8                                Pass        
cURL Timeout                       >=300 seconds                                          40                                           Warning     
cURL Version                       >=7.18.1                                               7.85.0                                       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 ( V7.4.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, mbstring, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, readline, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           120                                          Pass        
PHP Max Input Time                 >=30 seconds                                           120                                          Pass        
PHP Memory Limit                   >=128M                                                 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.0                                                  7.4.33                                       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.39-42-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                       63.29 MB                                               
Operating System                   Linux                                                  
Request Time                       1676902859                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Response Test O.K.                                     
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
Cache control enabled              No                                                     
MainWP Dashboard Version           Latest: 4.3.1 | Detected: 4.3.1 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 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 child sites              7                                                      
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 enabledYes                                                    
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Activity Log for MainWP            2.1.0                                                                                                           
MainWP Bulk Settings Manager Extension4.0.4                                                  Deactivated                                  Warning     
MainWP Clean and Lock Extension    4.0.1.2                                                Deactivated                                  Warning     
MainWP Clone Extension             4.0.1                                                  Deactivated                                  Warning     
MainWP Code Snippets Extension     4.0.1                                                  Deactivated                                  Warning     
MainWP Comments Extension          4.0.3                                                  Deactivated                                  Warning     
MainWP Custom Dashboard Extension  4.1.2                                                  Actived                                      Pass        
MainWP Domain Monitor Extension    4.0                                                    Deactivated                                  Warning     
MainWP Favorites Extension         4.0.8                                                  Deactivated                                  Warning     
MainWP Google Analytics Extension  4.0.4                                                  Deactivated                                  Warning     
MainWP Lighthouse Extension        4.0.2                                                  Actived                                      Pass        
MainWP Maintenance Extension       4.1.1                                                  Deactivated                                  Warning     
MainWP Pro Reports Extension       4.0.7                                                  Deactivated                                  Warning     
MainWP Team Control                4.0.2                                                  Deactivated                                  Warning     
MainWP Time Capsule Extension      4.0.1.1                                                Deactivated                                  Warning     
MainWP White Label Extension       4.1.1                                                  Deactivated                                  Warning     

### Plugin                         Version                                                Status                                    ###

Activity Log for MainWP            2.1.0                                                  Active                                       
MainWP Child                       4.3.1                                                  Active                                       
MainWP Child Reports               2.1                                                    Active                                       
MainWP Dashboard                   4.3.1                                                  Active                                       
SiteGround Optimizer               7.3.0                                                  Inactive                                     
SiteGround Security                1.4.0                                                  Active                                       
Temporary Login Without Password   1.8.1.1                                                Active                                       
WP 2FA - Two-factor authentication for WordPress2.4.1                                                  Inactive                                     

Thank you for the system report.

Several of your extensions are out of date, including Pro Reports and Domain monitor, which is very likely the reason for the issue you’re describing.

If your Dashboard isn’t showing an available update for the extensions, it may be necessary to re-activate the Extension API as described in this document: Activate Extension(s) API - MainWP Documentation

After that, please update all of your extensions, and let us know if that resolves your issue.

Huh — I’m pretty sure I did all that before, and thought it was all up to date (I tend to act on update notifications pretty fast, and there were no notifications of pending updates).

Anyway, I went through those steps again, and then went into the WordPress admin menu to complete the updates. It now seems to be working, thanks — although I can’t check whether the domain monitor tokens are working yet because they aren’t in the built-in reports and annoyingly the update has deleted my custom report template…

I’ll have to see if I can recover a copy from my host’s daily backups, and then check. For future reference, is there a special place to put custom reports so that they don’t get deleted by updates? (I just stored it alongside the built-in templates before, but clearly that wasn’t so good…)

Great, I’m glad the it’s working now.

You can check if the Domain Monitor tokens are working simply by entering them in the Report introduction message or Report closing message and then then either check the Preview or download the PDF.

Yes, custom reports should be stored in /wp-content/uploads/mainwp/report-templates/ so that they don’t get lost with extension updates.

You can find more information about Custom Report Templates in our help document: Pro Reports extension overview - MainWP Documentation

I recovered the file from backup and can now confirm that all tokens now work as expected. Great.

Clearly I missed that bit about /wp-content/uploads/mainwp/report-templates/ before — I’m using it now though!

All good now — many thanks for your help Bojan. :+1:

1 Like

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