• Hello – when I activate the uga plugin I am getting the message below. I don’t understand what it is that I need to do to fix the problem. Can anyone help me.

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in blah blah/public_html/blah blah blah.net/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 203

    and here is the code where I’ve found “array_key_exists”:

    if (!$uga_options || !array_key_exists(‘$option_name’, $uga_options)) {
    // no options in database yet, or not this specific option
    // create default options array
    uga_debug(‘Constructing default options array’);
    $uga_default_options=array();
    $uga_default_options[‘internal_domains’] = $_SERVER[‘SERVER_NAME’];
    if (preg_match(‘@www\.(.*)@i’, $uga_default_options[‘internal_domains’], $parts)>=1) {
    $uga_default_options[‘internal_domains’] .= ‘,’.$parts[1];
    }

    Much appreciated. Elizabeth

Viewing 1 replies (of 1 total)
  • Hi Elizabeth

    Is it possible that you have changed the domain name for your website?

    If you change the domain name after installing the plugin, you need to change the reference to the internal domain name. The fastest and easiest way is to deactivate the plugin, remove the options row named ‘ultimate_ga_options’ in your options table and re-activate the plugin.

    I’ve made a small blog post about it here:
    https://giblitz.com/2009/07/20/error-ultimate_ga-php-on-line-203/

    Terry.

Viewing 1 replies (of 1 total)
  • The topic ‘Ultimate Google Analytics Plugin Array_Key_Exists error’ is closed to new replies.