Certain Tokens not working since last update (Pro Reports)

Hi there, I have a customized report with certain custom tokens that were working a week ago but no longer do (so they’re not displaying any info). I also realized that standard tokens like plugin updates work but theme updates are not showing either (I tested it also by switching to a standard report).

In case I messed up any code in these custom tokens (although I didn’t make any changes), I enclose the code where these missing tokens should be triggered so you can give it a quick look:

I also enclose a copy of the system report:

### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.2.1                                                  4.2.1                                        Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
MainWP White Label Extension       4.1.1                                                  API License Active                           Pass        
MainWP Bulk Settings Manager Extension4.0.4                                                  API License Active                           Pass        
MainWP Comments Extension          4.0.3                                                  API License Active                           Pass        
MainWP Custom Dashboard Extension  4.0.2                                                  API License Inactive                         Warning     
MainWP Google Analytics Extension  4.0.4                                                  API License Active                           Pass        
MainWP Lighthouse Extension        4.0                                                    API License Active                           Pass        
MainWP Maintenance Extension       4.1.1                                                  API License Active                           Pass        
MainWP Pro Reports Extension       4.0.8                                                  API License Active                           Pass        
MainWP Staging Extension           4.0.2                                                  API License Active                           Pass        
MainWP Team Control                4.0.2                                                  API License Active                           Pass        
MainWP UpdraftPlus Extension       4.0.5                                                  API License Active                           Pass        
MainWP Wordfence Extension         4.0.5                                                  API License Active                           Pass        
WordPress Version                  >=3.6                                                  5.9.3                                        Pass        
WordPress Memory Limit             >=64M                                                  256M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP Version                        >=7.0                                                  7.4.28                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           -1                                           Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   512M                                         Pass        
PHP Post Max Size                  >=2M                                                   256M                                         Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.18.1                                               7.71.0                                       Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1d                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             No functions disabled.                                 
PHP Loaded Extensions              Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, ionCube Loader, json, ldap, libxml, litespeed, mbstring, memcached, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, readline, redis, session, shmop, snmp, soap, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zlib
MySQL Version                      >=5.0                                                  10.5.15-MariaDB-cll-lve                      Pass        
MySQL Mode                         NO_ENGINE_SUBSTITUTION                                 
MySQL Client Encoding              utf8mb4                                                
Server Info                        
Server Software                    LiteSpeed                                              
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              ON                                                     
Server self connect                Response Test O.K.                                     
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Gateway Interface                                                                         
Memory Usage                       10.39 MB                                               
Request Time                       1650351582                                             
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              14                                                     
Use WP Cron                        Yes                                                    
Optimize for shared hosting or big networksNo                                                     
WP Core advanced automatic updates enabledYes                                                    
Plugin advanced automatic updates enabledYes                                                    
Theme advanced automatic updates enabledYes                                                    
Abandoned plugins/themes tolerance 365                                                    
Maximum number of posts to return                                                         
Maximum number of pages to return                                                         
Maximum number of comments         50                                                     
MainWP legacy backups enabled      No                                                     
Primary backup system              MainWP Legacy Backups                                  
Basic uptime monitoring enabled    No                                                     
Site health monitoring enabled     No                                                     
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 8                                                      
Maximum simultaneous install and update requests3                                                      
REST API enabled                   No                                                     
Cache control enabled              Yes                                                    
Active Plugins                     
MainWP Dashboard                   4.2.1                                                  Active                                       
Wordfence Security                 7.5.9                                                  Active                                       
WP Mail SMTP                       3.3.0                                                  Active                                       

If you need further access please let me know, Thank you in advance

Hi @eduardosans

I couldn’t replicate the issue with the Theme updates token. It’s working fine for me.

The only potential issue I see in your code is that you are using Wordfence, plugin, and theme updates tokens in the backups section which starts with an If statement that checks for an active backup solution.

From your system report, your Primary backup system is Legacy Backups, and it also shows that Legacy backups are disabled.

Please try removing that If statement and see if those tokens are working then.

1 Like

Hi there Bojan, I removed the if statement and it’s still not working. I also tried disabling wordfence but nothing. And that’s basically it, in this website there’s no other plugin besides yours, wordfence and wp mail smtp.

From my system report, I don’t even remember doing anything about legacy backups but I don’t think it’s going to be related.

I’m running out of ideas :S, f you need further access please let me know.


Thanks for attempting that.

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

1 Like

Problems were caused by a temp glitch on the user’s setup. As per the user’s verification, everything works as expected now.

1 Like

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