I'm running Drupal 7, with an unmodified Bartik theme. When I enable Sweaver, with the Sweaver @fontyourface plugin, I receive a http error response code 500. When I check my Apache 2 error.log, I have the following message:

 PHP Fatal error:  Call to undefined function google_fonts_api_fontyourface_css() in /var/www/mysitename/sites/all/modules/sweaver/plugins/sweaver_plugin_fontface/sweaver_plugin_fontface.inc on line 27

This issue only occurs under my admin user, as Sweaver is enabled, attempting to load the @fontyourface Sweaver plugin. This issue does not occur to normal authenticated users. I have seen this behavior on two separate Drupal 7 installs.

Any suggestions?

Comments

bancarddata’s picture

This was fixed here:

http://drupal.org/node/1020860

You can just patch the file as shown in the attachment, or I would imagine you can download the latest development copy and it would have the patch already.

swentel’s picture

Status: Active » Fixed

Yep, like bancarddate says, fixed at #1020860: Work with @font-your-face 2.x

Status: Fixed » Closed (fixed)

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

jpw1116’s picture

As admin in D7.0, I'm still getting an identical "Call to undefined function google_fonts_api_fontyourface_css()" WSOD error with Sweaver 7.x-1.1 and @font-your-face 7.x-1.2.

Is it possible that something has reverted, or am I just cursed?

Oh, and the error seems to occurs after I flush the cache. . . .

UPDATE: Please disregard; I hadn't installed the latest dev version.

GeminiAgaloos’s picture

Status: Closed (fixed) » Active

When Sweaver "Font face" plugin is enabled, this error shows >> Fatal error: Call to undefined function google_fonts_api_fontyourface_css() in sites/all/modules/sweaver/plugins/sweaver_plugin_fontface/sweaver_plugin_fontface.inc on line 27

Configuration:
Drupal 7.9
@font-your-face 7.x-1.6
Common fonts 7.x-1.6 (enabled)
Google Fonts API 7.x-1.6 (enabled)

Sweaver 7.x-1.1
All sweaver plugins enabled. Error disappears when sweaver "Font face" plugin is disabled leaving all the other sweaver plugins enabled.

Logged in as user/6 with granted administrator access.

** This issue may have been fixed on the latest sweaver Dev version but it has not been made clear in both the sweaver and fontyourface project sites that the Sweaver Dev version must be used for Sweaver's "Font face" plugin to work.

A little note in the Sweaver and Fontyourface project pages would be very helpful for people using both these modules for the first time :)

GeminiAgaloos’s picture

Status: Active » Closed (fixed)

confirming this issue fixed on the DEV version: Sweaver 7.x-1.x-dev

Configuration:
Drupal 7.9
@font-your-face 7.x-1.6
Common fonts 7.x-1.6 (enabled)
Google Fonts API 7.x-1.6 (enabled)
Sweaver 7.x-1.x-dev

This sweaver dev version so far works with fontyourface with the sweaver "Font face" plugin enabled.
Fontyourface enabled fonts now show up in the sweaver font family drop down list.
sweet!

flock’s picture

Drupal 7.10
@font-your-face 7.x-1.6
Common fonts 7.x-1.6 (enabled)
Font Provider: Typekit
Sweaver 7.x-1.1 = issue persistently shows up
Sweaver 7.x-1.x-dev = issue solved :)