Hi,

I've just installed a D7 multisite plain simple and empty one.
I installed the 7.x dev version of GA with specifiing the url of the tar.gz and It failed to enable it afterwards. (Sorry, dont get the error message).
After manually enabled in the modules section I got 10 time this message:
Notice: Undefined variable: token_enabled googleanalytics_admin_settings_form() függvényben (/var/www/hosts/drupal7/docs/sites/all/modules/google_analytics/googleanalytics.admin.inc 231 sor).

I dont think this is normal functionality. However it seems to me that it is working fine besides these notices.
(Altough I'm familiar with PHP, I'm not a drupal developer, but it seems to me that a variable checking is needed there.)

Thanks,
TeeCee :o)

Comments

teecee’s picture

Sorry, I was dumb: I got the after-install errors in the dblog... ;-)

So here they are:

  • Notice: Undefined index: log update_authorize_install_batch_finished() függvényben (/var/www/hosts/drupal7/docs/modules/update/update.authorize.inc 236 sor).
  • Warning: Invalid argument supplied for foreach() update_authorize_install_batch_finished() függvényben (/var/www/hosts/drupal7/docs/modules/update/update.authorize.inc 236 sor).
  • Notice: Undefined index: log update_authorize_install_batch_finished() függvényben (/var/www/hosts/drupal7/docs/modules/update/update.authorize.inc 277 sor).
  • Notice: Undefined index: tasks update_authorize_install_batch_finished() függvényben (/var/www/hosts/drupal7/docs/modules/update/update.authorize.inc 278 sor).
  • Hope this helps.

ArthurC’s picture

I'm experiencing the same problem right now.

brightbold’s picture

I'm getting the same error after upgrading from drupal 7.0-beta2 to 7.0 release and from Google Analytics 7.x-1.x dev from 2010-10-23 to the most recent version. After the upgrade I received the following error:

You need to upgrade the deprecated profile segmentation settings to custom variables manually or you may loose tracking data in future!

I hadn't yet tried to do anything to resolve that so I assumed this error was related. But it sounds like teecee had this problem one a brand new install, so that may not be useful information for this issue.

geomojo’s picture

Same/related error (I think)...

* Notice: Undefined variable: token_enabled in googleanalytics_admin_settings_form() (line 231 of /home/frtrails/public_html/sandbox/sites/all/modules/google_analytics/googleanalytics.admin.inc).
* Notice: Undefined variable: token_enabled in googleanalytics_admin_settings_form() (line 231 of /home/frtrails/public_html/sandbox/sites/all/modules/google_analytics/googleanalytics.admin.inc).
* Notice: Undefined variable: token_enabled in googleanalytics_admin_settings_form() (line 231 of /home/frtrails/public_html/sandbox/sites/all/modules/google_analytics/googleanalytics.admin.inc).
* Notice: Undefined variable: token_enabled in googleanalytics_admin_settings_form() (line 231 of /home/frtrails/public_html/sandbox/sites/all/modules/google_analytics/googleanalytics.admin.inc).
* Notice: Undefined variable: token_enabled in googleanalytics_admin_settings_form() (line 231 of /home/frtrails/public_html/sandbox/sites/all/modules/google_analytics/googleanalytics.admin.inc).

hass’s picture

Status: Active » Fixed

Slipped through my fingers :-(

hass’s picture

Issue tags: -undefined variable

Removed tag abuse

teecee’s picture

Thanks for the fix and sorry for the 'tag abuse'!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.