I’m running WP2Static Version 7.1.6 (master branch) on LocalWP on my PC.
When trying to deploy to Netlify using the WP2Static Netlify plugin, I get a 405 error alert. It tells me to increase the max_execution_limit in PHP.
I have bumped that, and the memory limit for good measure, but it doesn’t fix the problem.
This is what I am using in wp-config to increase memory and execution limit:
set_time_limit(3000000); define( 'WP_MEMORY_LIMIT', '200000M' );
I am also using this in htaccess for same effect:
php_value memory_limit 200000M php_value max_execution_time 3000000
This is the error am seeing in my server logs:
2021/08/31 10:26:17 [error] 7368#4304: *42 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: , request: “POST /wp-admin/admin-ajax.php HTTP/1.0”, upstream: “fastcgi://127.0.0.1:10003”, host: “agentcakecom.local”, referrer: “http://agentcakecom.local/wp-admin/admin.php?page=wp2static”
And these are the logs from within WP2Static:
2021-08-31 10:36:35: Error while retrieving URL: http://agentcakecom.local/
2021-08-31 10:26:35: Using CrawlCache.
2021-08-31 10:26:35: Starting to crawl detected URLs.
2021-08-31 10:26:35: Starting crawling
2021-08-31 10:26:35: URL detection completed (1734 URLs detected)
2021-08-31 10:26:35: Detection complete. 1734 URLs added to Crawl Queue.
2021-08-31 10:06:18: Starting to detect WordPress site URLs.
2021-08-31 10:06:18: Starting URL detection
2021-08-31 10:06:18: Running WP2Static in Headless mode
2021-08-31 10:06:18: Running full workflow from UI
Any idea what’s going on?