Ultimate Google Analytics Plugin Array_Key_Exists error
-
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
- The topic ‘Ultimate Google Analytics Plugin Array_Key_Exists error’ is closed to new replies.