Closed (duplicate)
Project:
Cufón
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2010 at 17:57 UTC
Updated:
22 Dec 2010 at 15:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mohammed j. razemHi,
When activating Cufon, every module that outputs anything in
$closurewill be broken. I noticed the line$vars['closure'] = theme('closure');infunction cufon_preprocess_page(&$vars)which does nothing but break other modules.If you want to output anything in
$vars['closure'] = theme('closure');please usehook_footerComment #2
mohammed j. razem$vars['closure'] = theme('closure');in
cufon.modulein line 112.Comment #3
ghazlewoodYeah what doublethink said, this module is causing the google_analytics module to output the tracking code twice! Eeek! Anyone having strange problems with their $closure region should comment or remove line 112 of cufon.module
I'd patch but it's a pretty simple fix! Here's hoping the maintainer comes out of hibernation soon ;)
Comment #4
electblake commentedyeah, anything that uses $closure (in my case better_messages weren't displaying) - removing the seemingly pointless $vars['closure'] call frees up other modules from accessing $closure again.
Comment #5
miceno commentedSame problem for me. Enabling Cufon and then better_messages are not displayed ;(
Any other fix for this?
Comment #6
Shaney commentedI encountered this too. I've attached a patch that uses hook_footer() to replace what was being done in the preprocessor function. this removes the need to rerender theme('closure') which causes duplicate js to be added for any module (inc. google_analytics) that adds js in its hook_footer().
It still rerenders the scripts variable which should not be a problem and may be needed.
Comment #7
Anonymous (not verified) commentedWorks for me (had a duplication of Google Analytics code as a result of this issue). Marking as reviewed.
Comment #8
Anonymous (not verified) commentedWorks for me, too!
Comment #9
aiphesi've applied this patch, but how to know if the code work ? before to see result in GA page...and to be sure there is no problem ...
Comment #10
mohammed j. razemTry installing Better Messages module. Will it work?
Comment #11
aiphesok i've enabled better messages, but i dont know what the plus...and disabled cufon...no need because i use css properties for typos..will see if events and search tracking works
EDIT: no result, events are still empty..i dont know what thinking about that...
Comment #12
vinmassaro commentedI've applied this patch and while it stops Google Analytics code from printing twice, it has stopped Cufon from functioning. I did have success with the patch from this thread: http://drupal.org/node/591838
Comment #13
blackice2999 commentedhi,
same here theme('closure') broken some modules. I have removed the theme function and moved the selectos js to init function. it´s works fine for me.
best regards
Dennis
Comment #14
JamieR commentedThe google analytics duplication issue happened for us as well. I hope this patch gets into the module soon.
Cheers! Jamie.
Comment #15
EvanDonovan commentedThe patch from #591838: Makes the Google analytics pagetracker print twice (need to remove the reset of $closure from preprocess_page) is cleaner than the one in #734630-13: Cufon module disables $closure in preprocess_page function, and should be the one applied to this module.
This is absolutely critical to be committed, and a one-liner fix. Can it be committed ASAP, and a new release rolled?
Thanks so much for the module, btw :)
Comment #16
fonant commentedremoving the single line
$vars['closure'] = theme('closure');works fine here.
Comment #17
EvanDonovan commentedGo to the other issue instead: #591838: Makes the Google analytics pagetracker print twice (need to remove the reset of $closure from preprocess_page), as per #15 & 16.