Pro Reports displaying token and not token data

Hi. Can someone please tell me what I’m doing wrong with extension tokens in Pro Reports?

I have a functioning custom report (operating from the correct wp-content/uploads/mainwp/report-templates/ directory) and I’m trying to include data from Lighthouse and Domain monitor extensions. For some reason the actual token name is printing in the report not the token data. I’ve wrapped the token in its own config-section-data tags but still no go. Token names for both Lighthouse and Domain Monitor are printing.

Both Lighthouse and Domain Monitor properly display data on the monitored domain’s dashboard so I know the extensions are working for this monitored domain.

Clearly I’m missing something that possibly instantiates the data. Can anybody point me in the right direction?

Thanks in advance.

Hey @lwdeddie

Can you share the code for the Lighthouse and Domain Monitor sections so that we can try to reproduce the issue?

And 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.

Thanks much for responding. I’m certain I’M the culprit here with improper syntax. Here is the code I’m currently including. One block displays the token itself and the other displays blank space. Thanks for your help.



Domain monitor updated date: []

Domain monitor creation date: []

Domain monitor expiry date: []

Domain monitor expires: [domain.monitor.expires]

Domain monitor status: [domain.monitor.status]

Domain monitor last check: [domain.monitor.last.check]

### 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                                                  5.8.5                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1q                               Pass        
cURL Timeout                       >=300 seconds                                          60                                           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                                                    exec, passthru, shell_exec, system,                      
PHP Exif Support                   N/A                                                    YES ( V7.2.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, PDO_ODBC, 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, ionCube Loader, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, session, shmop, snmp, soap, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PHP Post Max Size                  >=2M                                                   120M                                         Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   120M                                         Pass        
PHP Version                        >=7.0                                                  7.2.34                                       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                                                    utf8mb4                                                  
MySQL Mode                         N/A                                                    NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION            
MySQL Version                      >=5.0                                                  5.7.39                                       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                       18.24 MB                                               
Operating System                   Linux                                                  
Request Time                       1663016018                                             
Server Protocol                    HTTP/2.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
Cache control enabled              No                                                     
MainWP Dashboard Version           Latest: 4.2.7 | Detected: Warning              
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              22                                                     
Optimize for shared hosting or big networksNo                                                     
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              WPvivid Backup for MainWP                              
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   ###

Advanced Uptime Monitor Extension  5.2.1                                                  Actived                                      Pass        
MainWP Branding Extension                                                Actived                                      Pass        
MainWP Code Snippets Extension     4.0.1                                                  Actived                                      Pass        
MainWP Comments Extension                                                Actived                                      Pass        
MainWP Custom Dashboard Extension  4.0.2                                                  Actived                                      Pass        
MainWP Domain Monitor Extension    4.0.1                                                  Actived                                      Pass        
MainWP Favorites Extension         4.0.5                                                  Actived                                      Pass        
MainWP Google Analytics Extension                                                Actived                                      Pass        
MainWP Lighthouse Extension        4.0.2                                                  Actived                                      Pass        
MainWP Maintenance Extension                                                Actived                                      Pass        
MainWP Pro Reports Extension       4.0.4                                                  Actived                                      Pass        
MainWP Rocket Extension            4.0.3                                                  Actived                                      Pass        
MainWP Virusdie Extension          4.0.0                                                  Actived                                      Pass        
MainWP Vulnerability Checker Extension4.1                                                    Actived                                      Pass        
MainWP WooCommerce Status Extension4.0.8                                                  Actived                                      Pass        
MainWP Wordfence Extension         4.0.3                                                  Actived                                      Pass        
WPvivid Backup MainWP              0.9.27                                                                                                          

### Plugin                         Version                                                Status                                    ###

Akismet Anti-Spam                  4.1.8                                                  Inactive                                     
Favicon by RealFaviconGenerator    1.3.25                                                 Active                                       
MainWP Child Reports               2.0.8                                                  Inactive                                     
MainWP Dashboard                                                         Active                                       
Page Builder by SiteOrigin         2.16.17                                                Active                                       
SiteOrigin Widgets Bundle          1.38.2                                                 Active                                       
White Label CMS                    2.3                                                    Active                                       
WPvivid Backup MainWP              0.9.27                                                 Active                                       

Would you mind sharing the PHP file of the custom report?

You can send it to me privately if you wish by clicking my name and then the button “Message”.

Hi Bojan. No I don’t mind at all. Thank you for the help.

Sending the file now.

Just to provide an update on this -

Part of the syntax of the code that was inserted in the custom report template was incorrect, and thus, the tokens were not properly showing the values.

For example, here is the required code to insert in order to add a section for Domain Monitor, which in this example includes two of its tokens.

  1. Near the beginning of the PHP file, we add this line which checks if the extension is active

  2. And at the desired spot in the PHP, we add a section for Domain Monitor data. We’ve added two tokens as two rows in the table as an example. Simply add or remove table rows with the desired tokens to customize it.

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