How to enable display error message?

  • Home
  • How to enable display error message?
How to enable display error message?
How to enable display error message?
How to enable display error message?
How to enable display error message?

By default display error messages are disabled in Smart School that is the reason every time if there is any error occurred system is showing 500 error message. This is due to Smart School environment is set for production . To enable display error message you should change Smart School environment from production to development.

Please do the following changes in code files to change environment –

Open file \index.php in any editor carefully from your installation folder and find

define('ENVIRONMENT', 'production');

and change it to

define('ENVIRONMENT', 'development');

Be aware that in development mode you may see some errors and deprecation warnings, for this reason, it’s always recommended to set the environment to “production” .

Do not forget to turn it back to production when you have finished the error checking or debugging

Leave a Reply

Your email address will not be published. Required fields are marked *