0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

トラブル事案|wordpressでFatal error: Cannot redeclare retrieve_password() が出た場合

Last updated at Posted at 2021-10-12

エラーケース

  • wordpress本体の更新を実施したところ、上手く更新できなかったもよう
  • エラーFatal error: Cannot redeclare retrieve_password() 〜省略〜 wp-includes/user.phpが表示された

解決策

  • 手動で更新ファイルを再アップしたら解決しました

もうちょっと詳細

  • ココから最新のwordpressを入手

  • ダウンロードしたファイルを解凍

  • FTPでwordpressをインストールしているサーバーへアクセス

  • ダウンロードしたファイル群の中からwp-adminwp-includesを丸々上書き

  • 同様に、ダウンロードしたファイル群の中から〜.phpファイルを丸々上書き(新しいバージョンの WordPress の root ディレクトリにある残りのファイルのこと)

  • この際に wp-content wp-config.php は上書きしないこと!(通常、ダウンロードしたwordpressの中にはwp-config.phpは入っていません)

  • あと.htaccess .htpasswd も上書きしないこと!(通常、ダウンロードしたwordpressの中には.htaccess .htpasswdは入っていません)

  • 上書きできない場合は(上書きの際にエラーが出た場合は)、サーバー側のパーミッションを確認してみる(※ただし、元のパーミッションをメモしておくこと。更新後に戻せるように)

  • 上書きが終わったら、ログイン画面にアクセスしてみる

  • 参考サイト:WordPress ファイルの置き換え

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?