Title: OMFG http_request_failed &#8211; cURL error 28:
Last modified: October 14, 2020

---

# OMFG http_request_failed – cURL error 28:

 *  Resolved [Lem Technology Web](https://wordpress.org/support/users/lemdeals/)
 * (@lemdeals)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/)
 * Hi Daan…
 * When I configure the optimización mode as a: Manual (default), the follow error
   messages appears:
 * OMGF ha encontrado un error al descargar las fuentes de Google: http_request_failed–
   cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received
 * I am using the latest version of DIVI and WP-Rocket
 * If i change the optimization mode to: Automatic, OMGF works, but the performance
   is very poor, to the point that it is better not to have it because the performance
   is better without the OMGF plugin.
 * Thanks for your help, and I hope that this information helps you to help me, 
   or to identify possible problems and you can improve them.
 * Luis

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13538058)
 * That’s actually very helpful. 🙂
 * > Operation timed out after 30001 milliseconds with 0 bytes received
 * Which explains your other issue (please keep all information together in one 
   support ticket, so I’m closing the other ones now and we’ll continue here). Apparently
   your server isn’t able to download all the fonts in 30 seconds. The fact that
   it says ‘0 bytes received’ means that it’s blocking the download altogether.
 * So there are a few things to research:
 * – Are your folder permissions (specifically OMGF’s cache folder) setup correctly?
   The folder should be 0755.
    – Is your SSL certificate setup correctly? WordPress’
   wp_remote_get() method verifies SSL certificates. – At the moment that you attempt
   a download, can you find any other relevant entries in your PHP logs? This might
   point out why the downloads are blocked.
 *  Thread Starter [Lem Technology Web](https://wordpress.org/support/users/lemdeals/)
 * (@lemdeals)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13538408)
 * Thanks Daan…
 * Thanks for your help….
    I hope the follow information can be useful for you in
   order to improve the wonderful OMGF Plugin.
 * I searched in the error.log file and found this lines:
 * [14-Oct-2020 23:24:38 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /home2/yosiga/public_html/wp-content/plugins/host-webfonts-local/includes/
   api/class-download.php on line 252
    [14-Oct-2020 23:24:38 UTC] PHP Warning: Invalid
   argument supplied for foreach() in /home2/yosiga/public_html/wp-content/plugins/
   host-webfonts-local/includes/api/class-download.php on line 252 [14-Oct-2020 
   23:24:38 UTC] PHP Warning: Invalid argument supplied for foreach() in /home2/
   yosiga/public_html/wp-content/plugins/host-webfonts-local/includes/api/class-
   download.php on line 252 [14-Oct-2020 23:24:38 UTC] PHP Warning: Invalid argument
   supplied for foreach() in /home2/yosiga/public_html/wp-content/plugins/host-webfonts-
   local/includes/api/class-download.php on line 252
 * Best regards,
    Luis
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13538969)
 * Hi again, Luis,
 * Definitely helpful, but which version are you running? Because the current version
   doesn’t have a `foreach()` at line 252 🙂
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13538977)
 * Ok, nevermind. I see you’re using 4.1.1.
 * That bug was fixed in 4.1.3.
 *  Thread Starter [Lem Technology Web](https://wordpress.org/support/users/lemdeals/)
 * (@lemdeals)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13540039)
 * Thanks Daan….
 * I am using 4.2.3 version (Versión 4.2.3) …
 * The technical support at the hosting where my page is hosted, they do not find
   any problem associated with what is happening.
 * Thanks
    Luis
 *  Thread Starter [Lem Technology Web](https://wordpress.org/support/users/lemdeals/)
 * (@lemdeals)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13540209)
 * Hi again, Luis,
 * Definitely helpful, but which version are you running? Because the current version
   doesn’t have a foreach() at line 252 🙂
 * Yesterday I tried to install version 4.1.1 without success. Those entries in 
   the Log correspond to version 4.1.1, but now I have version 4.2.3 installed …,
   but it doesn’t work.
 * Thank you
    Luis
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13540442)
 * Yeah, I thought so.
 * No entries in the PHP logs today, after you run a manual auto detect? (click ‘
   Save changes’)
 *  Thread Starter [Lem Technology Web](https://wordpress.org/support/users/lemdeals/)
 * (@lemdeals)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-13540478)
 * HI Daan,
 * No entries in the PHP logs today, after you run a manual auto detect? (click ‘
   Save changes’)
 * No, today using the 4.2.3 version there isn’t entry in the PHP logs, but the 
   page behaves very slow, and the output from GTmetrix, show the follow messages
   like Bad request….
 * RECOMMENDATION GRADE TYPE PRIORITY
    Avoid bad requests F (0) CONTENT HIGH What’s
   this mean? The following requests are returning 404/410 responses. Either fix
   the broken links, or remove the references to the non-existent resources.
 * [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-500.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-500.woff)
   
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-500.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-500.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-600.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-600.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-600.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-600.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-700.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-700.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-700.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-700.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-800.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-800.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-800.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/montserrat-normal-800.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-300.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-300.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-300.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-300.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-400.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-400.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-400.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-400.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-500.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-500.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-500.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-500.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-700.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-700.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-700.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-builder-googlefonts-cached/rubik-normal-700.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-400.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-400.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-400.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-400.woff2)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-700.woff](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-700.woff)
   [https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-700.woff2](https://online-tesis.com/wp-content/cache/omgf-webfonts/et-gf-open-sans/open-sans-normal-700.woff2)
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-14046428)
 * Hi! Sorry for never getting back to you.
 * If the requests you listed return 404’s, that means that the files don’t exist.
   I.e. you should rerun autodetection to make sure the files are recreated again.
 * Also, if you use a caching plugin like WP Rocket or WP Super Cache then change
   OMGF’s cache directory to something outside the `/cache/` directory, e.g. `/uploads/
   omgf/`.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘OMFG http_request_failed – cURL error 28:’ is closed to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/omfg-http_request_failed-curl-error-28/#post-14046428)
 * Status: resolved