WordPressサイトでトラブルが発生し、トラブルシューティングのために管理エリアにアクセスできなかったことはありませんか?これは、多くのWordPressユーザーがどこかで直面するイライラする経験です。
トラブルシューティングの一般的なステップのひとつは、すべてのプラグインを無効化し、ひとつずつ再有効化することです。これは、プラグインの競合が問題を引き起こしているかどうかを特定するのに役立ちます。しかし、この重要なステップを実行するためにwp-adminにログインすることさえできない場合、あなたはどうしますか?
ご心配なく、解決策があります。このガイドでは、管理エリアからロックアウトされたときにWordPressプラグインをすべて無効化する方法をご紹介します。
WordPressサイトの管理エリアにアクセスせずにプラグインを無効化するには、よく使われる2つの方法があります。簡単そうな方を選んでください:
方法1:FTPを使ってWordPressのプラグインをすべて無効化する
この方法では、FTPクライアントまたはWordPressホスティングコントロールパネルのファイルマネージャーアプリを使用する必要があります。
FTPを使ったことがない場合は、FTPを使ってWordPressにファイルをアップロードする方法をご覧ください。
まず、FTPクライアントまたはcPanelのファイルマネージャを使ってサイトに接続する必要があります。接続したら、/wp-content/
フォルダーにナビゲーションする必要があります。
wp-content
フォルダーの中にpluginsという
フォルダーがあります。WordPressはここに、サイトにインストールされているすべてのプラグインを保存します。
プラグインフォルダーを
右クリックし、「名前の変更」を選択する必要があります。
次に、フォルダー名を好きなものに変更してください。この例では、plugins.deactivatedと
呼ぶことにする。
これを行うと、すべてのプラグインが無効化されます。
WordPressはプラグインファイルを読み込むために「plugins」というフォルダーを探すからだ。そのフォルダーが見つからない場合、データベース内の有効化したプラグインを自動的に無効化します。
通常、この方法は管理エリアからロックアウトされた場合に使用します。プラグインに問題があった場合は、WordPressの管理エリアにログインできるはずです。
WordPress管理エリアのプラグイン ” インストール済みプラグインのページにアクセスすると、無効化されたすべてのプラグインの通知が表示されます。
また、プラグインがすべて消えていることにもお気づきでしょう。心配しないでください。プラグインはすべて安全で、簡単に復元できます。
FTPクライアントに戻り、/wp-content/
フォルダーに移動します。ここから、plugins.deactivated
フォルダーをpluginsに
リネームする必要があります。
これで、WordPress管理エリアのプラグイン ” インストール済みプラグインのページに戻り、サイトが再び壊れるまでプラグインを1つずつ有効化することができる。
この時点で、どのプラグインが問題の原因であったかを正確に知ることができます。その後、FTPを使ってサイトからそのプラグインのフォルダーを削除するか、プラグイン作者にサポートを求めることができます。
方法2:phpMyAdminを使ってすべてのプラグインを無効化する
私たちの意見では、FTPの方法は間違いなく簡単です。しかし、phpMyAdminを使ってWordPressプラグインをすべて無効化することもできます。
重要:何かをする前に、データベースの完全なバックアップを取ってください。何か問題が発生した場合に役立ちます。
次に、Webホスティングダッシュボードにログインする必要があります。この例では、cPanelダッシュボードを示しています。お客様のホスティングサービスのダッシュボードは異なる場合があります。
データベースセクションの下にある’phpMyAdmin’アイコンをクリックする必要があります。
新しいブラウザーウィンドウでphpMyAdminが起動します。
WordPressデータベースがすでに選択されていない場合は、選択する必要があります。その後、WordPressデータベースのテーブルが表示されます。
ご覧のように、データベース内のすべてのテーブルには、テーブル名の前にwp_
プレフィックスが付いています。あなたのテーブルのデータベース接頭辞は違うかもしれません。
wp_options
テーブルをクリックしてください。wp_optionsテーブルの
中に、さまざまなオプションの行が表示されます。active_plugins’オプションを見つけ、その横にある’Edit’リンクをクリックしてください。
次の画面で、option_value
フィールドをa:0:{}に
変更する必要があります。
その後、「Go」ボタンをクリックして変更を保存します。
phpMyAdminを使用して、WordPressプラグインをすべて無効化できました。プラグインが WordPress 管理画面へのアクセスを妨げていた場合は、これでログインできるはずです。
動画チュートリアル
WordPressプラグインのエキスパートガイド
この投稿がWordPressのプラグインをすべて無効化するのにお役に立てば幸いです。WordPressプラグインのトラブルシューティングに関する他のガイドもご覧ください:
- WordPressプラグインとは?どのように機能するのか?
- WordPressプラグインを簡単に無効化する方法(初心者ガイド)
- データベースからWordPressプラグインを有効化/有効化する方法
- 非アクティブなプラグインはWordPressを遅くする?削除すべき?
- WordPressプラグインはいくつインストールすべきか?多すぎるとは?
- 古いWordPressプラグインを使っても大丈夫?解説
- WordPressのバージョンでテストされていないプラグインをインストールすべきか?
- WordPressプラグインの正しい更新方法(ステップバイステップ)
- WordPressとプラグインのどちらを先に更新すべきか?(適切な更新順序)
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Jiří Vaněk
Thank you for the instructions using phpMyAdmin. I was always used to deactivating plugins via FTP, but it’s great to know other options in case I can’t access FTP. Great job.
WPBeginner Support
Glad we can share another method in case it is ever needed
管理者
Hollie
Thanks so much for writing this article- it saved me!
Big help, thank you!!
WPBeginner Support
You’re welcome!
管理者
Alan
I tried to deactivate my plugins using the FTP process on Wordpress version 6.3, and the website crashed.
I was able to rename the plugins file and restart it okay. Just letting you know.
WPBeginner Support
Thank you for letting us know, it would depend on the specific error message for what could have happened but glad to hear you were able to fix the issue!
管理者
Nick
In the article it says;
On the next screen, you will need to change the option_value field to a:0:{.
Which I think should be a:0:{}
WPBeginner Support
Thank you for pointing out that typo, we’ve updated the article to fix it!
管理者
Tamara
I have changed the file name in FTP as suggested and am able to log into the Wordpress admin, but as soon as I change the file name back to the original, the error comes back. Which means I am not able to deactivate / reactivate plugins one at a time.
Can you help?
WPBeginner Support
In that case, you would want to use the second method from the article and that should force the plugins to deactivate.
管理者
Dr. Ashutosh Pradhan
Thanks a lot for the information. I had activated Google reCaptcha v3 in Ultimate Member and was not able to login to the wp-admin using super admin details. I just renamed the directory recaptcha under directory plugin from FTP and the trick worked, it allowed me to login and disable Google reCaptcha v.3 from dashboard. Thanks a ton.
WPBeginner Support
Glad our article was able to help!
管理者
Carol J Dunlop
Thank you for this post and all the options. I did the PHPmyadmin one before but this time I just renamed the plugin file in cpanel. So much easier and faster and it triggered a “database repair” notice. I did that and found that my Options table had crashed. I renamed the plugins file back to the original and ran the repair database again and it worked fine!
WPBeginner Support
Glad to hear our recommendations helped and you were able to solve the problem
管理者
Jeroen
I had a problem with my Jetpack plugin after I upgraded my PHP and WP. It would not let me deactivate or delete it. I went in the WP plugin folder and renamed the Jetpack plugin folder. Refreshed the plugin admin page in WP and Bob’s your uncle! I deleted the plugin through the admin panel and removed the folder from the root.
WPBeginner Support
Glad you were able to solve the issue
管理者
Ashley
I wasn’t having luck with either method but I found a backup from the day before which worked fine.
WPBeginner Support
Thank you for sharing that, restoring from a backup when able is a good option to use
管理者
Katy Espiritu
It solved my problem. I was able to log in to the admin site of word press again. Thank you so much. You are a blessing.
WPBeginner Support
Glad our guide was helpful
管理者
Tom
Hi, I did not install any plugins recenty, the only thing i did I changed the email.When I finished the process few hours later I could not enter The Dasboard (Sorry, you are not allowed to access this page). Any solutions Ty
WPBeginner Support
If the recommendations in this article were unable to assist you, we would recommend taking a look at our article below:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
管理者
Chris
Thank you very much, this helped a lot!
WPBeginner Support
Glad our guide was helpful
管理者
Tahmid Hasan
It is really working… Thanks a lot
WPBeginner Support
You’re welcome
管理者
Sheila
LIFESAVER! Thank you so much for this content! It worked in an instant and I’m back into my Admin dashboard!
WPBeginner Support
Glad our guide was helpful
管理者
ANDERSON CARVALHO
THANK YOU!!!!!!!!!!!!!!!!
WPBeginner Support
You’re welcome
管理者
Tife
Thanks so much
Second option work better
WPBeginner Support
You’re welcome, glad our article was helpful
管理者
S K Shrivastava
2nd one is really useful
WPBeginner Support
Glad you found our guide helpful
管理者
Steph
Unfortunately, both of these options did not help (still get error saying site is experiencing technical difficulties) after doing a plugin update (also updated wordpress 5.4 yesterday? could that be the culprit?)
WPBeginner Support
For that error message, you would want to go through our guide below:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death
管理者
Dex Antikua
My issue got solved easily by following the steps.
WPBeginner Support
Glad our guide was able to help
管理者
Jimmy
Thanks a lot for this help, it’s very easy to follow and it works so well
WPBeginner Support
You’re welcome glad our guides are helpful
管理者
mika
Thank you so much! it works!
WPBeginner Support
Glad our guide was able to assist
管理者
Aditi Pygude
Hello,
I need a help. whenever i tried to access my website I got download option. I tried your all above suggestions but it’s was’nt work for me. I renamed my plugin folder in my cpanel as plugin.deactivate after that I did changes in phpmyadmin in wp-options I edited active plugin folder . still I got download option. what should I do now .
Thanks in advance.
WPBeginner Support
You would want to check with your hosting provider as well as go through the recommendations in our troubleshooting guide here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
管理者
anurag saxena
Hello , tried your suggestion but i am unable to alogin into my wordpress admin area.any other suggestion?this is emergency.
WPBeginner Support
If this does not specifically solve your issue, you would want to take a look at our guide here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
管理者
sourabh upadhyay
very very very good saved my problem
WPBeginner Support
Glad you found our article helpful
管理者
Ethel
very helpful, thank you, worked like a charm.
WPBeginner Support
Glad our article was helpful
管理者
Jerry
I want to install the Yoast SEO plugin in wordpress. After I do that I need to Deactivate the plugin currently used, correct? I am new to working with Wordpress and I need to do this on my own since the guy that made my website abandoned helping me any further! Any Help would be so Much appreciated! Thanks!
WPBeginner Support
You would only need to remove your other plugin if it is an SEO plugin. If it is then you would want to remove it to prevent some common issues.
管理者
Megan
Omg! You guys saved the day! Thank you so much! After I have spent so much time trying to get my site fixed your easy to follow guide had it fixed in minutes. So thank you!
WPBeginner Support
Glad our guide could help resolve the issue
管理者
Aluko Kehinde
Hi,
When I go to my website or the wp-admin page, my browser tries to download a file instead of displaying the page.
WPBeginner Support
If disabling your plugins didn’t help, you would want to reach out to your hosting provider and they should be able to assist with that issue
管理者
israr777
Hi Wpbeginner Support,
How i should i deactivate all plugins in local site ?
WPBeginner Support
You would rename the plugins folder on your computer for that
管理者
Mig Hu
Thanks a lot – this is a site saver!
Quick question: after the plugin folder is renamed, when go back in the wordpress WP – admin back office plugins list, is it safe to delete such plugin (which folder has been renamed), or will this action be harmful?
Many thanks!
Mig
WPBeginner Support
Using the delete method inside your WordPress site would be the best method for removing that plugin permanently as it will go through the uninstall steps of the plugin.
管理者
Shwetha
Thank you so much, you saved my day!
WPBeginner Support
Glad we could help
管理者
DM
Which FTP program is for free and it is good to down load without giving the full permissions to take over your computer s full admin.?
WPBeginner Support
Depending on your operating system we list some FTPs we recommend in our article here: https://www.wpbeginner.com/beginners-guide/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners/
管理者
Artur
Hey,
I disabled all plugins, but now all of my Woocommerce is lost.
What do I do ?
WPBeginner Support
When you reenable your plugins the WooCommerce tools should be available again.
管理者
William
Great Stuff! I used the 2-factor authentication plug-in, and could not login to my wordpress dashboard anymore. Your ftp solution solved it 100%.
WPBeginner Support
Glad our guide could help
管理者
sofea
hi
why i cannot sign in to wordpress admin of my subdomain?
it appears IP Options -ExecCGI
on my site. can u solve my problem?
WPBeginner Support
For that message, you would want to reach out to your hosting provider and they should be able to help you fix it
管理者
George
Hello,
My Word Press site displays normally to visitors but I am getting the WSoD on the WP-Admin login page.
I have tried increasing WordPress Memory to 512Mb and I have tried disabling all plugins. Neither seem to have helped.
I checked and the site was still loading normally but with all the plugins clearly not running. But I get the WSoD when I try to login as admin
I re-activated plugins and everything went back to normal for visitors.
Have you any suggestions what to try next?
WPBeginner Support
For solving the white screen of death you would want to take a look at our guide here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/
管理者
DJ X PAT 254
You’re the man. Renaming my plugins folder in file manager worked a charm
WPBeginner Support
Glad our article could help
管理者
internaut
Thank you! You saved my website! Thanks a lot !!!!!!!!
WPBeginner Support
Glad our article could help
管理者
Dustin
Oh my gosh! This worked perfectly!! Thank you so much
WPBeginner Support
You’re welcome
管理者
Tam
I’M NOT A DEVELOPER – Please help!
I was having issues logging into wordpress so I deactivated all plugins in cPanel phpMyAdmin. Now, I cannot find my active plugins in wp-option/option name. When I look in wp-content there is a plugins.bak file which shows all of my installed plugins. How do I reactivate them?
WPBeginner Support
You would want to reactivate them manually in your wp-admin area of your site
管理者
meena
Hi
I deactivated all the plugins by changing the ‘plugin’ name in FileZilla. But the problem is I can’t enter my website at all to see what plugins aren’t working. This is what comes up when I try to login: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas17_datahtml/wp-config.php:1) in /home/content/p3pnexwpnas17_data0/html/wp-includes/pluggable.php on line 1223
please help me! thanks!
WPBeginner Support
You may want to try manually updating your WordPress files to see if it is an error in a modified file: https://www.wpbeginner.com/wp-tutorials/how-to-manually-update-wordpress-using-ftp/
管理者
meena
Hi
Through Godaddy, I have an sftp so it didn’t work with. When I changed the protocol to sftp ssh file transfer a dialogue appeared saying ‘the server key is unknown…….do you want to trust it …etc’ what do I do?
Thanks!
WPBeginner Support
It is letting you know you have not used that key before, if you reach out to your hosting provider with the information they can confirm the key is for them
管理者
Samar
Thanks,this really solved my problem…
WPBeginner Support
Glad it could help
管理者
Monika
Thank you so much! That helped a lot with the error that crashed my page. And saved my night. And my sanity.
WPBeginner Support
Glad our guide could help
管理者
Tanya
This was a perfect step-by-step to help a rookie solve a 500 error. THANK YOU!
WPBeginner Support
Glad our guide could help
管理者
Josh
This worked great for me to solve the 500 error. Thanks!
Andy
Renaming the Plugins directory via cPanel file manager did the trick! Thanks so much!
Gordon
Thank you so so much!
BTW I used cPanel File Manager
Kieron
This was a big help. Renaming the plugin directory did the trick for me and once I located the problematic plugin all is well. Thanks for the info.
sharmila
as a beginner wordpress user, your post done great help. Thank you