I upgraded a site from 7.x-3.0-alpha2 to 7.x-3.0-alpha5 and on going to the settings page for my 7.x-2.x sub-theme was greeted by

• Notice: Undefined variable: font_your_face_enabled in include_once() (line 104 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 191 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 191 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 191 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 191 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 191 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 191 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 280 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 280 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 385 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 385 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 385 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).
• Notice: Undefined variable: font_your_face_enabled in include_once() (line 446 of \sites\all\themes\adaptivetheme\at_core\inc\forms\settings.fonts.inc).

I’ve removed the root path for clarity. I’m not running @font-your-face. Please let me know what else I can do to help troubleshoot this issue!

Comments

Jeff Burnz’s picture

You've done enough already, cheers!

Jeff Burnz’s picture

Version:7.x-3.0-alpha5» 7.x-3.x-dev
Status:Active» Fixed

If you want to fix this yourself you can add one line to settings.fonts.inc, around line 28:

$font_your_face_enabled = FALSE;

So it looks like this:

  // Do some stuff if @font-your-face is enabled
  $font_your_face_enabled = FALSE;
  if (module_exists('fontyourface')) {

That will initialize/define the variable. Cheers, I need to remember to switch modules off as part of my tests.

Pushing the fix to DEV in the next round of commits.

Status:Fixed» Closed (fixed)

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