Glpi: PHP log error : couldn't fetch mysqli when enable debug mode

Created on 5 Mar 2020  路  5Comments  路  Source: glpi-project/glpi

Hi,
Describe the bug
When I enable debug mode, I have many and many message in PHP log

Logs

[2020-03-05 17:24:51] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/html/glpi/inc/toolbox.class.php line 658 *** PHP Warning(2): print_r(): Couldn't fetch mysqli Backtrace : : inc/html.class.php:3859 print_r() inc/html.class.php:3848 Html::printCleanArray() inc/html.class.php:3848 Html::printCleanArray() inc/html.class.php:829 Html::printCleanArray() inc/html.class.php:1671 Html::displayDebugInfos() front/crontask.php:64 Html::footer()

GLPI 9.4.5

bug

All 5 comments

Sounds like you lost you mysql connection. You should check its log and adapt configuration.

Duplicates #6546

Hi @cedric-anne & @trasher ,
Thanks for your correct answer !
If possible, just a question : Why this fix is not in 9.4.5 ?

We did not initially detect it on 9.4 branch, and we thought that it was due to a change in 9.5 branch.

I create a pull request to apply this on 9.4 branch: #7026

@cedric-anne & @trasher : Many Thanks !! :-)

Have a good day

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gfernandez-me picture gfernandez-me  路  5Comments

trasher picture trasher  路  4Comments

zoriax picture zoriax  路  4Comments

trasher picture trasher  路  6Comments

btry picture btry  路  3Comments