How to Fix WooCommerce Timeout Errors in WordPress (2026)

17 August 2026

Fix WooCommerce timeout errors in WordPress. Step-by-step solutions for UK stores: increase PHP limits, optimise plugins, caching, and hosting.

What Causes WooCommerce Timeout Errors?

WooCommerce timeout errors typically occur when your WordPress server takes too long to process a request. In the UK, where internet speeds are fast but server resources can be limited, this often stems from slow shared hosting, excessive plugins, or large product databases. Common triggers include payment gateway callbacks, bulk product imports, or poorly optimised third-party extensions. The '504 Gateway Timeout' or 'PHP Fatal error: Maximum execution time exceeded' are typical signs. Understanding the root cause is the first step—whether it's a PHP memory limit, a slow external API, or an inefficient database query. Diagnosing properly saves time and prevents recurring issues for your UK online store.

Quick Fix: Increase PHP Execution Time and Memory Limit

The fastest solution to WooCommerce timeouts is to raise your PHP execution time and memory limit. In your WordPress root folder, edit the wp-config.php file and add: define('WP_MAX_EXECUTION_TIME', 300); also, increase memory via define('WP_MEMORY_LIMIT', '256M');. Alternatively, edit the php.ini file on your UK server: max_execution_time = 300, memory_limit = 256M. If you're on managed WordPress hosting, you can often do this from the control panel. Restart your web server after changes. These tweaks give WooCommerce more breathing room for heavy tasks like processing orders or updating inventory. Always back up your files first.

Optimise Your Database and Plugins for Speed

A bloated database is a major cause of WooCommerce timeouts, especially after months of order history. Clean up unnecessary post revisions, transient options, and spam comments. Use a plugin like WP-Optimize or run manual SQL queries via phpMyAdmin (ensure you back up first). Audit your plugins: disable and delete any that are unused. Many UK store owners run multiple caching or security plugins that conflict, causing slow queries. Keep only essential extensions and check for updated versions. Also, optimise your product images—large images slow down page loads and trigger timeouts. Regularly purge expired transients, and consider using a dedicated database optimisation service if you're not confident doing it yourself.

Use Caching and Content Delivery Networks (CDNs)

Caching reduces the server load on your WordPress site, directly preventing timeout errors. Install a reliable caching plugin like WP Rocket or W3 Total Cache to serve static HTML versions of your pages. For UK customers, a CDN like Cloudflare with UK points of presence (PoPs) ensures faster delivery of assets and takes pressure off your origin server. If you're using WooCommerce, be careful to exclude cart and checkout pages from caching to avoid session issues. Configure page caching, browser caching, and object caching (using Redis or Memcached). This is particularly beneficial during peak sales events, like Black Friday, when UK traffic surges and timeouts are common.

When to Upgrade Your UK Hosting Plan

If you've tried the above and still face WooCommerce timeouts, your hosting plan may be inadequate. Shared hosting is a common culprit for UK stores that experience traffic spikes. Consider switching to a UK-based VPS or dedicated WooCommerce host that offers guaranteed CPU and memory resources. Look for providers with data centres in the UK (e.g., London) for lower latency. Managed WooCommerce hosting often includes server-level caching, automatic scaling, and proactive monitoring. While it costs more, it's worth the investment if timeouts are costing you conversions. Before upgrading, check your server logs to confirm the issue is resource-related, and ask your host for their PHP config recommendations for WooCommerce.

FAQ

A WooCommerce timeout error happens when the WordPress server takes too long to process a request, often due to heavy scripts or resource limits. You'll see errors like '504 Gateway Timeout' or 'Maximum execution time exceeded' in your admin dashboard or checkout page.

Latest guides