Pro reports settings - Rules table JS errors

Hi, I have added some custom rules to exclude some activity from showing in report logs.

In some sites, the rules table shows correctly, all fields are select2 fields, and I can add new rules. In short, all are working fine.

But some other sites, the rules table is showing weird, the fields are not select2 fields, and when I click the +Add New Rule button, a JS error appears in the console and the new rule line is NOT added.


table-js-error-on-click

Most sites are showing the weird version with the error. Very few sites are correct.

I can’t find any notable difference between 2 sites with correct and wrong table:

  • I use the same MainWP version (5.1.1)
  • I use the same MainWP Report version (2.2)
  • I use the same WP version (6.5.4)
  • I use the same Woo version (8.6.1)
  • The database value is exactly the same in both sites
a:2:{s:19:"general_records_ttl";i:200;s:13:"exclude_rules";a:4:{s:11:"exclude_row";a:22:{i:0;s:0:"";i:1;s:0:"";i:2;s:0:"";i:3;s:0:"";i:4;s:0:"";i:5;s:0:"";i:6;s:0:"";i:7;s:0:"";i:8;s:0:"";i:9;s:0:"";i:10;s:0:"";i:11;s:0:"";i:12;s:0:"";i:13;s:0:"";i:14;s:0:"";i:15;s:0:"";i:16;s:0:"";i:17;s:0:"";i:18;s:0:"";i:19;s:0:"";i:20;s:0:"";i:21;s:0:"";}s:14:"author_or_role";a:22:{i:0;s:0:"";i:1;s:0:"";i:2;s:0:"";i:3;s:0:"";i:4;s:0:"";i:5;s:0:"";i:6;s:0:"";i:7;s:0:"";i:8;s:0:"";i:9;s:0:"";i:10;s:0:"";i:11;s:0:"";i:12;s:0:"";i:13;s:0:"";i:14;s:0:"";i:15;s:0:"";i:16;s:0:"";i:17;s:0:"";i:18;s:0:"";i:19;s:0:"";i:20;s:1:"0";i:21;s:0:"";}s:9:"connector";a:22:{i:0;s:5:"posts";i:1;s:12:"wordpressseo";i:2;s:5:"media";i:3;s:5:"posts";i:4;s:5:"posts";i:5;s:5:"users";i:6;s:5:"users";i:7;s:8:"comments";i:8;s:8:"comments";i:9;s:5:"posts";i:10;s:5:"media";i:11;s:5:"media";i:12;s:5:"media";i:13;s:5:"posts";i:14;s:5:"users";i:15;s:5:"users";i:16;s:12:"wordpressseo";i:17;s:11:"woocommerce";i:18;s:16:"mainwp_wordfence";i:19;s:5:"posts";i:20;s:0:"";i:21;s:5:"posts";}s:7:"context";a:22:{i:0;s:7:"product";i:1;s:0:"";i:2;s:0:"";i:3;s:17:"product_variation";i:4;s:10:"shop_order";i:5;s:0:"";i:6;s:5:"users";i:7;s:0:"";i:8;s:8:"comments";i:9;s:9:"cms_block";i:10;s:7:"archive";i:11;s:8:"document";i:12;s:5:"image";i:13;s:17:"shop_order_refund";i:14;s:8:"profiles";i:15;s:8:"sessions";i:16;s:10:"wpseo_meta";i:17;s:0:"";i:18;s:0:"";i:19;s:12:"oembed_cache";i:20;s:0:"";i:21;s:11:"shop_coupon";}}}

I will appreciate any help with this.
Thanks

Hey @dichagr

Thanks for bringing this to our attention.

We are aware of an issue where adding exclusion rows can fail in some cases, and that it can produce that JS error in the console.

We will be addressing this for the next version of the MainWP Child Reports plugin.

1 Like

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