Closed (duplicate)
Project:
Google Analytics
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jun 2011 at 14:25 UTC
Updated:
25 Apr 2012 at 06:41 UTC
Jump to comment: Most recent file
When I add any kind of content it shows me this on that page !
Notice: Trying to get property of non-object in googleanalytics_page_alter() (line 167 of /var/www/drupal.flossk.org/sites/all/modules/google_analytics/googleanalytics.module).
Notice: Trying to get property of non-object in googleanalytics_page_alter() (line 167 of /var/www/drupal.flossk.org/sites/all/modules/google_analytics/googleanalytics.module).
Notice: Undefined index: in googleanalytics_page_alter() (line 167 of /var/www/drupal.flossk.org/sites/all/modules/google_analytics/googleanalytics.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | googleanalytics-1199032-8.patch | 982 bytes | boobaa |
Comments
Comment #1
hass commentedTry disabling other modules/theme one by one, one must have a major bug, but not GA.
Comment #2
Panthrax commentedThe messages dissapear when the core module Content translation is deactivated again.
Comment #3
hass commentedDuplicate of #1173778: E_ALL: Node object could be empty? Before posting new issues try dev...
Comment #4
wvlgen commentedI have the same problem, but only with Internet Explorer.
When I switch off "Content Translation", I get other messages:
•Notice: Undefined index: access in _menu_translate() (line 778 of /home/rab/public_html/includes/menu.inc).
•Notice: Undefined index: access in menu_local_tasks() (line 1892 of /home/rab/public_html/includes/menu.inc).
and this with Internet Explorer and Firefox. I didn't try the other browsers.
Regards
Comment #5
wvlgen commentedIt seems to me that you get the error only in IE --AND-- for pages set to "language neutral" in an multilanguage environment.
Comment #6
boran commentedHere is one fix, to stop a warning:
I found it before I read this issue or tried dev, sorry. But am noting it here it case it might help others.
Comment #7
wvlgen commentedWith version 7.x-1.2 I have this problem also under Firefox:
Notice: Trying to get property of non-object in googleanalytics_page_alter() (line 167 of /home/rab/public_html/sites/all/modules/google_analytics/googleanalytics.module).
Notice: Trying to get property of non-object in googleanalytics_page_alter() (line 167 of /home/rab/public_html/sites/all/modules/google_analytics/googleanalytics.module).
Notice: Undefined index: in googleanalytics_page_alter() (line 167 of /home/rab/public_html/sites/all/modules/google_analytics/googleanalytics.module).
For the first language (before the other languages are being translated and the menu's are being built.These messages should be when a site is being translated and is not finished.
Regards
Comment #8
boobaaFor those poor souls who happen to stick with latest supported stable version (7.x-1.2 for the time being) and do want to run multilanguage sites with some content only available in one of languages, attached is the patch that seems to be solve this issue. (Backported from -dev, though, where it's already fixed since I-don't-know-when.)