Closed (fixed)
Project:
@font-your-face
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2012 at 09:55 UTC
Updated:
21 Mar 2012 at 04:10 UTC
when I enable the" @font-your-face UI" it causes the admin theme to switch randomly between the default theme and admin theme
Comments
Comment #1
sreynen commentedStrange. There's nothing in the module code that sets the theme at all. Does it only switch within the @font-your-face pages, or everywhere in the admin section?
Comment #2
stevieb commentedIt's slightly bizzare but I've configured my fonts and just turned the UL off and the problem disapears
Comment #3
sreynen commentedIf you have time to help track down the problem, it would be great to fix this for everyone. But if you don't have time and it's not a big problem for you now, that's totally understandable.
Comment #4
stevieb commentedI'll be doing a fresh install over the weekend and will check the errors
Comment #5
stevieb commentedI've just started a fresh install and have encountered the issue again - this time the first module I installed was @font-your-face .. followed by views ... Internationalization ... so far no problems then I installed "Entity translation" and kaboom the switching started ...
on my last install I had also encountered the following error when uploading an image ...
Notice: Undefined index: styles in fontyourface_ajax_render_alter() (Line 684 modules/fontyourface/fontyourface.module).
my fresh install is to find the source of this as well
Comment #6
hongpong commentedAlso interested in this issue - added Notice to issue title because it might be the relevant msg. Seems like its possible nothing sets $vars['styles']
$commands[] = ajax_command_prepend('head', $vars['styles']);I think this may require isset() to avoid the PHP notice. fontyourface_add_css_in_preprocess does set $vars['styles'] but maybe not in all conditions?
Possible solution to the notice itself, anyway:
Comment #7
j4 commentedJust to confirm that I also receive this error message while uploading images.
Comment #8
kingfisher64 commentedI too get the error message.
Notice: Undefined index: styles in fontyourface_ajax_render_alter() (line 684 of C:\wamp\www\websites\development\sandbox\sites\all\modules\fontyourface\fontyourface.module).Comment #9
sreynen commentedFix committed to dev.