Undefined variable
-
I am getting a lot of PHP Notice’s from the tracking-code.php file.
It appears that the problem is with the $homeurl variable.
From v2.3.1 the variable was set as part of an if…else conditional. In v2.4, the else statement has been removed so that if
get_option('set_domain')=='on'
resolves to false, the following lines call an unset $homeurl throwing an error.Possibly related, it appears that in v2.4 this variable is not used at all. The
ga('create',...
statement no longer uses this variable as an argument.This seems to be persistent in v2.4.1 and the trunk.
Thank you for taking the time to build, maintain and update this plugin.
https://www.ads-software.com/plugins/google-universal-analytics/
- The topic ‘Undefined variable’ is closed to new replies.