Complete restore stops after the file step: user is logged out, database is not restored

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

@rafaelmaeuer がすでに取り組んでいます。

2026年10月29日 から。

  • #250 @rafaelmaeuer による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
php, wordpress

調査の方向性

The restore flow copies wp-config.php before the database request to admin-ajax.php?action=restore_db. Start by tracing the file restore step and the restore_db handler, then check how authentication keys and failed-step errors are handled. Done means a complete restore preserves the current authentication keys, restores the database, and reports a failed step clearly; pull request #250 is already open.

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

説明

Describe the bug
A complete restore of a backup made on another host (or with different authentication keys) restores the files but not the database. Pages, posts and the media library are missing afterwards. The restore page shows the Start button again without any error message.

To Reproduce

  1. Make a complete backup (files + database) on site A.
  2. On site B, whose wp-config.php has different authentication keys, start a complete restore of that backup.
    • Example: the official WordPress Docker image without WORDPRESS_AUTH_KEY etc. in the environment. Its wp-config.php uses getenv_docker('WORDPRESS_AUTH_KEY', '<random fallback>'), and the fallback differs per installation.
  3. Wait for the file step to finish.

Observed

  • admin-ajax.php?action=restore_db&context=event_source… returns HTTP 400.
  • The page silently shows Start again, then WordPress' login popup appears.

The file step copies the backup's wp-config.php including its AUTH_KEY … NONCE_SALT. All login cookies become invalid, so the database request arrives logged out and is rejected.

Expected behavior
The restore keeps the current site's authentication keys so the user stays logged in, and a failed restore step shows an error.

System

  • BackWPup 5.7.8 (restore code shared with 4.x)
  • WordPress Docker image, PHP 8.3, MariaDB

A fix is ready as a pull request.

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

wp-media/backwpup のほかの issue

wp-media/backwpup の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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