I just recently installed this module, set it up with all the correct variables from Google, enabled it on the content type and lastly enabled it on the specific node. Directly after saving the node's settings, I get this error from Drupal:
warning: Attempt to assign property of non-object in /var/www/taxschool/public_html/includes/theme.inc on line 1862.
I'll be looking further into this, but would like to let others know.
Thank you,
-Marcus
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1003478-language-fix-2.patch | 1.37 KB | attiks |
| #3 | 1003478-language-fix.patch | 1.42 KB | attiks |
Comments
Comment #1
nerdacus commentedFound it.
The global language variable was being rewritten, so I just change the name of the temp variable like so:
This is much similar to #986612: $type overwritten if passed by reference.
-Marcus
Comment #2
michaelmalak commentedThank you for finding that!
Just to be pedantic, for others like myself who may not yet be PHP programmers, the variable name has to be changed in multiple places:
Comment #3
attiks commented#2
global $google_conversion_language;is wrong, you need theglobal $language;to be able to access$language->languageat line 192Patch attached
Comment #4
attiks commentedNew patch attached, it uses the current language, so people will see the information in their language
Comment #5
jasonsavino commented