If you’re running WordPress with Elementor on a low-spec local machine (a “potato laptop”) and using Flyenv with PHP 8.4.7, MySQL 9.0, and Nginx 1.25, you might run into this fatal error when using the Elementor plugin:
Fatal error: Maximum execution time of 30 seconds exceeded inC:\Users\Administrator\wp672\wp-includes\Requests\src\Transport\Curl.php online 510
This happens specifically after activating Elementor and using the “Hello Elementor” starter theme.
Fatal error: Maximum execution time of 30 seconds exceeded inC:\Users\Administrator\wp672\wp-includes\Requests\src\Transport\Curl.php online 510
max_execution_time
to 300 seconds because this is just development environment in potato laptop right? Who cares how long it takes.504 Gateway Timeout Nginx 1.25.5
# Increase timeouts for local developmentclient_body_timeout 300s;client_header_timeout 300s;send_timeout 300s;proxy_read_timeout 300s;
server{ listen 80; listen 443 ssl; server_name wp672.test wp672.test; index index.php index.html index.htm default.php default.htm default.html; root "C:/Users/Administrator/wp672";
client_body_timeout 300s; client_header_timeout 300s; send_timeout 300s; proxy_read_timeout 300s;
42 collapsed lines
ssl_certificate "C:/Program Files/PhpWebStudy-Data/server/CA/1748849431656/CA-1748849431656.crt"; ssl_certificate_key "C:/Program Files/PhpWebStudy-Data/server/CA/1748849431656/CA-1748849431656.key"; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m;
#PHP-INFO-START include enable-php-84.conf; #PHP-INFO-END
#REWRITE-START URL rewrite rules include "C:/Program Files/PhpWebStudy-Data/server/vhost/rewrite/wp672.test.conf"; #REWRITE-END
# Block access to sensitive files location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) { return 404; }
# Allow SSL certificate verification directory location ~ \.well-known{ allow all; }
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; error_log off; access_log off; }
location ~ .*\.(js|css)?$ { expires 12h; error_log off; access_log off; } access_log "C:/Program Files/PhpWebStudy-Data/server/vhost/logs/wp672.test.log"; error_log "C:/Program Files/PhpWebStudy-Data/server/vhost/logs/wp672.test.error.log";}
max_execution_time
php.ini config since the problem was from Nginx, not from PHPnginx
configuration, restart Nginxmax_execution_time = 300
again in php.ini and seemax_execution_time = 300
in php.ini
and updating Nginx timeouts to 300s allowed Elementor to run without fatal errors.max_execution_time
too high (e.g., 3000) — it may trigger 502 Bad Gateway.