View Issue Details

IDProjectCategoryView StatusLast Update
0026336mantisbtadministrationpublic2019-11-24 06:06
Reportergrahamoptibrium Assigned Toatrol  
Status closedResolutionno change required 
Product Version2.22.1 
Summary0026336: Setting $g_log_level in config/config_inc.php causes application to error on all pages

Following this guide I attempted to set

$g_log_level = 'LOG_ALL'; in config/config_inc.php

All mantis pages then display a red box containing the error A non-numeric value encountered' in '/var/www/html/core/database_api.php' line 51

Having jumped into the file I can see that config_get_global( 'log_level' ) is returns the string value "LOG_ALL" which is not and-able against the integer 32.

Setting $g_log_level = ~0; in config/config_inc.php works as expected.

TagsNo tags attached.




2019-11-08 10:52

reporter   ~0063060

On investigation it seems the intention of the config file is to use a predefined global LOG_ALL rather than supply the string 'LOG_ALL'. This was not obvious.



2019-11-08 11:09

developer   ~0063061

This was not obvious.

Not sure what you mean with that.
E.g. one of the examples in Admin Guide is
$g_log_level = LOG_ALL & ~LOG_DATABASE;