Support » Plugin: Web Ninja Google Analytics » [Plugin: Web Ninja Google Analytics] undefined variable and constant

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve had to fix those errors every time I update this plugin for a while now. I actually make three edits:

    Add a line before line 752 right after the function declaration for “wgba_debug”:

    function wbga_debug($message) {
      global $wbga_debug_enabled;  // insert this line
      if ($wbga_debug_enabled) {

    Then, go to the function “wgba_track_user” and change the third line of that function to make it look like this:

    if (!($user_level)) {

    Finally, I also have to make a change to the in the Stat Dashboard Settings section. There’s a missing “php” opening a block of PHP code that will cause issues on some systems. It’s on line 1076 in the file and looks like this:

    <? if(!class_exists('SimpleXMLElement'))

    I alter it like so:

    <?php if(!class_exists('SimpleXMLElement'))

    cm258

    Plugin Author joshfowler

    (@joshfowler)

    Thanks for catching those. I just changed the code and pushed it to wordpress. It should tell you to update to 1.0.9 soon.

    Thank you!
    Maybe the author will fix it in the plugin…

    You’re welcome…

    Maybe the author will fix it in the plugin…

    Looks like he just updated to 1.0.9, and incorporated those three fixes…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Web Ninja Google Analytics] undefined variable and constant’ is closed to new replies.