Subdirectory hosted WP not exporting properly - debugging inside

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 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, wordpress
Lĩnh vực
backend, web-dev

Hướng nghiên cứu

Không có tệp, bài kiểm thử hoặc điểm vào nào được nêu tên. Hãy tái hiện quá trình export với WordPress trong /wp/ và các giá trị sau xử lý như example.com/wp2/ và example.com/wp-static/, sau đó truy vết nơi thư mục con đã cấu hình được kết hợp với các đường dẫn tài nguyên. Hoàn tất khi các tài nguyên sử dụng thư mục đã nhập một lần thay vì nhân đôi phần văn bản tương ứng.

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

Mô tả

bug

I've been testing this plugin on Centos7 cpanel server with php 8.0 and wordpress 5.7.2. I have wordpress installed at example.com/wp/ and I've been trying various post processing to make it work in a different sub directory.

If I type "" into postprocessing it expects the static site to exist at example.com as expected. This seems to work just fine.

If I type "example.com/static/" into postprocessing it expects the site to exist at example.com/static/ as expected. This also seems to work just fine.

If I type "example.com/wp/" into postprocessing then it expects the static site to exist at example.com/wp/ as expected, but this kind of defeats the purpose because I'd have to move the non-static wordpress to some other directory and then probably have to update the config so it knows it's new directory.

If I type "example.com/wp2/" into the postprocessing box then all the resources look for example.com/wp22/ for some reason it duplicates the 2.

If I type "example.com/wp-static/" into the postprocessing box then all the resources look for example.com/wp-static-static/ for some reason it puts "-static" twice.

If I type "example.com/wpstatic/" into the postprocessing box then all the resources look for example.com/wpstaticstatic/ likewise it duplicates "static".

There's something strange going on with duplicating text entered into the post processing box when part of the subdirectory matches the original subdirectory I guess? Excellent plugin by the way! I've been looking for a good wordpress to static site converter forever, and most of them are abandoned or don't work. This plugin seems to work perfectly minus this small quirk I found about subdirectories. Keep up the great work!

Ngôn ngữ chính
PHP
Star
1.5k
Fork
293
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.