- I add my Authentication Key to the site and save it.
- Go to the project sub-tab, select my project from pulldown.
- 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | fontyourface-error-connecting-fonts-com-1923604-10.patch | 500 bytes | chriz001 |
Comments
Comment #1
kbeck303 commentedMy temporary solution is to back port the module to the 7.x-2.6 version..
Comment #2
kiwimind commentedI have come across this same error. Not sure if it's to do with trying to add it to a local site or not...
Comment #3
nycguyjason commentedI experienced the same bug with the same version of module and core.
D7 core 7.20
fontyourface 7.x-2.7
Comment #4
original_ZX81 commented^ ditto
Comment #5
luksakSame same. 2.6 works.
Comment #6
fchandler commentedD7.22 @font-your-face2.7
Same error with even more line refernces:
repeats starting with "line 1338" four times.
Comment #7
Dave Alitz commentedAnother (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.
Comment #8
fchandler commentedDid 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?
Comment #9
peezy commentedIf 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:
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.
Comment #10
chriz001 commentedThis 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.
Comment #11
chriz001 commentedchange status.
Comment #12
Anonymous (not verified) commented#10 works for me. After applying the patch uninstall font.com module, then reinstall and configure.
Comment #13
Drave Robber commentedConfirmed #10 works.
Comment #14
peezy commented#10 does not work for me. If it matters, I'm trying to use the "add selector in theme CSS" option.
Comment #15
joyseeker commented#10 works for me after I did #12. Thanks!!
Comment #16
sreynen commentedPatch 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.