• Resolved 216marketing

    (@216marketing)


    Hello, I am getting a the error, OMGF encountered an error while fetching this site’s frontend HTML: 503 – Service Unavailable.

    This might be because I block all non USA traffic. I can edit the firewall rule to use your plugin, but what country would this be coming from?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    This error occurs if OMGF (PHP) isn’t able to ping itself. The way OMGF works is as follows:

    • When you hit Save & Optimize, OMGF does a cURL lookup to the site’s frontend (the home URL),
    • Then it fetches the (HTML) source code from the response and parses it for Google Fonts (URLs pointing to fonts.googleapis.com/css, and a few other variations)

    In this case, the cURL lookup fails. So, you might want to check your firewall settings, because it seems that PHP isn’t allowed to “access itself”.

    To clarify, no external servers are involved anywhere while running OMGF. The entire process of fetching the HTML, parsing and downloading the Google Fonts and generating the stylesheets takes place on your server and no external connections are made (aside from connecting to fonts.googleapis.com to download the font files :-))

    Let me know if you need anything else!

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    FYI, the next release will contain a little workaround when this error occurs. OMGF will instruct you and show a link which you can click to run the optimization anyway.

    Releasing it Monday!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘OMGF encountered an error while fetching this site’s frontend HTML: 503’ is closed to new replies.