How to activate Debug mode in WordPress

Procédure

Why activate debug mode in WordPress

It is sometimes possible to see a 500 error or a blank page when you open your WordPress website.

To determine which plugin or faulty code is causing this error, you can activate "debug mode" and display all the errors on your screen.

How to activate debug mode in WordPress

To activate debug mode in your WordPress:

If you have a shared package such as Perso/Starter/Standard/Performance :

  1. Log in to your customer area or connect to your site via FTP
  2. Use the file manager or your FTP client and modify the file wp-config.php

If you have a shared package such as cPanel :

  1. Connect to cPanel or connect to your site via FTP
  2. Use the cPanel file manager or your FTP client and modify the wp-config.php file.

If you have a shared package such as Plesk :

  1. Connect to your Plesk or connect to your site via FTP
  2. Use the file manager or your FTP client and modify the file wp-config.php

After opening the wp-config.php file to modify it, change the line define( 'WP_DEBUG_DISPLAY', false ); to define( 'WP_DEBUG_DISPLAY', true );

// This enables debugging. define ('WP_DEBUG', true); // This disables debugging. 
define ('WP_DEBUG', false);

Conclusion :


Now that you've learned how to activate Debug mode in your Wordpress, Debug mode allows you to view important information such as errors that will help you correct the way your site works.

Rate this article :

5/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 does Yoast SEO work?

4mn reading

How can you optimise your Wordpress site?

1mn reading

How do I use Gutenberg on Wordpress?

2mn reading

How do I disable the Gutenberg editor on Wordpress?


Ask the LWS team and its community a question