Wordpress on cPanel: Solving the white page or 500 error problem

Procédure

Why do you have a blank page on your WordPress site?

You go to your website and discover a blank page or a 500 error. This is classic WordPress behaviour when it encounters an error of some kind. This error can affect your entire website or just a few pages.

This error may be due to :

  • A memory problem: Web hosts have memory quotas. As soon as the quotas are reached, a blank page or a 500 error may appear on your website.
  • A problem with your theme or with certain modules: When certain themes and/or modules are not compatible with your WordPress version, the problem may arise. It is imperative to check before installing a theme or an extension that they are compatible with the WordPress version you have deployed to create your website.
  • Problem with your .htaccess file at the root of your site: this file is created automatically by the WordPress software, and is modified each time you change the configuration or add a module to your website. The configuration of this file may be causing problems.

Wordpress on cPanel: Solving the white page or 500 error problem

How do you rename your .htaccess file?

1. Log in to your customer area and click on the"Access to cPanel" button.

Wordpress on cPanel: Solving the white page or 500 error problem

2. Click on the"File manager" button to access your various folders and files. The File Manager lets you rename, modify, delete and add files in just a few clicks, without having to install any software on your computer.

Wordpress on cPanel: Solving the white page or 500 error problem

3. Double-click with your mouse on the"public_html" or"www" folder to open it.

Wordpress on cPanel: Solving the white page or 500 error problem

4. By default, the ".htaccess" file is hidden by your FTP space. To make the file visible, click on the"Settings" tab at the top right of your screen. Tick the"Show hidden files" box in the pop-up window and confirm your choice by clicking the"Save" button.

Wordpress on cPanel: Solving the white page or 500 error problem

5. Select the ".htaccess" file and click on the"Rename" button.

Wordpress on cPanel: Solving the white page or 500 error problem

6. Rename the ".htaccess" file to"htaccess.txt" in order to deactivate it. Click on the"Rename File" button to save the new file.

Wordpress on cPanel: Solving the white page or 500 error problem


How do I change the name of plugins?

1. To find the module causing the problem, go to"wp-content/plugins/".

Wordpress on cPanel: Solving the white page or 500 error problem

2. Select the first module and rename it. Once the module has been renamed, test your site to see if the problem persists. If the problem persists, you will need to rename the next module.

Wordpress on cPanel: Solving the white page or 500 error problem


How do I change the name of a theme?

1. The method is the same as for renaming plugins. First, you need to go to the"wp-content/plugins" path. To do this, use the search bar at the top right of your web page and click on"Go to".

Wordpress on cPanel: Solving the white page or 500 error problem

2. Click on the theme you are using by default and then on the"Rename" button to change its name.

Wordpress on cPanel: Solving the white page or 500 error problem


How do I activate DEBUG mode on my WordPress site?

The debug mode will allow you to be aware of the errors on your website. When you have a 500 error or a blank page, the errors are not visible. By activating DEBUG mode, you can see the error displayed and find out more about the problem your site is experiencing.

1. Select the file"wp-config.php" then click"Modify".

Wordpress on cPanel: Solving the white page or 500 error problem

2. Click on "Edit" to be able to edit the page concerned. Before modifying a file on your site, it is necessary to make a backup of the file so as not to lose any data which could have harmful consequences for your website.

Wordpress on cPanel: Solving the white page or 500 error problem

3. Look for the line"define('WP_DEBUG', false);" in the code. Change the word"false" to"true" in order to activate debug mode on your WordPress site.

Wordpress on cPanel: Solving the white page or 500 error problem

Conclusion

You are now able to solve the white page or 500 error problem on your WordPress site with LWS. The 500 errors or white pages on WordPress are mainly due to a problem with themes, plugins and the .htaccess file.

Don't hesitate to share your comments and questions!

Rate this article :

4/5 | 1 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

Vous souhaitez nous laisser un commentaire concernant cet article ?

Si cela concerne une erreur dans la documentation ou un manque d'informations, n'hésitez pas à nous en faire part depuis le formulaire.

Pour toute question non liée à cette documentation ou problème technique sur l'un de vos services, contactez le support commercial ou le support technique

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

1mn reading

How to view Apache and PHP log files on cPanel

1mn reading

Diagnose and correct a 500 error on a site hosted on cPanel

0mn reading

How do I correct a 403 Forbidden error on cPanel?

0mn reading

How do I correct a 404 error on cPanel?


Questions sur l'article
Zanan Il y a 464 days
Je viens d'heberger mon site site sur cpanel mais ça ne fonctionne pas bien comme c'etait en local
See the
1 answers
Aurelien-LWS - Il y a 464 days

Bonjour,

Je vous remercie pour votre message.

Il est effectivement possible qu'un site développé en local ne puisse pas fonctionner correctement une fois sa mise en ligne effectuée. Les raisons les plus probables de ce type de problème sont les suivantes :

— Le site fait référence à des liens de ressources locale qui n'ont pas correctement été mis à jour pour son fonctionnement en ligne. Par exemple, votre site fait référence à des chemins de ressources de type "c:\..." au lieu de "https://domaine.ext/..."

— La configuration de l'environnement de développement en local n'est pas identique à la configuration de votre hébergement. Un hébergement est configuré suivant des critères de ressources et la publication de certaines librairies. Il est possible que, dans votre environnement de développement, vous aillez utilisé des librairies qui ne sont pas présentes sur l'hébergement en ligne ou que vous n'ayez pas mis les mêmes limitations de performances. Cela entraine des différences de fonctionnement entre le site visible en local et sa version en ligne.

Les cas pouvant être multiples, il est préférable de contacter notre équipe de support technique afin qu'un technicien analyse précisément le problème que vous rencontrez et puisse vous apporter une solution pour résoudre votre problème.

Cordialement, L'équipe LWS 

 

Utile ?

Ask the LWS team and its community a question