Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Error 504 on static site generation (WP2Static)

Đang mở
#787 10 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu với đầu ra của WP-CLI wp2static full_workflow và request tới admin-ajax.php, sau đó kiểm tra quá trình xây dựng URL dẫn đến vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php:210. Tái hiện cấu hình reverse proxy và truy vết lý do URL được tạo chứa customer-care-solution.comhttp; hoàn thành có nghĩa là quá trình tạo tĩnh kết thúc mà không có host bị sai định dạng hoặc lỗi cURL nghiêm trọng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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:

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.
More information of the error may be logged in your browsers console. 

And this is what I get in the console:

load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:5 JQMIGRATE: Migrate is installed, version 3.3.2
load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:2 POST https://customer-care-solution.com/wp-admin/admin-ajax.php?_fs_blog_admin=true 500
send @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:2
ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:2
s.ajax.s.ajax @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:5
(anonymous) @ admin.php?page=wp2static:566
dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:2
v.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.7.1:2
admin.php?page=wp2static:547 
admin.php?page=wp2static:548 <p>There has been a critical error on this website.</p><p><a href="https://wordpress.org/support/article/faq-troubleshooting/">Learn more about troubleshooting WordPress.</a></p>

Tried wp-cil

$ wp wp2static full_workflow
[2021-05-01T14:34:53+05:30] Starting to detect WordPress site URLs.
[2021-05-01T14:34:55+05:30] Detection complete. 4435 URLs added to Crawl Queue.
[2021-05-01T14:34:55+05:30] Starting crawling
[2021-05-01T14:34:55+05:30] Starting to crawl detected URLs.
[2021-05-01T14:34:55+05:30] Using CrawlCache.
[2021-05-01T14:35:00+05:30] 404 for URL /blog/page/1/
[2021-05-01T14:35:00+05:30] 404 for URL /blog/page/2/
[2021-05-01T14:35:03+05:30] 404 for URL /favicon.ico
[2021-05-01T14:35:08+05:30] 404 for URL /sitemap.xml
[2021-05-01T14:35:59+05:30] Crawling progress: 300 crawled, 3887 skipped (cached).
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:
#0 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php(158): WP2StaticGuzzleHttp\Handler\CurlFactory::createRejection()
leonstafford/lokl#1 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php(110): WP2StaticGuzzleHttp\Handler\CurlFactory::finishError()
leonstafford/lokl#2 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlHandler.php(47): WP2StaticGuzzleHttp\Handler\CurlFactory::finish()
leonstafford/lokl#3 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2stati in /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php on line 210
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:
#0 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php(158): WP2StaticGuzzleHttp\Handler\CurlFactory::createRejection()
leonstafford/lokl#1 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php(110): WP2StaticGuzzleHttp\Handler\CurlFactory::finishError()
leonstafford/lokl#2 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlHandler.php(47): WP2StaticGuzzleHttp\Handler\CurlFactory::finish()
leonstafford/lokl#3 /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2stati in /usr/html/wp-content/plugins/wp2static/vendor/leonstafford/wp2staticguzzle/src/Handler/CurlFactory.php on line 210
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

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 to customer-care-solution.com? And how do I solve this?

My setup:

  1. Lokl site with a reverse proxy running on https.
  2. Static site accessible on customer-care-solution.com.
  3. Modified host files on my computer to point to dynamic WordPress site.
Ngôn ngữ chính
PHP
Star
1.5k
Fork
294
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của elementor/wp2static

Tất cả issue của elementor/wp2static

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.