エクスポートに失敗する
-
記事のエクスポートを実施するとエラーが発生してしまいます。
以前はエクスポートできていたが、いつの間にかエクスポートが出来なくなっていました。
プラグインをすべて無効にしても事象は変わりません。
ネット検索しましたがどこにも情報が見当たりません。
回避策をご存じではないでしょうか。
<エラーここから>
このサイトにアクセスできません
(Wordpress管理URL)export.php?download=true&content=posts&cat=12&post_author=0&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&attachment_start_date=0&attachment_end_date=0&submit=エクスポートファイルをダウンロード のウェブページは一時的に停止しているか、新しいウェブアドレスに移動した可能性があります。
ERR_INVALID_RESPONSE
<エラーここまで>
-
このトピックは2ヶ月、 3週前に
瀬戸内ことり (Setouchi Kotori)が編集しました。理由: ステータスを解決済みに変更
-
このトピックは2ヶ月、 3週前に
-
ご共有ありがとうございます。
エラーメッセージを見た感じでは、WordPress の標準エクスポート機能で、CSV や XML を生成する前段階でレスポンスが不正になっている状態のように見受けられます。
いくつか確認・切り分けのポイントがあります。
① プラグイン停止後の再確認について
「すべてのプラグインを無効化しても改善しなかった」とのことですが、念のため、キャッシュ系・セキュリティ系プラグインの影響がないかご確認ください。停止後も .htaccess や MU プラグイン側で影響が残るケースがあります。
② テーマ切り替えでの確認
プラグイン停止に加えて、有効テーマを Twenty Twenty-Four などの公式テーマに切り替えた状態でエクスポートが可能かどうかも一度ご確認ください。
テーマ側で
export.phpの実行時にエラーを出しているケースもあります。③ PHP エラーの有無の確認
可能であれば、以下もご確認いただけると切り分けが進みます。
- サーバーの エラーログ
wp-config.phpにてdefine( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );を設定した状態で再度エクスポートを実行し、/wp-content/debug.logに何か出力されていないか
④ 回避策について
標準エクスポートがどうしても通らない場合、
- WP All Export / Import
- All-in-One WP Migration(エクスポートのみ利用)
などのプラグインを使うことで回避できるケースもあります。
回答いただきありがとうございます。
ご提示いただいた切り分けを一部実施しました。
③についてログを確認しましたが、いまいちよく分からずもし何か対策が分かるようであれば教えていただけないでしょうか。
<切り分け実施>
①→再度無効化を実施しましたが、変化なしでした。
②→テーマ変更は以前実施して痛い目を見たので、最終手段とさせていただきたく一旦保留させてください。
③→実施しました。
以下のようなエラーが発生しておりました。
ログここから————————————————–
[14-Jan-2026 11:18:25 UTC] PHP Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/invisible-recaptcha/includes/MchLibAutoloader.php on line 6
[14-Jan-2026 11:18:25 UTC] PHP Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/invisible-recaptcha/engine/RequestHandler.php on line 61
[14-Jan-2026 11:18:25 UTC] PHP Notice: spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/invisible-recaptcha/engine/Controllers/ModulesController.php on line 88
[14-Jan-2026 11:18:25 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for theinvisible-recaptchadomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/c1111111/public_html/xxxxxxxxxx.com/wp-includes/functions.php on line 6131
[14-Jan-2026 11:18:25 UTC] PHP Notice: 関数 _load_textdomain_just_in_time が誤って呼び出されました。cocoonドメインの翻訳の読み込みが早すぎました。これは通常、プラグインまたはテーマの一部のコードが早すぎるタイミングで実行されていることを示しています。翻訳はinitアクション以降で読み込む必要があります。 詳しくは WordPress のデバッグをご覧ください。 (このメッセージはバージョン 6.7.0 で追加されました) in /home/c1111111/public_html/xxxxxxxxxx.com/wp-includes/functions.php on line 6131
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185
[14-Jan-2026 11:18:25 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in /home/c1111111/public_html/xxxxxxxxxx.com/wp-content/plugins/ts-webfonts-for-conoha/inc/class/class.font.data.php on line 185ログここまで————————————————–
④→プラグインは既にインストール済みでした。
ご確認ありがとうございます。
ログのご共有も助かります。貼っていただいた内容は、主に PHP Notice / Deprecated で、直ちに致命的エラーとは言えませんが、エクスポート (XML ファイルのダウンロード) では Notice 等の出力が混入するとファイル生成が壊れることがあり、結果として、ブラウザ側では
ERR_INVALID_RESPONSEのように見える場合があります。また、ログに
invisible-recaptchaやts-webfonts-for-conoha、cocoonが出ているため、少なくともそのタイミングでは該当プラグイン/テーマ側のコードが実行されています。
(無効化していても、MU プラグイン等で動作しているケースがあります。)差し支えなければ、以下を順番にお試しください。
- 該当プラグイン (invisible-recaptcha / ts-webfonts-for-conoha) を一旦停止 (可能なら削除) して、エクスポートが通るか確認
※ 「全プラグイン停止済み」とのことですが、まずはログに出ているものから優先して切り分けをするのがよいと思います。 - サーバー側で
display_errorsが有効だと Notice/Deprecated が出力される場合があります。
可能であれば、サーバーの PHP 設定で display_errors を OFF にし、WordPress 側も WP_DEBUG を false に戻した状態でエクスポートを再度、実行してみてください。 - それでも改善しない場合、次に必要なのは サーバーのエラーログ(500/503 等) です。
WordPress の debug.log ではなく、レンタルサーバーのエラーログに、エクスポート実行時刻 (今回の場合、2026-01-14 11:18 ごろ) に該当する記録がないかご確認ください。
まずは 1) と 2) の結果をご共有いただけるでしょうか。
ご確認および回答いただきありがとうございます。
おかげさまで解決しました。
該当プラグイン (invisible-recaptcha / ts-webfonts-for-conoha) を削除したうえで再度エクスポートを実施したところ以下のエラーが出力されておりました。
エラーーーーーーーーーーーーーーーーーーーーーー
PHP Fatal error: Uncaught TypeError: wp_is_valid_utf8(): Argument #1 ($bytes) must be of type string, null given called in wp-admin/includes/export.php on line 246
エラーーーーーーーーーーーーーーーーーーーーーー
上記エラーで検索したところ、以下の記事を発見しました。
https://www.chazine.com/archives/4638
記事記載の対応をしてみると事象を回避できました。
なお、削除したプラグイン(invisible-recaptcha / ts-webfonts-for-conoha)を再度インストールして有効化しても問題なくエクスポートできました。
ありがとうございました。
解決したようでよかったです。
また解決策をご共有いただきありがとうございました😌
ちなみに、invisible-recaptcha というのは▼こちらのプラグインでしょうか。
https://ja.wordpress.org/plugins/invisible-recaptcha/
もしそうであれば、こちらは最終更新が6年前で、おそらく開発がストップしているであろうと考えられるプラグインですので、代替をお考えになるのが得策かと思います。
このトピックに返信するにはログインが必要です。