• Hello. I used this plugin fine over the past year. However, I switched hosts (not sure if that matters). And when trying to activate the plugin on a fresh WP install, it comes up with this error:

    Plugin could not be activated because it triggered a fatal error.

    The Font Awesome plugin caught a fatal error: Font Awesome could not be activated.

    Your WordPress server failed trying to send a request to the Font Awesome API server

    My other WP plugins are working correctly except this one.

    Could you help me please?

Viewing 1 replies (of 1 total)
  • Plugin Author mlwilkerson

    (@mlwilkerson)

    Hi @guyokai, yes it’s quite possible that the switch to the new host is the problem.

    When the plugin is activated, it does need to contact the Font Awesome API server in order to get fresh metadata about what versions are available and such. If it can’t contact the API server, then it cannot initialize. This is a network request that would be send from your WordPress server to the Font Awesome API server (it’s not something that happens in your web browser).

    If your WordPress server’s networking rules are configured appropriately, you or your web hosting provider should be able to run this on the WordPress server:

    curl -H "Content-Type: application/json" --data '{ "query": "{ release(version: \"latest\") { version } }" }' https://api.fontawesome.com

    And see a response like this:

    {"data":{"release":{"version":"5.15.4"}}}

    (with whatever the latest release number is)

    If that doesn’t work for some reason, then the plugin won’t be able to activate either.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error’ is closed to new replies.