View Issue Details

IDProjectCategoryView StatusLast Update
0026336mantisbtadministrationpublic2019-11-24 06:06
Reportergrahamoptibrium Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityalways
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
Description

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.

Activities

grahamoptibrium

grahamoptibrium

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.

atrol

atrol

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;

Issue History

Date Modified Username Field Change
2019-11-08 10:47 grahamoptibrium New Issue
2019-11-08 10:52 grahamoptibrium Note Added: 0063060
2019-11-08 11:09 atrol Note Added: 0063061
2019-11-08 11:09 atrol Assigned To => atrol
2019-11-08 11:09 atrol Status new => resolved
2019-11-08 11:09 atrol Resolution open => no change required
2019-11-24 06:06 atrol Status resolved => closed