Forums | Mahara Community
Support
/
Error Messages
26 September 2013, 2:51
Hi
We are getting error/debug messages showing on learners pages, is there a simple way of turning these off?
Thanks
Kevin
27 September 2013, 11:25
Hi Kevin,
Sure, there are some directives you can put in your Mahara's config.php file that control whether or not error messages get printed to the webpage, or invisibly stored in a log file. The settings available vary depending on which version of Mahara you're using. In 1.7, it should be sufficient to set:
$cfg->productionmode = true;
$cfg->log_environ_targets = LOG_TARGET_ERRORLOG;
If you want to be really thorough you can also set these additional values (although the defaults for these should be sending errors to the logs, not the screen).
$cfg->developermode = false;
$cfg->log_dbg_targets = LOG_TARGET_ERRORLOG;
$cfg->log_info_targets = LOG_TARGET_ERRORLOG;
$cfg->log_warn_targets = LOG_TARGET_ERRORLOG;
If you have a different version of Mahara, try looking in the lib/config-defaults.php file to see which config settings are available.
Cheers,
Aaron