0
Welcome Guest! Login
0 items Join Now

SOLVED Google fonts not loading

    • Clausp's Avatar
    • Clausp
    • Newbie
    • Posts: 1
    • Thanks: 0

    Re: SOLVED Google fonts not loading

    Posted 12 years 5 months ago
    • Hi Tom,

      Thanks for reply, here is my details:

      This is a fresh installation, done by a Rockettheme 'rocketlauncher'.
      Windows 7, MS IIS 7.5, Joomla v.2.5.7, php v.5.3.10, template = Rockettheme Graffito, browser used and tested with are Chrome, Safari, Internet Explorer 9, Firefox.

      Chrome Console shows:

      Failed to load resource: the server responded with a status of 404 (Not Found) 'http://192.168.10.164:88/sportsdans/libraries/gantry/admin/widgets/fonts/js/google-fonts.json'
      Failed to load resource chrome-extension://okffnhejfhpaihcocihfbojpjpiekjbp/

      --- My Gantry v3.2.16 site on same server, where Google fonts show up a little differently works fine.

      Best regards
      Claus

      Tom Dee wrote:
      Hi Claus,

      1) Can you offer a bit more information like:
      Versions of all software (server, php, joomla, template, browser etc)
      Is this a fresh installation or an upgrade?

      2) Open your Chrome or Firefox browser and while viewing the admin area of Joomla!
      (the page that mentions about fonts loading) and right click on the page and select
      "inspect element"

      3) Go to the 'Console' tab of the debugger (you might have to reload the page)
      and copy the error shown and post it here.

      Maybe we can help.
      Regards
      Tom
  • Re: SOLVED Google fonts not loading

    Posted 12 years 5 months ago
    • Hi Claus,

      In my humble opinion your issue is not related to the problem that I was having with the specific NGINX web server.

      Thus I am not able to help you with this one.

      Just a couple of things that come to mind...
      1) Are you perhaps running some type of ad or banner blocking plugins? If so try running your browsers in incognito mode this way none of your browser plugins are loaded and if "font loading..." is still present take a look at the console errors again in each browser.

      2) Have you tried temporarily disabling any antivirus software on your system (they also utilize ad blocking features)?

      3) Are your paths set up properly? The first error you're receiving indicates that the "google-fonts.json" file cannot be found.

      4) I would also update Joomla to the latest version.

      Regards,
      Tom
  • Re: SOLVED Google fonts not loading

    Posted 12 years 5 months ago
    • Hi Tom,


      Thanks for your reply, and time.

      My error seems to relate to the path to google-fonts.json:
      GET http://192.168.10.164:88/sportsdans/libraries/gantry/admin/widgets/fonts/js/google-fonts.json 404 (Not Found) mootools-core.js:485

      But, the path is correct, and I cannot find problems with the access rights...


      Regards
      Claus
    • domiz74's Avatar
    • domiz74
    • Newbie
    • Posts: 1
    • Thanks: 0

    Re: SOLVED Google fonts not loading

    Posted 12 years 5 months ago
    • Hi all,
      I have the same problem.... :cry:

      Resolved? How?
  • Re: SOLVED Google fonts not loading

    Posted 12 years 2 months ago
    • Had the same problem issue with Google fonts not loading in the Gantry template admin panel.

      The issue turned out to be an htaccess rule that disallowed access to the directory where the .json file is kept.

      I was getting a 403/forbidden error when trying to access the file located at www.example.com/libraries/gantry/admin/w...js/google-fonts.json

      My .htaccess file was protecting that folder.

      I used AdminTools (great firewall/security app for Joomla btw) htacess maker for enhanced security. If your htaccess file was created by hand or with different sofeware, the fix will differ slightly.

      In my case, I was to use AdminTools to add an exception by adding "libraries/gantry/admin/widgets/fonts/js/google-fonts.json" to the exceptions list in the section titled: Allow direct access, except .php files, to these directories.

      The resulting .htacess security exception rule looks like so:

      RewriteRule ^libraries\/gantry\/admin\/widgets\/fonts\/js/ - [L]

      Hope this helps someone.
  • Re: SOLVED Google fonts not loading

    Posted 12 years 1 week ago
    • We have the same issue using Gantry 4.1.19 and this is not solved for us by adding the .htaccess exception.

      Uncaught TypeError: Cannot call method 'get' of null in fonts.js line 6.

      We have a custom template based initially on the gantry 3 default template. This has caused much of the layout interface to break.

      Can you please let us know what else we can try or might need to do to update our template to G4?
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Google fonts not loading

    Posted 12 years 1 week ago
    • There were lot more suggestions in this thread beside adding htaccess exception. Did you try them all?
    • Check my services at: Mihha-Vision
  • Re: SOLVED Google fonts not loading

    Posted 12 years 6 days ago
    • Igor Mihaljko wrote:
      There were lot more suggestions in this thread beside adding htaccess exception. Did you try them all?

      Yes, the JS code change suggested was rolled into 3.1.2. I checked 3.1.19 and it's still there.

      Also, the problem isn't access to fonts.js as that is accessible publicly via the absolute URL, I checked.

      The error seems to be in the calling convention. We compared the gantry 3 default template (on which ours is based) with gantry 4 default template-options.xml. In gantry 4 the calling convention seems to be:
      <field name="family" type="fonts" default="s:helvetica" primary="helvetica" ...

      Whereas in gantry 3 the equivalent was:
      <field name="family" type="fonts" default="helvetica" ...

      We changed all instances of this declaration but we're still getting the same error.
  • Re: SOLVED Google fonts not loading

    Posted 12 years 5 days ago
    • Related to this, I've been delving into how webfonts are implemented in Gantry 4.

      The Gantry 4 default template has just one type="fonts" field that is automatically populated with the google webfonts. I tried adding more such fields but it seems to only work with the first field of that type. Additional fonts fields only show the standard fonts, not the extra Google webfonts.

      How would you suggest we add multiple font select lists with webfonts, e.g. one for body, another one for headings etc?
    • Selim Rana's Avatar
    • Selim Rana
    • Newbie
    • Posts: 15
    • Thanks: 0
    • Senior Web Designer @ bdthemes ltd

    Re: SOLVED Google fonts not loading

    Posted 11 years 11 months ago
    • same problem me too :cry: please help me.
    • Best Regards
      Selim Rana

Time to create page: 0.096 seconds