Can't add new token in Pro Reports

I’ve been running MainWP and Pro Reports for over a year now, but some weird stuff has started happening with the Pro Reports. I’ve been experiencing some data not showing (simple things like [client.name]). I decided to try a workaround and add more of my own tokens to try to get my reports back on track, but the latest version of MainWP and Pro Reports seems to have an issue with the custom tokens.

When I go to add a custom token, I get the modal to create the name and description of the token, but when I click “create token” nothing happens (modal stays in place, page doesn’t change). I’ve installed a fresh copy of Wordpress, MainWP, and Pro Reports with no other plugins installed and running on the Twenty Twenty Three theme and it’s still doing this.

Any help would be appreciated!

Hey @lindseytyner

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, no problem, 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/1.1.1n                               Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.18.1                                               7.64.0                                       Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    , pcntl_alarm, pcntl_async_signals, pcntl_exec, pcntl_fork, pcntl_get_last_error, pcntl_getpriority, pcntl_setpriority, pcntl_signal, pcntl_signal_dispatch, pcntl_signal_get_handler, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_unshare, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifcontinued, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig,            
PHP Exif Support                   N/A                                                    YES ( V7.4.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, FFI, PDO, PDO_Firebird, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apc, apcu, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, memcached, mongodb, msgpack, mysqli, mysqlnd, odbc, openssl, pcre, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, readline, redis, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           60                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PHP Post Max Size                  >=2M                                                   10M                                          Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   10M                                          Pass        
PHP Version                        >=7.0                                                  7.4.30                                       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                                                    ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION            
MySQL Version                      >=5.0                                                  10.4.20-MariaDB-1:10.4.20+maria~buster-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.9
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       20.55 MB                                               
Operating System                   Linux                                                  
Request Time                       1672946049                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Not expected HTTP response body:                       
Server Software                    Apache/2.4.54 (Debian)                                 
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance                                                        
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 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              1                                                      
Optimize for shared hosting or big networksNo                                                     
Plugin advanced automatic updates enabledNo                                                     
Primary backup system              MainWP Legacy Backups                                  
REST API enabled                   No                                                     
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledNo                                                     
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

MainWP Pro Reports Extension       4.0.12                                                 Actived                                      Pass        

### Plugin                         Version                                                Status                                    ###

Akismet Anti-Spam                  5.0.2                                                  Inactive                                     
Breeze                             2.0.14                                                 Inactive                                     
Hello Dolly                        1.7.2                                                  Inactive                                     
MainWP Dashboard                   4.3.1                                                  Active                                       
MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall4.84                                                   Inactive                                     

Hi @lindseytyner

Thanks for the system report.

It appears there are two separate issues here.

a) Some tokens not working

Version 4.3 of the MainWP Dashboard introduced the new Clients feature, and with it, we have moved some of the tokens from the Edit page of the Individual Child site, to the edit page of the Client.

After you create a client and define relevant values, and assign child sites to them, you will be able to use all of those tokens in the same fashion.


More information about Clients: Manage Clients - MainWP Documentation

We will be removing those token fields from the Individual Child site settings soon.

b) Inability to create new custom Pro Report tokens

This appears to be a bug. We have forwarded it to the development team for further investigation and resolution.

Ah, thank you. I didn’t realize that some tokens had been moved to clients so that probably fixes some of my issues. I did dig into the code a bit yesterday to look into the issue of the inability to create Pro tokens. I found the issue there which may be helpful to your development team. I was able to resolve it by making the following edits in /mainwp-pro-reports-extension/js/mainwp-pro-reports-extension.js

The trigger to launch the button function is incorrect. Also the use of the .trim() function was creating an error. I hope that helps. Thanks.

Thanks for sharing that with us. I’ve passed it along to the development team.

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