Ir para o conteúdo principal

Como corrigir quinhentos erros internos do servidor no WordPress (8 métodos)

Running into points together with your WordPress web site is a irritating but inevitable a part of being a website proprietor. However, the five hundred Internal Server Error might be notably irritating, because it presents restricted data on what’s inflicting the issue — not to mention the way to repair it.

The excellent news is that, like most WordPress errors, it will probably often be resolved by way of troubleshooting. Starting with the most typical options can prevent a number of time and complications in the long term and provide help to restore your web site a lot faster.

In this tutorial, we’ll begin by explaining what the five hundred Internal Server Error is and a few of its potential causes. Then I’ll give you eight strategies you need to use to get your WordPress web site again up very quickly. Let’s get began!

What Is the five hundred Internal Server Error in WordPress

There is a variety of issues that may happen on a website — one frequent situation being an inside server error. If you’re experiencing an inside server error, you’ll see one thing much like the next message in your browser instead of your website:

A 500 Internal Server Error message on a WordPress site.

Depending in your website and browser, the precise error message could differ. For instance, it might additionally current itself as an HTTP 500 Error or HTTP Error 500.

Some error messages in WordPress present context and particulars that may provide help to determine the precise trigger and treatment for the issue.

Unfortunately, 500 Internal Server Error will not be one in every of them. In some instances, you might not see an error message in any respect, however merely a clean white display screen, also referred to as the Tela Branca da Morte (WSoD).

However, one factor you might be nearly sure of is that the issue is attributed to your website or server (reasonably than, for instance, your browser). Some frequent and doable causes of this error message embody:

  • A script drawback with a third-party theme or plugin put in in your web site
  • A corrupted .htaccess or WordPress core file
  • An exhausted PHP reminiscence restrict in your server

Though unlikely, typically fixing the five hundred Internal Server Error is so simple as ready a minute or two and reloading the web page. It’s doable that the server was simply quickly overloaded.

It may additionally assist to find out whether or not everyone seems to be experiencing this error in your web site or if it’s solely taking place in your finish. To do that, you could possibly attempt getting into your URL into the Down for Everyone or Just Me Web site.

In most instances, you received’t be capable to work out what’s inflicting the difficulty till you start troubleshooting. The necessary factor is that you simply’re in a position to resolve it as rapidly as doable.

Como corrigir quinhentos erros internos do servidor no WordPress (8 métodos)

Before you get began with troubleshooting, it’s necessary to first back up your WordPress site. The following strategies contain modifying your web site’s root listing, so that you don’t wish to threat dropping crucial knowledge within the occasion one thing goes mistaken.

Once you’ve executed this, you may get to work. Let’s check out the way to repair the five hundred Internal Server Error in WordPress utilizing eight strategies.

1. Enable Debugging

As we’ve mentioned, one of the crucial irritating features of coping with an inside server error in WordPress is the lack of understanding obtainable. This is especially true for those who’re going through the WSoD.

However, enabling debugging mode in your WordPress web site could provide help to acquire extra perception into the difficulty.

You can do that by modifying your wp-config.php file through a File Transfer Protocol (FTP) consumer, comparable to FileZilla. Depending in your hosting supplier, it’s also possible to use File Manager in cPanel.

Once you find this file, seek for ‘WP_DEBUG’. If it’s there, you could change its worth to ‘true’. If not, you possibly can copy and paste the next to the tip of the file:

outline( "WP_DEBUG", true );

When you’re executed, save your file, then reload your WordPress web site. Hopefully, the clean display screen is now changed with an error message, and ideally, a selected line of code the place you possibly can find the issue.

If not, you’ll want to maneuver on to the following methodology. Just keep in mind to vary the debug worth again to ‘false’ whenever you’re executed.

2. Deactivate Your WordPress Plugins

Another motive you is perhaps seeing this error message is that there’s an issue with one in every of your plugins. To see if that is so, you possibly can quickly deactivate your whole WordPress plugins. If this resolves the inner server error, you’ll know {that a} plugin was guilty.

Note that deactivating your plugins received’t delete them or your knowledge. It solely stops the plugin code, which is perhaps triggering the inner server error, from working.

If you might have entry to your WordPress admin display screen, you possibly can deactivate your whole plugins by going to the plugins menu.

Check the field to pick out all plugins, then select Desativar de Acções em drop-down menu, then click on the Inscrever-se botão:

The 'Deactivate' option on the WordPress Plugins screen.

If you don’t have entry to your dashboard, you possibly can disable your plugins through FTP or File Manager.

From your web site’s root listing, navigate to the wp-content folder, then right-click in your plugins folder, choose Rebatizar, and alter it to “plugins-deactivated” or “plugins-old”:

The option to rename the WordPress plugins folder via FTP.

Return to your web site to see if this resolved the error. If it did, the following step can be to determine which plugin was guilty. You can do that by activating them one after the other, reloading the location after every one.

Once the error message returns, you’ll know which plugin was inflicting the difficulty. From there, you possibly can both delete it solely, attempt reinstalling an up to date model, or attain out to the developer for additional help.

3. Mude para um tema WordPress padrão

Similar to plugins, a defective theme might be guilty for the inner server error in WordPress. If you’ve not too long ago put in a brand new theme or up to date your present one, you may wish to attempt switching WordPress themes to see if this fixes the difficulty.

If you’re in a position to entry your WordPress admin space, you possibly can swap your theme by navigating to Aparência> Temas, then activating a default theme comparable to Twenty Twenty or downloading one from WordPress.org:

The option to activate the Twenty Twenty WordPress theme.

If you possibly can’t entry your WordPress admin, you possibly can change themes by connecting to your web site’s server through FTP. Once linked, navigate to the wp-content > themes pasta:

The WordPress themes folder in FTP client.

