Title: Error &quot;SlimStatParams is not defined&quot;
Last modified: August 20, 2016

---

# Error "SlimStatParams is not defined"

 *  Resolved [JohnRDOrazio](https://wordpress.org/support/users/lwangaman/)
 * (@lwangaman)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/)
 * With the latest update to SlimStat, I get the error message in the Chrome Console:
   
   Uncaught ReferenceError: SlimStatParams is not defined wp-slimstat.js:1 I notice
   this error doesn’t show up on wp-admin, only on the frontend.
 * [http://wordpress.org/extend/plugins/wp-slimstat/](http://wordpress.org/extend/plugins/wp-slimstat/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/page/2/?output_format=md)

 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382600)
 * I’ve got the same problem. There is something wrong with wp-slimstat.js. Unfortunately,
   I’m a bit stumped what `SlimStatParams var SlimStat =...` is supposed to be.
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382697)
 * Hi there,
 * let’s work together on trying to catch this bug. I have a new beta ready for 
   testing, would you help me test it and see how it goes?
 * Contact me with your name and a reference to this post:
 * [http://www.duechiacchiere.it/contatto](http://www.duechiacchiere.it/contatto)
 * Thanks,
    Camu
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382802)
 * [@all](https://wordpress.org/support/users/all/),
 * a new version has just been released, which fixes the problem according to my
   tests. Please feel free to upgrade and report back to confirm that the issue 
   is now resolved.
 * Thank you,
    Camu
 * PS: a vote for my plugin would be a nice way to show your appreciation!
 *  Thread Starter [JohnRDOrazio](https://wordpress.org/support/users/lwangaman/)
 * (@lwangaman)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382803)
 * Yes that fixes for me! That was quick thanks, I was gonna help you beta test 
   but you were quicker!
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382806)
 * Great!
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382807)
 * 2.9.1 is still broken for me (even with JavaScript Mode disabled).
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382808)
 * [@pepe](https://wordpress.org/support/users/pepe/) have you disabled the CDN?
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382809)
 * I’ve managed to install the new release on my development machine. It does not
   work at all, even with JS disabled I get no tracking.
 * With FireBug’s console window, I was able to determine that wp-slimstat.js.php
   returns `-110 : invalid public key`.
 * Since 2.9, wp-slimstat also completely breaks javascript if W3TC’s “minify” feature
   is enabled.
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382810)
 * When JS mode is enabled, wp-slimstat-js.php returns `-203 : Visit not tracked`
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382811)
 * Hi Pepe,
 * -203 means that the WP SlimStat thinks that the IP address of your visitors is
   not correct, for some reason.
 * What’s the URL of your site, again?
 * Thanks,
    Camu
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382812)
 * That’s the local dev install, so I guess it gets 127.0.0.1 – the -203 would be
   sort of OK then for this case. But what’s going on when JS mode is disabled?
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382813)
 * What’s the WP handle of your JS file? I think I’ve got an idea why things completely
   break on the production site. I’ve got minification enabled (W3TC minify for 
   HTML and inline JS and Script Optimizer for general JS and CSS). I guess the 
   minification routine doesn’t like the embedded VBScript.
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382814)
 * I think W3TC is adding the javascript params AFTER the script that needs them.
   Other users have reported the same problem:
 * [http://wordpress.stackexchange.com/questions/58180/w3-total-cache-minification-breaks-wp-localize-script](http://wordpress.stackexchange.com/questions/58180/w3-total-cache-minification-breaks-wp-localize-script)
 * And
 * [http://wordpress.org/support/topic/plugin-w3-total-cache-javascript-auto-minify-wp_localize_script?replies=8](http://wordpress.org/support/topic/plugin-w3-total-cache-javascript-auto-minify-wp_localize_script?replies=8)
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382815)
 * The handle is wp_slimstat:
 *     ```
       wp_register_script('wp_slimstat', plugins_url('/wp-slimstat.js', __FILE__), array(), self::$version, true);
       wp_enqueue_script('wp_slimstat');
   
       // $params is defined and populated
   
       wp_localize_script('wp_slimstat', 'SlimStatParams', $params);
       ```
   
 *  [pepe](https://wordpress.org/support/users/pputzer/)
 * (@pputzer)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/#post-3382816)
 * Yeah, I don’t use W3TC minify for JS files because I had some problems in the
   past. I’ve added `wp_slimstat` as an exempted file and now my scripting works
   again. Visits are tracked again in “Spy View”, but not in the “Right Now” tab.
   The result of the wp-slimstat-js.php call is a four digit hex code, does that
   seem right?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/page/2/?output_format=md)

The topic ‘Error "SlimStatParams is not defined"’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

## Tags

 * [defined](https://wordpress.org/support/topic-tag/defined/)
 * [not](https://wordpress.org/support/topic-tag/not/)
 * [ReferenceError](https://wordpress.org/support/topic-tag/referenceerror/)
 * [slimstat](https://wordpress.org/support/topic-tag/slimstat/)

 * 17 replies
 * 3 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/error-slimstatparams-is-not-defined/page/2/#post-3382818)
 * Status: resolved