Subdirectory hosted WP not exporting properly - debugging inside

オープン
#790 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, wordpress
領域
backend, web-dev

調査の方向性

ファイル、テスト、エントリポイントは指定されていません。/wp/ にある WordPress と、example.com/wp2/ や example.com/wp-static/ などの後処理後の値を使ってエクスポートを再現し、設定されたサブディレクトリがリソースパスと結合される箇所を追跡してください。リソースが入力されたディレクトリを、対応するテキストを重複させるのではなく一度だけ使用すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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!

主要言語
PHP
スター
1.5k
フォーク
293
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

elementor/wp2static のほかの issue

elementor/wp2static の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。