Open fazalfarhan01 opened 3 years ago
@fazalfarhan01 I've moved this into WP2Static repo for now. It may still be related to this network connectivity issue
But, I really should improve the error handling in WP2Static to provide better feedback about the cause when you're running via the UI and to add some re-attempts on URL crawls if not already, which may have fixed this issue, where it looks like it wasn't able to connect to customer-care-solution.com
.
I don't think this is related to connectivity issues. It looks like the domain it is trying to resolve is customer-care-solution.comhttp
and not customer-care-solution.com
Probably due to the https reverse proxy? (sorry, just read/digested the part at the end about about your setup now)
Common to WP2Static, is that it needs the Site URL of the WP site to be the same that it's crawling, as much logic relies on that.
So, yeah, that setup is not supported today. Whether it is possible is another matter.
Sorry, brain not functioning well at end of day, but that is the general issue here. If you're able to keep the WP Site URL the same as the URL it's served from and WP2Static crawls, then it should be fine.
Same error
Is there any solution?
@ZhymabekRoman quick solution will be to change environments. You can try https://lokl.dev and import your site there or use any other VPS.
If issue persists, try with default WP site. Then re-enable piece of your site until problem reoccurrs, then we will know the exact cause.
Found a workaround
- Used the scheduled jobs queue to generate static site with out errors.
@ZhymabekRoman did you try this?
Stuck with same error
504 error code returned from server. Please check your server's error logs or try increasing your max_execution_time limit in PHP if this consistently fails after the same duration.
My scheduled jobs are always in waiting status
Hey there.
The static site generation used to work fine but i am not able to run it from a few hours.
I get this error:
And this is what I get in the console:
Tried wp-cil
In the line
PHP Fatal error: Uncaught WP2StaticGuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: customer-care-solution.comhttp (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://customer-care-solution.comhttp/customer-care-solution.com/wp-content/plugins/all-in-one-wp-migration/lib/view/assets/css/backups.min.css in /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php:210 Stack trace:
Why is
http
being appended tocustomer-care-solution.com
? And how do I solve this?My setup:
customer-care-solution.com
.