when I enable the" @font-your-face UI" it causes the admin theme to switch randomly between the default theme and admin theme

Comments

sreynen’s picture

Status: Active » Postponed (maintainer needs more info)

Strange. 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?

stevieb’s picture

It's slightly bizzare but I've configured my fonts and just turned the UL off and the problem disapears

sreynen’s picture

If 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.

stevieb’s picture

I'll be doing a fresh install over the weekend and will check the errors

stevieb’s picture

I'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

hongpong’s picture

Title: Theme issues » Theme issues/ Notice: Undefined index: styles in fontyourface_ajax_render_alter

Also 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:

if (isset($vars['styles'])) {
  $commands[] = ajax_command_prepend('head', $vars['styles']);
}
j4’s picture

Just to confirm that I also receive this error message while uploading images.

kingfisher64’s picture

I 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).

sreynen’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Fixed

Fix committed to dev.

Status: Fixed » Closed (fixed)

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