Centre de documentationEnabling development mode in phpBB

Ce forum contient des documentations liées à phpBB
Avatar de Sylver35
France Sylver35
Administrateur du site
Auteur du sujet
Messages : 842
Enregistré le : 13 janvier 2018
Liquide : 4 537.20
Relax-Arcade :  1
Localisation : Bretagne
Pays :
France
France

Enabling development mode in phpBB

Message par France Sylver35 » 14 oct. 2025, 12:05
This topic is about enabling development mode in a phpBB forum.

Most of the time, an error in the forum results in a blank page and a nice 500 error.
This is very frustrating because you have to spend hours tracking down the error in an attempt to resolve it.
However, there is a mode in phpBB that allows you to bypass this blank page; we'll see how to activate it.

This mode, which allows you to precisely track any error occurring in a phpBB forum, is called "development" mode.
This mode is designed for any developer or webmaster who wants to resolve an error by displaying the full source of the current error.

To enable it, open the config.php file.
Find this line:

code : Tout sélectionner

@define('PHPBB_ENVIRONMENT', 'production');
You must then replace it with this:

code : Tout sélectionner

@define('PHPBB_ENVIRONMENT', 'development');
development.zip
Unzip it and place this new "development" folder in the config folder located at the bottom of your forum.
It contains the same instructions as the "production" folder, plus all the commands to enable full forum debugging in the config.yml file.

Don't forget to clear the cache to restart the forum cache. This will create a new folder in cache:development, next to the production folder, which will now host the cache files.

Here is the rendering of an error page in development mode:
erreur - breizh.local.png
Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.
Des chercheurs qui cherchent, on en trouve, mais des chercheurs qui trouvent, on en cherche !
  • Sujets similaires
    Réponses
    Vues
    Dernier message