Repair a WordPress site with a 500 error using the WP Manager SOS tool

Procédure

Your WordPress site displays a 500 error, a blank page, or the message “There has been a critical error on this website,” and you can no longer access the administration area? The SOS tab in WP Manager, in your LWS Panel, repairs the site without going through WordPress: it disables the offending plugin, restores the .htaccess file, or reinstalls the WordPress files. Follow the solutions in order and stop as soon as your site displays again.

Open your site’s SOS tab

  1. Open WP Manager

    In your client area, “Domain(s) & Hosting(s)” section, click Manage next to the site’s hosting. In the Software section, click WP Manager.

  2. Choose your site

    In the “Manage installations” table, click MANAGE on your site’s row.

  3. Open the SOS tab

    Click the SOS tab, between “BACKUPS” and “ADVANCED”. You can also go through the BASIC tab, “Quick actions” section, “Crash SOS Tool” link.

    Repair a WordPress site with a 500 error using the WP Manager SOS tool

Run the SOS Crash & 500 Error diagnosis

The “SOS Crash & 500 Error” tool looks for the error blocking your site and fixes it. It offers two modes: always start with intelligent mode, which affects as little as possible.

  1. Start intelligent mode

    Select Intelligent Mode, then click LAUNCH DIAGNOSIS. This mode reads your site’s error logs and disables only the plugin responsible for the crash.

    Then refresh your site in the browser (Ctrl + F5). If it displays, go to the verification section at the bottom of this page.

    To go back: the disabled plugin remains installed. You can reactivate it whenever you want in the PLUGINS tab, “Activation” column.

  2. If the error continues, start radical mode

    Select Radical Mode, then click LAUNCH DIAGNOSIS. This mode disables all plugins and resets the .htaccess file. Then refresh your site.

  3. Reactivate your plugins one by one

    If the site displays after radical mode, open the PLUGINS tab. Reactivate only one plugin using its switch in the “Activation” column, then refresh your site. Repeat plugin by plugin.

    When the error returns, the plugin you just activated is the cause: disable it again and leave the others active. Do not use the ACTIVATE ALL button: it would also reactivate the plugin blocking the site.

    Repair a WordPress site with a 500 error using the WP Manager SOS tool

If the error continues: the other repairs in the SOS tab

These repairs are located below the diagnosis, in the same tab. Try them in this order and refresh your site after each one.

Restore the .htaccess file

The .htaccess file contains WordPress URL rules. If it is damaged, the site will return a 500 error. The “Restore .htaccess” card offers two buttons:

  • Restore rules replaces everything between the # BEGIN WordPress and # END WordPress lines with WordPress’s default rules. If these lines do not exist, the rules are added at the end of the file. The rest of the file is not modified.
  • Regenerate file keeps only WordPress’s default rules and removes everything else. WP Manager makes a copy of the file before this action. Use it only if “Restore rules” was not enough.

To go back, restore the snapshot created before you started.

Reinstall the WordPress core

If WordPress files themselves are damaged, the “Reinstall WordPress Core” card restores the wp-includes and wp-admin folders and the files in the site root, in the same version as the one installed, without touching your personal files. Click the “Reinstall version…” button, which indicates your site’s version.

To go back, restore the snapshot created before you started.

Restore a backup

As a last resort, the “Restore a backup” card and its Go to backups button take you to your hosting’s automatic backups. Choose a date earlier than when the error appeared. The steps are detailed in Download or restore a backup of your web files and Download or restore a MySQL database backup.

Check that your site works

Open your site in a private browsing window: the homepage and a few inner pages should display normally. In WP Manager, then click Admin Login: the WordPress dashboard should open. If you used radical mode, finally check that your useful plugins are correctly reactivated in the PLUGINS tab.

Frequently asked questions

My site does not appear in WP Manager

Click DETECT SITES in the site list. A WordPress installed manually in a subfolder may not benefit from all WP Manager features: in that case, follow the manual method in the help article Fix a 500 error on your site with LWS Panel.

The error comes back as soon as I reactivate a plugin

Leave that plugin disabled. In the PLUGINS tab, the “WP Compatibility” column shows whether it is compatible with your WordPress version, and the “Active Version” list lets you choose another published version. If no version works, contact the plugin publisher or replace it. Plugins are managed as explained in Manage plugins and extensions with WP Manager.

The error comes from a plugin or a file I never installed

This is a sign of possible hacking: a repair in the SOS tab does not remove malicious code. Run a scan in the SECURITY tab of WP Manager (“LAUNCH SECURITY SCAN”) and your hosting’s antivirus, presented in Using the antivirus and anti-malware of your LWS Panel.

No repair fixes the error

The error may come from something other than WordPress: PHP memory limit, PHP version, or database. Check your hosting’s error logs (Access Apache / PHP logs) then the other solutions in the help article Fix a 500 error on your site with LWS Panel.

Related articles

help.lws.net/a/7989
Was this article helpful?

Yes

No

Read 2 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.