1. I add my Authentication Key to the site and save it.
  2. Go to the project sub-tab, select my project from pulldown.
  3. When I save the project setting, I get the below error and none of my enabled project fonts are imported into the site.

I have tried using both the latest 2.7 and dev D7 versions of this module. (uninstalled, run updates, reinstalled, run updates.. used drush to download and enable) and I made sure my fonts.com project had the correct domain name, fonts, etc.

Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_enable_from_active_project() (line 824 of /var/www/vhosts/domain_name.com/httpdocs/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).

THank you in advance for any help with getting this module working.

Comments

kbeck303’s picture

My temporary solution is to back port the module to the 7.x-2.6 version..

kiwimind’s picture

I have come across this same error. Not sure if it's to do with trying to add it to a local site or not...

nycguyjason’s picture

I experienced the same bug with the same version of module and core.
D7 core 7.20
fontyourface 7.x-2.7

original_ZX81’s picture

I experienced the same bug with the same version of module and core.
D7 core 7.20
fontyourface 7.x-2.7

^ ditto

luksak’s picture

Same same. 2.6 works.

fchandler’s picture

D7.22 @font-your-face2.7
Same error with even more line refernces:

Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 246 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 249 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 250 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 254 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 255 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 257 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 263 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_font_inline_css() (line 267 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_browse_form() (line 1177 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_browse_form() (line 1183 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_browse_form() (line 1183 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_browse_form() (line 1186 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_browse_form() (line 1193 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fonts_com_browse_form() (line 1199 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).
Notice: Trying to get property of non-object in fontyourface_short_preview_text() (line 545 of /var/www/cheera.biz/sites/all/modules/fontyourface/fontyourface.module).
Notice: Trying to get property of non-object in fontyourface_preview() (line 530 of /var/www/cheera.biz/sites/all/modules/fontyourface/fontyourface.module).
Notice: Undefined offset: 0 in fonts_com_saved_api_font() (line 1338 of /var/www/cheera.biz/sites/all/modules/fontyourface/modules/fonts_com/fonts_com.module).

repeats starting with "line 1338" four times.

Dave Alitz’s picture

Another (perhaps less than helpful) data point...

I had the same error when I first upgraded to 2.7 on my drupal 7.21 installation. After reading others comments here, I uninstalled the fonts.com module, rolled back to 2.6, re-installed the fonts.com module, and added the fonts.com fonts back to my site. That fixed things; but I was still running 2.6

This morning, I updated to drupal 7.22 and also updated the views module. Since I didn't see any action here, I decided to upgrade to 2.7 on my test site and see if I could find anything myself. This time, the upgrade went fine and I'm not getting the errors.

I have no idea what may have straightened things out. But perhaps others can use the information to decipher what's going on.

fchandler’s picture

Did you replace the fonts.com module, from within font-your-face, with the older one, or the entire font-your-face module when going from 2.7 to 2.6?

peezy’s picture

If it helps, I was able to get the errors to stop by only updating the fonts.com module to 2.7 and leaving the rest of the fontyourface module at 2.6. The errors are gone, but my fonts aren't loading.

[update] I just reverted everything to the 2.6 version of fontyourface, and suddenly everything is working with Views 3.7 and Drupal 7.22. Here's what I did:

  • Completely uninstall and remove fontyourface 2.7, including the fonts.com helper module
  • Download and enable fontyourface 2.6, but do not enable the 2.6 fonts.com helper module
  • Download and enable only the 2.7 version of fonts.com helper module (I have drush and git so it was easy to download the 2.7 version and only commit the files that related to fonts.com)
  • Configure fontyourface / fonts.com in the usual way (At this point, I didn't receive any errors but my fonts weren't loading)
  • Download and enable version 2.6 of fonts.com helper module

I also flushed caches (a lot) and added fonts from my website (as opposed to updating my project on fonts.com). It's possible that there was something else that made it start working, the above steps are what I did and I'm somehow back up and running.

chriz001’s picture

This issue seems to have been caused by http://drupal.org/node/1856622
So now that the $saved_fonts are keyed, it cant grab index 0.

Here is a patch that should resolve the errors.

chriz001’s picture

Component: Code (general) » Fonts.com (provider)
Status: Active » Needs review

change status.

Anonymous’s picture

#10 works for me. After applying the patch uninstall font.com module, then reinstall and configure.

Drave Robber’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed #10 works.

peezy’s picture

#10 does not work for me. If it matters, I'm trying to use the "add selector in theme CSS" option.

joyseeker’s picture

#10 works for me after I did #12. Thanks!!

sreynen’s picture

Status: Reviewed & tested by the community » Fixed

Patch in #10 is committed in dev. I'm hoping to do a new stable release in the next couple days. I believe the only necessary action after applying the code change is to re-save the active project. If anyone's having trouble after doing that, please provide details and move this back to active.

Status: Fixed » Closed (fixed)

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