0
Welcome Guest! Login
0 items Join Now

SOLVED Google fonts not loading

  • SOLVED Google fonts not loading

    Posted 11 years 7 months ago
    • Hi,

      On Gantry v 4.0.2 , 4.0.3, and 4.0.4 and Kirigami Template v 1.2 (Admin area), Google fonts are not loading.
      The word "Loading..." is showing in the drop down menu. (Please refer to image)

      I was told by one of my associates that via Firebug, It was returning an HTTP 405 (not allowed) error, while trying to post to a json file.

      No cache is used. (Hosted on NGINX v.1.2.x web server ( wiki.nginx.org ) and Ubuntu Linux 12.04 with current versions of PHP & MySQL)

      I would appreciate it if someone can offer me some assistance. :)

      Thank you

      This image is hidden for guests.
      Please log in or register to see it.
    • Last Edit: 11 years 7 months ago by Anastasios Dionysiou.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Google fonts not loading

    Posted 11 years 7 months ago
    • Please PM super admin login details and site URL because this is something we would definitely like to debug on your server and web site
    • Check my services at: Mihha-Vision
  • Re: SOLVED Google fonts not loading

    Posted 11 years 7 months ago
    • Good morning Igor,

      Thank you for your immediate reply.
      Two PM,s have been sent to you with the requested details.

      Have a great day,
      Tom
  • Re: SOLVED Google fonts not loading

    Posted 11 years 7 months ago
    • I got hold of our programmer and he pinpointed the problem in the following file:

      libraries/gantry/admin/widgets/fonts/js/fonts.js

      To fix the issue with the Google Fonts not loading when Joomla is hosted on a NGINX web server
      just change the following:

      Line 8 of fonts.js

      FROM:
      new Request.JSON({url:e,

      TO:
      new Request.JSON({method:'get',url:e,

      This way you're not POSTing when you should be GETting.

      So I'll mark this solved

      P.S. I certainly hope this is fixed in the next update.
    • Last Edit: 11 years 7 months ago by Anastasios Dionysiou.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Google fonts not loading

    Posted 11 years 7 months ago
    • Hi Tom,

      thank you very much for providing this additional info regarding NGINX server and how to fix the issue with it.

      I am sure our devs will be very grateful with this :D
    • Check my services at: Mihha-Vision
  • Re: SOLVED Google fonts not loading

    Posted 11 years 7 months ago
    • You are very welcome Igor.
      It is the least we can do for this great forum.

      This is a simple issue that can be overlooked easily since Apache is not as temperamental and will work just fine without the 'GET'.

      But since NGINX is gaining ground rapidly and it's lighting speed simply cannot be compared to Apache, we thought about trying it out.

      All is well. :P
  • Re: SOLVED Google fonts not loading

    Posted 11 years 6 months ago
    • Adding onto this thread. If anyone is using Akeeba's Admin Tools, then the following exception has to be made to the .htaccess file

      In the exceptions area
      "Allow direct access, except .php files, to these directories"
      add....
      libraries/gantry/admin/widgets/fonts/js/
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: SOLVED Google fonts not loading

    Posted 11 years 6 months ago
  • Re: SOLVED Google fonts not loading

    Posted 11 years 5 months ago
    • Hi,

      Just installed new site fully updated with Gantry 4.1.2.
      Still the problem with Google Font not being loaded persists.- "Loading...".

      Also tried altering fonts.js - to no help.

      Any new advise?

      /CP
  • Re: SOLVED Google fonts not loading

    Posted 11 years 5 months ago
    • 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

Time to create page: 0.068 seconds