Support » Plugin: Advanced Custom Fields: Font Awesome Field » Field for timeout parameter?

  • Resolved marciojuarez

    (@marciojuarez)


    I noticed Font Awesome stopped loading on my website backend dropdown with version 6+. Not sure why, but after some debugging I noticed wp_remote_post() was timing out, so adding the ‘timeout’ parameter to the call would fix the issue. Is it good to add a field in the settings to set the timeout? Or is this overkill?

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

    (@mattkeys)

    Hey @marciojuarez,

    When you say with version 6+, do you mean FontAwesome 6.x icons, or since Advanced Custom Fields released version 6.x of their plugin?

    Digging through the code for wp_remote_post it looks like 10 seconds is the default timeout. That is maybe on the low side to handle some edge cases where the API doesn’t respond in time due to high server load or other variables.

    I haven’t been able to reproduce the problem myself yet. Have you tested with a timeout value that solved your issue?

    Matt Keys

    Plugin Author Matt Keys

    (@mattkeys)

    I put together a potential fix/update to this issue if you are available to test.

    https://wordpress.org/plugins/advanced-custom-fields-font-awesome/advanced/

    Download the ‘development version’ from the above page. This sets timeouts on all FontAwesome API calls to 30 seconds.

    Let me know if that resolves the problem you are seeing.

    Matt Keys

    Thread Starter marciojuarez

    (@marciojuarez)

    Thank you! And yes, I meant FontAwesome 6.x. Sorry for the confusion. I’ve tried the ‘development version’ and that works great. Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.