WordPressプラグイン「Code Snippets」が原因でエラー(Fatal error)が発生した場合の復旧手順についてご紹介いたします。
この記事を参考にしてほしい方
- Code Snippets編集後、
Fatal error(真っ白い画面)が発生。
サイトの閲覧および管理画面にログインできなくなった方 - Code Snippetsを使用していて、新しいプラグインの有効化によりエラーが発生した方
Code Snippetsのエラーについて
![](https://css-eblog.com/wp-content/uploads/2024/06/sample-fatal-error01.png)
Code Snippetsを使用していれば、エラー発生時自動で無効化されると安心されている方がいらっしゃるかもしれません。
しかし、Code Snippetsはエラー時によるサイト停止のリスクを軽減してくれるものの、リスクを完全に防げるわけではありません。
やはりfunctions.phpの編集に関わるものは慎重に行わなくてはいけません。
![](https://css-eblog.com/wp-content/uploads/2024/06/—Pngtree—rabbit-cute-cartoon-3d_13632910.png)
以下を参考に慎重に復旧しよう
落ち着けばきっと復旧できるよ
エラー(Fatal error)の
復旧手順・方法
Xserverご利用の方
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_21h41_12.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_21h41_12.png)
Xserverサーバーパネルにログインし、サーバーパネル内の データベース phpmyadmin(MariaDB10.5)を開く
ロリポップご利用の方
![](https://css-eblog.com/wp-content/uploads/2024/06/lolipopphp2.jpg)
![](https://css-eblog.com/wp-content/uploads/2024/06/lolipopphp2.jpg)
ロリポップ管理画面にログインし、サーバーの管理設定 データベースを開き、該当するデータベースの「操作する」ボタンを選択。「phpMyAdminを開く」をクリック
※ログイン情報がわかる方はSTEP3に進んでください
Xserverご利用の方
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_21h40_44.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_21h40_44.png)
Xserverのサーバーパネルに戻り、
WordPress WordPress簡単インストール
![](https://css-eblog.com/wp-content/uploads/2024/06/名称未設定-2-2.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/名称未設定-2-2.png)
該当するドメイン名の横の「選択する」をクリック
![](https://css-eblog.com/wp-content/uploads/2024/06/名称未設定-2-4.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/名称未設定-2-4.png)
MySQLユーザー名とMySQLパスワードの2つを控えておきましょう。
ロリポップご利用の方
![](https://css-eblog.com/wp-content/uploads/2024/06/image-5.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/image-5.png)
ロリポップ管理画面に戻り、サーバーの管理設定ユーザー名、パスワードの2つを控えておきましょう。
データベース 操作する の![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_22h04_29.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_22h04_29.png)
ユーザー名とパスワードを入力し、ログインする
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-23_00h17_15.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-23_00h17_15.png)
(左側)ディレクトリーの ① データーベース名
② wp_snippets を順番にクリックして開く![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_22h08_41.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-22_22h08_41.png)
保存しているコード一覧が表示されます。
問題箇所のコードを「削除」してください
![](https://css-eblog.com/wp-content/uploads/2024/06/—Pngtree—panda-animal-cute-cartoon-3d_13632884.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/—Pngtree—panda-animal-cute-cartoon-3d_13632884.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/—Pngtree—panda-animal-cute-cartoon-3d_13632884.png)
HINT
Code Snippets編集直後にエラーが発生した場合は一番下に表示されているコードが原因となっている可能性が高いでしょう
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-23_04h58_33-1.png)
![](https://css-eblog.com/wp-content/uploads/2024/06/2024-06-23_04h58_33-1.png)
WordPressの管理画面にログインできるか、そしてサイトは閲覧できるようになっているかを確認しよう。ここまでお疲れさまでした
Comment
コメント一覧 (1件)
I was pretty pleased to discover thhis website.
I wanted to thank you for ones time for this particulaly wonderful read!!
I definitely apppreciated every bit oof it and I have you saved as a favorite
to see new information on your site.