Locate your present theme’s folder, then rename it by including “-deactivated” to the tip of the theme’s identify. This will robotically swap it to the default theme, assuming you might have it put in.

Reload your web site to see if this resolved the error. If it does, you’ll have to get a new WordPress theme or attain out to the theme writer to allow them to know in regards to the situation.

4. Check Your .htaccess File

Another frequent reason for the five hundred Internal Server Error in WordPress is a corrupted .htaccess file. To decide whether or not that is the difficulty, you possibly can rename this file to “.htaccess_old” or one thing comparable.

You can discover this file beneath your web site’s root listing. Right-click on the .htaccess arquivo e escolha Rebatizar:

The option to rename the WordPress '.htaccess' file via FTP client.

Revisit your web site to see if it’s nonetheless displaying the error message.

If it isn’t, you possibly can create a brand new .htaccess file by navigating to your WordPress admin display screen, then going to Configurações> Links permanentes e clicando no Salvar alterações button on the backside of the display screen:

The Permalink Settings page in WordPress.

This robotically produces a contemporary .htaccess file. If a corrupted .htaccess file doesn’t appear to be the difficulty, it’s time to maneuver on.

5. Increase Your PHP Memory Limit

The subsequent step is to see whether or not you’re encountering the error since you’ve exhausted your server’s PHP reminiscence restrict. This might be attributed to a poorly coded theme or plugin, or one thing else solely.

You can enhance your PHP reminiscence restrict in a number of methods — there are three doable recordsdata the place you will discover or add PHP reminiscence code snippets.

The first is your wp-config.php file. Search for WP_MEMORY_LIMIT and, if it exists, change the worth to 256M. If it doesn’t, add the next line to the file:

outline('WP_MEMORY_LIMIT', '256M');

You also can search for this snippet of code within the php.ini file, which can or could not exist. If it doesn’t, you possibly can create a clean textual content file, identify it php.ini, then paste within the following code:

memory_limit=256MB

You also can verify the .htaccess file. If no reminiscence restrict worth exists, you possibly can add the next code snippet to the file:

php_value memory_limit 256M

Save the file, then reload your web site. If it resolves the error message, you might have to contact your hosting supplier to get extra details about what’s exhausting your reminiscence restrict.

Also, some hosting suppliers don’t let customers enhance the PHP reminiscence restrict themselves. In this case, you may want to succeed in out to your host to ask them to manually enhance it.

6. Check for PHP Version Issues

Some plugins require a sure model of PHP to work. Therefore, another excuse you is perhaps seeing this error is that if there are incompatibility points with PHP variations between your web site and a plugin you might have put in.

For instance, you could possibly be utilizing a plugin with options deprecated with older variations of PHP. If so, it is best to be capable to decide which plugin is inflicting the difficulty by following the steps outlined within the second methodology on this record.

Ideally, you ought to be working PHP 7 or larger. The course of for checking and upgrading your PHP version will differ relying in your hosting supplier. For instance, if in case you have entry to cPanel, you possibly can navigate to Select PHP Version embaixo do Software parte:

The 'Select PHP Version' application in cPanel.

I like to recommend checking together with your hosting supplier for data on upgrading or altering your PHP model. If you’re unable to improve your PHP model, and the difficulty is with a sure plugin, you might have to delete the plugin or discover an alternate.

7. Reinstall WordPress Core Files

At this level, you’ve hopefully resolved the five hundred Internal Server Error. However, for those who’re nonetheless seeing it, a few of your WordPress core recordsdata might be corrupted, during which case, re-uploading them ought to repair the issue.

To reinstall the WordPress core recordsdata, download the latest version of WordPress from WordPress.org, then unzip the folder in your pc.

Next, connect with your server through FTP. In the left-hand window, open the brand new WordPress folder you simply extracted in your pc. Select the wp-includes e wp-admin folders, right-click, and choose Escolher arquivo:

The option to upload WordPress Core files via FTP.

This will substitute the recordsdata in your web site’s root listing. Note: You can be prompted to provide your permission for it to overwrite the recordsdata, which it is best to enable. Once you reload your website, it is best to now not see the five hundred Internal Server Error.

8. Contact Your Hosting Provider

At this level, for those who’ve exhausted the above strategies and also you’re nonetheless seeing the five hundred Internal Server Error in WordPress, it’s most likely time to succeed in out to your provedor de hospedagem for extra assist. They ought to be capable to verify the server logs and supply some perception into what is perhaps inflicting the difficulty.

There could some server points to handle with a view to resolve the error. They may be capable to help with different issues that might be contributing to the difficulty, comparable to file permissions.

Unfortunately, for those who repeatedly run into inside server errors, the issue could also be that the server your web site is hosted on will not be adequately geared up or optimized to run WordPress websites. If that is the case, you may think about switching to a special WordPress host.

Resumindo

Dealing with website points isn’t enjoyable for anybody. However, 500 Internal Server Errors in WordPress are particularly troubling as a result of you might have restricted data to go off of when attempting to determine each the trigger and answer.

As we mentioned on this submit, there may be a variety of potential fixes you need to use to resolve the five hundred Internal Server Error in WordPress, together with the next eight strategies:

  1. Enable debugging
  2. Deactivate all of your WordPress plugins
  3. Switch your WordPress theme
  4. Verifique se o seu .htaccess filete
  5. Increase your PHP reminiscence
  6. Check for PHP model points
  7. Reinstall WordPress core recordsdata
  8. Contact your hosting supplier

Do you might have any questions on the way to repair the five hundred Internal Server Error in WordPress? Let us know within the feedback part beneath!



Este item é 0 Postar comentários

Deixe um comentário

Seu endereço de email não será publicado. Campos obrigatórios são marcados com *

De volta ao topo