Support » Plugin: Advanced Custom Fields: Font Awesome Field » Error Message: CDN Downtime

  • Resolved Joy Ivory

    (@joy-ivory)


    Hi Matt,

    I’ve got this error message:

    The plugin “Advanced Custom Fields: Font Awesome” has detected an error while retrieving the latest FontAwesome icons. This may be due to temporary CDN downtime. However if problems persist, please contact your hosting provider to ensure cURL is installed and up to date. Detected cURL version: (here’s nothing)

    Is this a problem of the provider or a bug in the app?

    Best regards
    Anya

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    Hello,

    I just did some testing locally and all of the different endpoints used by this plugin to get the FontAwesome latest version and icons seem to be working as expected.

    So one of two things has/happened or is happening:

    1) There was a temporary downtime and things should be working not for you.
    or
    2) There is a problem on your server that is preventing this plugin from working.

    I suspect you are experiencing issue #2. I added the error that you are seeing after some users were experiencing issues with the plugin, and it was found that they had a very out of date version of cURL that was causing issues with https (SSL) urls.

    Part of the error you see is supposed to show the version of cURL that you have installed to further help verify if you are on an outdated version. The fact that your server is not able to retrieve any version number at all might mean that cURL isn’t working or is not configured properly.

    Are you able to contact your hosting provider to inquire further about which cURL you have installed and if it is working?

    Hi Matt,

    first of all a big Thanks, that you’ve answered so quickly.

    My Provider told me that cURL is installed in the version 7.60.0.

    Best regards
    Anya

    • This reply was modified 7 months, 2 weeks ago by  Joy Ivory.
    Plugin Author Matt Keys

    (@mattkeys)

    That version is a little old, but not as old as the versions of cURL I’ve seen others have issues with. I’ve written up some debug code that you could test with if you are comfortable doing so. This would require you to place some code in your themes functions.php file and you should only do so if you are comfortable making edits to this file.

    Here is the code:

    function test_wp_remote_get() {
    	if ( ! isset( $_GET['test_fa'] ) ) {
    		return;
    	}
    
    	$free_manifest_url = 'http://cdn.jsdelivr.net/gh/mattkeys/FontAwesome-Free-Manifest/5.x/manifest.yml';
    	$remote_get	= wp_remote_get( $free_manifest_url );
    
    	// Log the results to a file called log_fontawesome.txt in the root of your website
    	file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/log_fontawesome.txt', print_r($remote_get, true));
    
    	// Alternatively print the results to the screen then end exit
    	// echo "<pre>";
    	// print_r( $remote_get );
    	// echo "</pre>";
    
    	// die( 'END' );
    }
    add_action( 'admin_init', 'test_wp_remote_get' );

    To activate this test, you would navigate to: https://yoursiteurlhere.com/wp-admin/?test_fa

    This would attempt to make the same call this plugin makes to get the fontawesome icons manifest, and then log the results of the attempt to a file called “log_fontawesome.txt” in the root of your site folder, eg: https://yoursiteurlhere.com/log_fontawesome.txt

    If this function call is getting some kind of error, this would let us see what that error is.

    Hi Matt,

    this is the error message of the log file:

    WP_Error Object
    (
    [errors] => Array
    (
    [http_request_failed] => Array
    (
    [0] => cURL error 7: Failed to connect to cdn.jsdelivr.net port 80: No route to host
    )

    )

    [error_data] => Array
    (
    )

    )

    Plugin Author Matt Keys

    (@mattkeys)

    Great, I’m glad you were able to capture this error. Doing some googling it seems this is probably one of two things:

    1) A configuration issue or firewall on your web server that your hosting company can hopefully help you troubleshoot.

    or

    2) Possibly some kind of WordPress firewall that you have installed? If you have any plugins that you think may be interfering with this you could see if they have a whitelist you can use. Or you can temporarily deactivate them to see if they are causing the problem.

    Either way please report back with any findings that may help other users in the same position.

    Hi Matt,

    the problem is solved. I’m a little embarrassed, but it was my fault.
    The issue wasn’t a firewall. It was a lot easier.
    I have changed in the settings the version of Font Awesome from 5 to 4, but I’ve missed to renew the selection of the icons at the page. So at the page everything looks fine, but the website preview didn’t show the icons.
    But I want to thank you very much for your help. I appreciate this.
    Your plugin is great!

    Best wishes
    Anya

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error Message: CDN Downtime’ is closed to new replies.