Back to Community

Troubleshooting cURL Error 28: Resolving Timeout Issues in OMGF

3 threads Sep 9, 2025

Content

If you're using the 'OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.' plugin and encountering a frustrating cURL error 28: Resolving timed out after X milliseconds when trying to download fonts, you're not alone. This is a common server-related connectivity issue that prevents the plugin from accessing Google's servers. This guide will walk you through the most effective steps to diagnose and resolve the problem.

What is cURL Error 28?

This specific cURL error indicates that the plugin's attempt to connect to fonts.google.com to download font files timed out before a connection could be established. The "resolving" part of the error points to a problem in the initial DNS lookup phase. This is typically not a bug within the OMGF plugin itself, but rather a configuration or restriction on your web server or hosting environment.

Most Common Causes and Solutions

1. Check Server-Level cURL and Firewall Settings

The first and most crucial step is to confirm that your web server allows outbound cURL requests. Some hosting providers, especially those with strict security policies, might block these requests by default.

  • Contact Your Hosting Provider: Reach out to their support team and ask them to verify that outbound HTTP/HTTPS requests via cURL are permitted from your server to fonts.google.com. Ask them to specifically check for any firewall rules that might be blocking the request.
  • Verify cURL is Enabled: While most servers have cURL enabled, it's worth confirming. You can create a simple PHP info file (<?php phpinfo(); ?>) and search for 'cURL' to see if its support is enabled.

2. Investigate PHP and Server Error Logs

Often, the most detailed information about what is going wrong can be found in your server's error logs. The 'OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.' team frequently suggests users check these logs for more context.

  • How to Find Logs: The location of PHP error logs varies by hosting provider. You may find them in your hosting control panel (e.g., cPanel, Plesk) under sections like "Metrics," "Logs," or "Errors." If you cannot locate them, your hosting provider's support documentation should have instructions, or you can contact them directly for help.
  • What to Look For: Scan the logs for entries around the time you tried to download the fonts. Look for any errors related to cURL, timeouts, DNS resolution, or permission denials.

3. Review Timeout and Resource Limits

Although the error is a DNS resolution timeout, it can sometimes be related to other server constraints.

  • PHP Configuration: Ensure that values for max_execution_time and default_socket_timeout are set high enough (e.g., 60 or 120 seconds) to allow the process to complete. You can adjust these in your php.ini file or via your hosting control panel.
  • Server Resources: In some cases, a lack of available memory (memory_limit) can cause processes to fail indirectly. Ensure this value is set to a reasonable amount (e.g., 256M or 512M).

4. Test for Temporary Network Issues

On rare occasions, the error can be caused by a temporary network glitch or a brief outage on Google's end.

  • Wait and Retry: Simply wait a few hours and try the download process again. This often resolves the issue if it was a transient network problem.

Summary

The cURL error 28 is almost always a server-level connectivity issue. The most reliable path to a solution is to work with your hosting provider, providing them with the error message and asking them to investigate outbound cURL connectivity and DNS resolution. Checking your PHP error logs will provide critical evidence to help pinpoint the exact cause.